<?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 Data Agent fails to query Ontology in IQ</title>
    <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5156013#M89</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I’m experiencing an error when using the Data Agent in Microsoft Fabric to query my Ontology.&lt;BR /&gt;Even when I ask very simple questions, the Data Agent fails every time with the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to execute step (RAID: "GUID"). Error: Failed to generate NL2Ontology query with error "{"code":"InternalError","subCode":0,"message":"An internal error occurred.","timeStamp":"2026-04-20T13:00:42.7677176Z","httpStatusCode":500,"hresult":-2147467259,"details":[{"code":"RootActivityId","message":"GUID"},{"code":"Param1","message":"Failed to translate NL query to ontology query."}]}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was working correctly until last week, but for the past four days it has consistently failed with the error above, without any changes on my side.&lt;BR /&gt;The Data Agent works perfectly when querying:&lt;BR /&gt;a Lakehouse (NL2SQL), and&lt;BR /&gt;a Semantic Model (NL2DAX).&lt;BR /&gt;The issue occurs only when the Ontology is used as the data source.&lt;/P&gt;&lt;P&gt;Also I have "&lt;SPAN&gt;Support GROUP BY in GQL" inside the data agent's instructions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone please help me understand what might have changed recently or how to troubleshoot this issue?&lt;BR /&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2026 14:33:51 GMT</pubDate>
    <dc:creator>sdinev</dc:creator>
    <dc:date>2026-04-22T14:33:51Z</dc:date>
    <item>
      <title>Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5156013#M89</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I’m experiencing an error when using the Data Agent in Microsoft Fabric to query my Ontology.&lt;BR /&gt;Even when I ask very simple questions, the Data Agent fails every time with the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to execute step (RAID: "GUID"). Error: Failed to generate NL2Ontology query with error "{"code":"InternalError","subCode":0,"message":"An internal error occurred.","timeStamp":"2026-04-20T13:00:42.7677176Z","httpStatusCode":500,"hresult":-2147467259,"details":[{"code":"RootActivityId","message":"GUID"},{"code":"Param1","message":"Failed to translate NL query to ontology query."}]}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was working correctly until last week, but for the past four days it has consistently failed with the error above, without any changes on my side.&lt;BR /&gt;The Data Agent works perfectly when querying:&lt;BR /&gt;a Lakehouse (NL2SQL), and&lt;BR /&gt;a Semantic Model (NL2DAX).&lt;BR /&gt;The issue occurs only when the Ontology is used as the data source.&lt;/P&gt;&lt;P&gt;Also I have "&lt;SPAN&gt;Support GROUP BY in GQL" inside the data agent's instructions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone please help me understand what might have changed recently or how to troubleshoot this issue?&lt;BR /&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2026 14:33:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5156013#M89</guid>
      <dc:creator>sdinev</dc:creator>
      <dc:date>2026-04-22T14:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5157543#M90</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1386310" data-lia-user-login="sdinev" class="lia-mention lia-mention-user"&gt;sdinev&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Does the error persist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Based on the error you're describing, the issue seems to be in the NL2Ontology translation layer on the Fabric IQ backend, not in your ontology or your data. The fact that NL2SQL and NL2DAX work perfectly confirms this.&lt;/P&gt;&lt;P class=""&gt;Try these steps in order and let us know if any of them resolves it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Verify that the agent instruction text is exactly Support group by in GQL&lt;BR /&gt;in English, with no variations, quotes, or extra characters. Reference: &lt;A href="https://learn.microsoft.com/en-us/fabric/iq/ontology/tutorial-4-create-data-agent#provide-agent-instructions" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/iq/ontology/tutorial-4-create-data-agent#provide-agent-instructions&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Check the data bindings health in the ontology preview experience: entity types should load, relationships should be visible, and the Graph should not be empty. A broken binding can cause NL2Ontology to fail when trying to introspect the schema, even if the error message doesn't make that obvious. Reference: &lt;A href="https://learn.microsoft.com/en-us/fabric/iq/ontology/resources-troubleshooting" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/iq/ontology/resources-troubleshooting&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Recreate the Data Agent from scratch pointing to the same ontology. The agent can end up in a corrupted state after a silent service-side update.&lt;/LI&gt;&lt;LI&gt;Confirm that all required tenant settings are still enabled, including &lt;STRONG&gt;Data agent item types &lt;/STRONG&gt;. Fabric deployments can occasionally reset these. Reference: &lt;A href="https://learn.microsoft.com/en-us/fabric/iq/ontology/overview-tenant-settings" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/iq/ontology/overview-tenant-settings&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Open a support ticket at &lt;A href="https://support.fabric.microsoft.com" target="_blank" rel="noopener"&gt;https://support.fabric.microsoft.com&lt;/A&gt; including the RootActivityId&amp;nbsp; GUID from the error. That identifier allows Microsoft to correlate with the internal NL2Ontology pipeline logs.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If my comment helped solve your question, it would be great if you could like the comment and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot, I really appreciate it.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 06:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5157543#M90</guid>
      <dc:creator>arabalca</dc:creator>
      <dc:date>2026-04-24T06:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5157710#M94</link>
      <description>&lt;P&gt;Same story here, starting from this week, our Data agent has stopped working, throwing the same error!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 09:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5157710#M94</guid>
      <dc:creator>AngelKostadinov</dc:creator>
      <dc:date>2026-04-24T09:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5157717#M95</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;I followed the troubleshooting steps from Microsoft Learn.&lt;/P&gt;&lt;P&gt;I verified that the Data Agent instruction text is exactly: Support group by in GQL&lt;BR /&gt;(with no variations or extra characters).&lt;/P&gt;&lt;P&gt;I checked the ontology preview experience and the data bindings health: entity types load correctly, relationships are visible, and the Graph is not empty.&lt;/P&gt;&lt;P&gt;I recreated the Data Agent from scratch and pointed it to the same ontology, but the issue still persists. Recreating the agent is recommended in the tutorial when troubleshooting initialization or agent behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am blocked on step 4: I cannot find the tenant setting “Users can create and share Data agent item types (preview)” anywhere in the Fabric Admin portal tenant settings. According to the documentation, this setting is required in order to create or use a Fabric Data Agent with an ontology source, but it does not appear in our tenant UI.&lt;/P&gt;&lt;P&gt;Do you think these attached screenshots have anything related to the problem ?&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the first image there is no Ontology or Graph mentioned regarding the Data Agent GA.&lt;BR /&gt;On the second image Microsoft says that NL2GQL is planned.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Apr 2026 09:46:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5157717#M95</guid>
      <dc:creator>sdinev</dc:creator>
      <dc:date>2026-04-24T09:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5189009#M109</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1386310" data-lia-user-login="sdinev" class="lia-mention lia-mention-user"&gt;sdinev&lt;/a&gt;&amp;nbsp;If you can create a Data agent in a workspace which requires an F-SKU commercial Fabric capacity, and can add an existing Ontology to this agent as a data source, then your Fabric tenant settings are correct.&lt;BR /&gt;&lt;BR /&gt;I've been struggling with the same error for many weeks until I noticed that if an Ontology and a Data Agent are in the same workspace the error suddently disappears and all works.&lt;BR /&gt;&lt;BR /&gt;The fact is that Ontology is in Preview and changes dramatically very often. I strongly recommend aginst any productionized usage of Ontology as the data source for the time being until it reaches GA. There are a lot of kinks in Ontology that have to be sorted out before it happens.&lt;BR /&gt;&lt;BR /&gt;Considering that any Ontology is based on other Fabric data sources - Lakehouses and Eventhouses, I suggest to use the Ontology data sources directly in your Data agents instead and provide good instructions for both Agent logic and data sources themselves to compensate for not using an Ontology. You cannot directly replace Ontology relationships in Graph with anything else especially when it comes to cross-storage relationships like KQL table and Lakehouse table so you need to cover this with the instructions and sample queries. Using a Semantic model for your Data agent may help but only for Lakehouse data as you cannot integrate KQL tables into a Semantic model yet.&lt;BR /&gt;&lt;BR /&gt;Hope this helps to prioritize your efforts in delivering a working Data agent experience instead of fighting internal issues of the Ontology workload. I am a big fan of Ontology but after experimenting for many weeks and being in direct contact with Microsoft team I decided that it's still too early to rely on Ontology as a data source for Data Agents.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 17:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5189009#M109</guid>
      <dc:creator>apturlov</dc:creator>
      <dc:date>2026-05-26T17:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5240717#M132</link>
      <description>&lt;P&gt;I have created a Fabric Data agent which is using source as Fabric IQ Ontology, however when I am trying to query data , getting some technicall issue as below ... Also, I have added this in Agent Instrctions to "Support group by in GQL"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Fabric Data agent which is using source as Fabric IQ Ontology, however when I am trying to query data , getting some technicall issue as below ... Also, I have added this in Agent Instrctions to "Support group by in GQL"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;The system could not process the query as phrased, so I was unable to retrieve campaign delivery performance data including delivery counts and bounce rates. This issue is typically due to technical limitations in interpreting the query.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can try rephrasing your request, specifying the time range, specific campaigns, or clarifying the format you want. If you have another way you'd like this data queried or displayed, please let me know!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The error details shown below the message read:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Failed to execute step (RAID: f6c22cfe-2672-42e4-add5-2f6238667664). Error: Failed to generate NL2Ontology query with error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{"code":"BadRequest","subCode":0,"message":"The request is invalid. The natural language query could not be processed. Please rephrase your query and try again.","timestamp":"2026-06-15T23:41:02.8454246Z","httpStatusCode":400,...}&lt;/P&gt;&lt;P&gt;From the screenshot, the original query appears to be:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;"Show campaign delivery performance including delivery counts and bounce rates for each campaign."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This suggests the semantic model could not translate the natural language request into a valid ontology query. You may have better success by using a more specific query such as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Show delivery count, delivered count, bounced count, and bounce rate by campaign for the last 30 days.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;List all campaigns with emails sent, delivered, bounced, and bounce percentage.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Campaign performance report grouped by campaign name showing delivery and bounce metrics.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;For each campaign, show Sent, Delivered, Bounced, Delivery Rate, and Bounce Rate.&lt;/STRONG&gt;&lt;P&gt;If you're using a Power BI semantic model/Copilot, I can also help rewrite the prompt based on your dataset schema.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jun 2026 22:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5240717#M132</guid>
      <dc:creator>yoursam</dc:creator>
      <dc:date>2026-06-26T22:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Agent fails to query Ontology</title>
      <link>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5366205#M233</link>
      <description>&lt;P&gt;Adding our findings here, since we hit the exact same pattern but were able to rule out the fixes suggested earlier in this thread.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt; Fabric Data Agent with an Ontology (generated from a Power BI semantic model) as data source, F4 capacity.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Symptom:&lt;/STRONG&gt; identical to what's described above — structural/metadata questions work fine ("What is a ........?", "What properties does ....... have?", "What relationships does ......have?"), but any question requiring instance-level data fails consistently with:&lt;/P&gt;&lt;P&gt;"Unable to generate code: The request is invalid. The natural language query could not be processed. Please rephrase your query and try again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What we ruled out, in case it helps others:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Same workspace:&lt;/STRONG&gt; our Ontology and Data Agent are already in the same workspace — this did not resolve it for us, unlike what was reported earlier in this thread.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Graph/data binding health:&lt;/STRONG&gt; confirmed healthy. A direct GQL query against the Ontology (bypassing the Agent entirely) returns correct, aggregated results, e.g. SUM(k.Bedrag) returned the correct total. So the underlying data, relationships, and even aggregation work fine at the Ontology level itself.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;"Support group by in GQL" instruction:&lt;/STRONG&gt; added exactly as documented, no effect.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Runtime (Standard vs Preview):&lt;/STRONG&gt; tested both, identical failure in both.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Tenant settings (Copilot/Azure OpenAI, Ontology preview):&lt;/STRONG&gt; confirmed enabled for our security group.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Conclusion on our end:&lt;/STRONG&gt; since GQL queries succeed directly against the Ontology but fail via the Agent's natural-language interface, this points specifically to the NL2Ontology translation layer inside the Data Agent tool (analyze_ontology) as the failure point.&lt;/P&gt;&lt;P&gt;I m opening an official support ticket with the RAID so Microsoft can correlate with internal pipeline logs. Will report back if we learn anything.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;William&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 06:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/IQ/Data-Agent-fails-to-query-Ontology/m-p/5366205#M233</guid>
      <dc:creator>Billybob0604</dc:creator>
      <dc:date>2026-09-11T06:51:02Z</dc:date>
    </item>
  </channel>
</rss>

