<?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: error when adding Disks to Hosts limiting results in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275476#M1954</link>
    <description>&lt;P&gt;I think the workaround here would be to reverse the logic of the query, where you fetch dt.entity.disk and then use the belongs_to relationship to identify the host, before finally filtering on the portfolio value.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Apr 2025 12:40:04 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-04-18T12:40:04Z</dc:date>
    <item>
      <title>error when adding Disks to Hosts limiting results</title>
      <link>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275457#M1953</link>
      <description>&lt;P&gt;My error is similar to this post that I don't see a resolution for:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/DQL/DQL-Relationship-Query-returning-too-many-entity-IDs/m-p/229409" target="_blank" rel="noopener"&gt;https://community.dynatrace.com/t5/DQL/DQL-Relationship-Query-returning-too-many-entity-IDs/m-p/229409&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am running the DQL below which results in error: "The number of entity IDs in the relationship fields has been limited. Please try filtering or narrowing your timeframe."&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;fetch dt.entity.host&lt;BR /&gt;| fieldsAdd tags&lt;BR /&gt;| expand tags&lt;BR /&gt;| filter contains(tags, "Portfolio:")&lt;BR /&gt;| parse tags, """((LD:tag (!&amp;lt;&amp;lt;'\\' ':') LD:value)|LD:tag)"""&lt;BR /&gt;| filter value == $Portfolio&lt;BR /&gt;| fieldsRemove tags, tag, value&lt;BR /&gt;| fieldsAdd disks = contains[dt.entity.disk]&lt;BR /&gt;// the error happens for this operation above ^^^^&lt;BR /&gt;| expand disks&lt;BR /&gt;| fields disks&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I tried increasing my Query Limits but no change in the error.&lt;/P&gt;&lt;P&gt;DQL objective:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the Hosts and filter for any Hosts where Tag 'Portfolio:' equals the $Portfolio variable&lt;/LI&gt;&lt;LI&gt;Get the Disks associated with the Host - adding the list of Disks is where the error occurs&lt;/LI&gt;&lt;LI&gt;Expand each Disk into a row&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As soon as I expand disks the error occurs. In my environment for this scenario there are 417 Hosts matching the $Portfolio tag which then expands into at least 9,984 Disks (could be more due to error limits).&lt;/P&gt;&lt;P&gt;Any ideas how to get around this error limit?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 01:26:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275457#M1953</guid>
      <dc:creator>brandon_camp</dc:creator>
      <dc:date>2025-04-18T01:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: error when adding Disks to Hosts limiting results</title>
      <link>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275476#M1954</link>
      <description>&lt;P&gt;I think the workaround here would be to reverse the logic of the query, where you fetch dt.entity.disk and then use the belongs_to relationship to identify the host, before finally filtering on the portfolio value.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 12:40:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275476#M1954</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-04-18T12:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: error when adding Disks to Hosts limiting results</title>
      <link>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275484#M1955</link>
      <description>&lt;P&gt;Thanks Marco.&amp;nbsp;&amp;nbsp;I reversed the DQL sequence and it does sidestep the error.&amp;nbsp; Updated logical sequence is now:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Fetch all Disks and add Host Id field from belongs_to&lt;/LI&gt;&lt;LI&gt;Join with nested fetch containing: all Hosts filtered for 'Portfolio' tag value equal to $Portfolio variable&lt;/LI&gt;&lt;LI&gt;Tidy up fields in result&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This then allowed me to get to my next stumbling block which I will post about separately.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 17:49:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/error-when-adding-Disks-to-Hosts-limiting-results/m-p/275484#M1955</guid>
      <dc:creator>brandon_camp</dc:creator>
      <dc:date>2025-04-18T17:49:10Z</dc:date>
    </item>
  </channel>
</rss>

