10 Dec 2024 09:37 AM
[
{
"Id": "Workers-22",
"SpaceId": "Spaces-1",
"timestamp": "2024-12-04T11:39:52.487000000Z",
"HealthStatus": "HasWarnings",
"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",
"WorkerPoolIds": [
"WorkerPools-42"
],
"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0",
"HasLatestCalamari": true
},
There is no error in the previous DQL from what I can see, it formats nicely in notebook and looks like:
Solved! Go to Solution.
10 Dec 2024 02:52 PM
Hi, I had a similar issue by reading a json that seemed perfectly formatted but ended up in a similar error. I could fix it in this way:
data json: """{{ result("unhealthy_workers_table")["records"] | replace("'", "\"")}}"""
because " was the interpreted as '.
I tested it with your input (just kept 1 record):
data json:"""
{
"Id": "Workers-22",
"SpaceId": "Spaces-1",
"timestamp": "2024-12-04T11:39:52.487000000Z",
"HealthStatus": "HasWarnings",
"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",
"WorkerPoolIds": [
"WorkerPools-42"
],
"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0",
"HasLatestCalamari": true
}"""
But still it's not working. I found out that somehow the latest boolean value is disturbing the result reading.
If you modify to 0=false, 1=true it's going to work.
Very strange behaviour, both for "/' issue and for boolean one.
Hope this helps.
PF
14 Dec 2024 11:31 AM
Thanks Paolo, that helps a lot, I made a shorter DQL that omitted the field with the boolean and it works!
16 Dec 2024 02:24 PM
Hi Paolo,
I am curious how you found the " was being interpreted as ' ? I am running into situations where some of my fields can be pulled in from previous tasks and some cannot.
I am especially seeing this trying to pull in records from a DQL execution into a JavaScript task.