<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble getting results from a previous task in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/265388#M1540</link>
    <description>&lt;P&gt;Hi Paolo,&lt;/P&gt;&lt;P&gt;I am curious how you found the "&amp;nbsp; was being interpreted as ' ?&amp;nbsp; I am running into situations where some of my fields can be pulled in from previous tasks and some cannot.&lt;/P&gt;&lt;P&gt;I am especially seeing this trying to pull in records from a DQL execution into a JavaScript task.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 14:24:42 GMT</pubDate>
    <dc:creator>rseibert1</dc:creator>
    <dc:date>2024-12-16T14:24:42Z</dc:date>
    <item>
      <title>Trouble getting results from a previous task</title>
      <link>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/264862#M1517</link>
      <description>&lt;DIV&gt;The below is giving a parse error, though it seems to be pulling a list of Id's that seems to be formatted wrong?&lt;/DIV&gt;&lt;DIV&gt;Trying to pull the list of Id's from the task.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;{% for record in result("unhealthy_workers_table")["records"] %}&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Id : {{ record.Id }}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;{% endfor %}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;[ERROR] 400: PARSE_ERROR. exceptionType: "DQL-ERROR-PARSING". syntaxErrorPosition: {"start":{"column":5,"index":4,"line":1},"end":{"column":5,"index":4,"line":1}}. errorType: "PARSE_ERROR". errorMessage: "`:` isn't allowed here. Please check the autocomplete suggestions before the error for alternative options.". arguments: ["`:`"]. queryString: "\tId : Workers-22\n\tId : Workers-23\n\tId : Workers-465\n\tId : Workers-349\n\tId : Workers-781\n\tId : Workers-621\n\tId : Workers-721\n\tId : Workers-722\n\tId : Workers-502\n\tId : Workers-501\n\tId : Workers-245\n\tId : Workers-84\n\tId : Workers-85\n\tId : Workers-86\n\tId : Workers-87\n\tId : Workers-143\n\tId : Workers-121\n\tId : Workers-62\n\tId : Workers-141\n\tId : Workers-142\n\tId : Workers-181\n\tId : Workers-182\n\tId : Workers-161\n\tId : Workers-162\n\tId : Workers-201\n\tId : Workers-202\n\tId : Workers-351\n\tId : Workers-352\n\tId : Workers-353\n\tId : Workers-354\n\tId : Workers-341\n\tId : Workers-342\n\tId : Workers-343\n\tId : Workers-344\n\tId : Workers-532\n\tId : Workers-321\n\tId&amp;nbsp; ---output truncated------------------------------------------------------&lt;/DIV&gt;&lt;DIV&gt;Workers-304\n". errorMessageFormatSpecifierTypes: ["INPUT_QUERY_PART"]. errorMessageFormat: "%1$s isn't allowed here. Please check the autocomplete suggestions before the error for alternative options.". queryId: "ddc63a6a-cf66-4e8a-98fb-1f795023b5fd"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is a sample from the unhealthy_workers_table:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"Id": "Workers-22",&lt;BR /&gt;"SpaceId": "Spaces-1",&lt;BR /&gt;"timestamp": "2024-12-04T11:39:52.487000000Z",&lt;BR /&gt;"HealthStatus": "HasWarnings",&lt;BR /&gt;"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",&lt;BR /&gt;"WorkerPoolIds": [&lt;BR /&gt;"WorkerPools-42"&lt;BR /&gt;],&lt;BR /&gt;"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0",&lt;BR /&gt;"HasLatestCalamari": true&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no error in the previous DQL from what I can see, it formats nicely in notebook and looks like:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rseibert1_0-1733823375423.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25141iE3F941DCCBE27418/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rseibert1_0-1733823375423.png" alt="rseibert1_0-1733823375423.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Dec 2024 09:37:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/264862#M1517</guid>
      <dc:creator>rseibert1</dc:creator>
      <dc:date>2024-12-10T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting results from a previous task</title>
      <link>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/264903#M1522</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;data json: """{{ result("&lt;SPAN&gt;unhealthy_workers_table&lt;/SPAN&gt;")["records"] | replace("'", "\"")}}"""&lt;/P&gt;&lt;P&gt;because " was the interpreted as '.&lt;/P&gt;&lt;P&gt;I tested it with your input (just kept 1 record):&lt;BR /&gt;data json:"""&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Id": "Workers-22",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"SpaceId": "Spaces-1",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"timestamp": "2024-12-04T11:39:52.487000000Z",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"HealthStatus": "HasWarnings",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"StatusSummary": "This machine is running an old version of Tentacle (6.1.1403).",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"WorkerPoolIds": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"WorkerPools-42"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"OperatingSystem": "Microsoft Windows Server 2019 Standard 10.0.17763.0",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"HasLatestCalamari": true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But still it's not working. I found out that somehow the latest boolean value is disturbing the result reading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you modify to 0=false, 1=true it's going to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Very strange behaviour, both for "/' issue and for boolean one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;BR /&gt;PF&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 14:52:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/264903#M1522</guid>
      <dc:creator>paolo_fumanelli</dc:creator>
      <dc:date>2024-12-10T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting results from a previous task</title>
      <link>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/265297#M1535</link>
      <description>&lt;P&gt;Thanks Paolo, that helps a lot, I made a shorter DQL that omitted the field with the boolean and it works!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2024 11:31:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/265297#M1535</guid>
      <dc:creator>rseibert1</dc:creator>
      <dc:date>2024-12-14T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting results from a previous task</title>
      <link>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/265388#M1540</link>
      <description>&lt;P&gt;Hi Paolo,&lt;/P&gt;&lt;P&gt;I am curious how you found the "&amp;nbsp; was being interpreted as ' ?&amp;nbsp; I am running into situations where some of my fields can be pulled in from previous tasks and some cannot.&lt;/P&gt;&lt;P&gt;I am especially seeing this trying to pull in records from a DQL execution into a JavaScript task.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 14:24:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/265388#M1540</guid>
      <dc:creator>rseibert1</dc:creator>
      <dc:date>2024-12-16T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting results from a previous task</title>
      <link>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/266966#M1588</link>
      <description>&lt;P&gt;I noticed that somehow those double quotes became single quotes when checking out task output after execution, at least in some cases.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 09:01:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Trouble-getting-results-from-a-previous-task/m-p/266966#M1588</guid>
      <dc:creator>paolo_fumanelli</dc:creator>
      <dc:date>2025-01-09T09:01:01Z</dc:date>
    </item>
  </channel>
</rss>

