<?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: PowerBI API execute Query throwing error for certain tables/columns in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2728089#M38184</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/334650"&gt;@DomFernandez&lt;/a&gt;&amp;nbsp;- that is correct, and I am aware of that, but the document clearly states the first sentence: "Executes Data Analysis Expressions (DAX) queries against the provided dataset."&amp;nbsp; {&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries#:~:text=Executes%20Data%20Analysis%20Expressions%20(DAX)%20queries%20against%20the%20provided%20dataset" target="_self"&gt;link}&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You are executing SQL query or DMV query which works with the XLMA Endpoint, so I am not sure that it will compatible with the REST API.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 07:57:26 GMT</pubDate>
    <dc:creator>Daryl-Lynch-Bzy</dc:creator>
    <dc:date>2022-08-26T07:57:26Z</dc:date>
    <item>
      <title>PowerBI API execute Query throwing error for certain tables/columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2726707#M38160</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;when trying to execute&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/executeQueries" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/executeQueries&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;against tables:&lt;/P&gt;&lt;P&gt;-&amp;nbsp; &lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_TABLES&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&amp;nbsp;$SYSTEM.TMSCHEMA_COLUMNS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using query&amp;nbsp; &lt;SPAN&gt;SELECT&lt;/SPAN&gt; * &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_COLUMNS /&amp;nbsp;&lt;SPAN&gt;SELECT&lt;/SPAN&gt; * &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_TABLES&lt;/P&gt;&lt;P&gt;we get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;b'\xef\xbb\xbf{"results":[{"error":{"code":"DataExtensionError","message":null,"details":[{"code":"AnalysisServicesErrorCode","detail":{"type":"1","value":0}}]}}]}'&lt;/PRE&gt;&lt;P&gt;We investigated a little bit, finding out that as long as you only select columns without integers, the call works perfectly fine. However the moment we select columns with integers, error message above appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how we can overcome that issue, as we would at least need the column types which are parsed as integers?&lt;/P&gt;&lt;P&gt;Thanks alot for your support.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 15:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2726707#M38160</guid>
      <dc:creator>DomFernandez</dc:creator>
      <dc:date>2022-08-25T15:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API execute Query throwing error for certain tables/columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2727186#M38166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/334650"&gt;@DomFernandez&lt;/a&gt;&amp;nbsp;- I am surprised that you managed to get any data from the $SYSTEM tables new the REST API.&amp;nbsp; These normally expect DAX query instead of the DMV query.&amp;nbsp; &amp;nbsp;The DMV query would work using the XLMA endpoint in SMSS or Tabular Editor.&amp;nbsp; It will be interesting if this is possible using the Rest API instead.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 21:20:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2727186#M38166</guid>
      <dc:creator>Daryl-Lynch-Bzy</dc:creator>
      <dc:date>2022-08-25T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API execute Query throwing error for certain tables/columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2727738#M38180</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/293962"&gt;@Daryl-Lynch-Bzy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;the REST API for executequeries on dataset generally made available from May 2022 update.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 05:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2727738#M38180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-26T05:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API execute Query throwing error for certain tables/columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2728089#M38184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/334650"&gt;@DomFernandez&lt;/a&gt;&amp;nbsp;- that is correct, and I am aware of that, but the document clearly states the first sentence: "Executes Data Analysis Expressions (DAX) queries against the provided dataset."&amp;nbsp; {&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries#:~:text=Executes%20Data%20Analysis%20Expressions%20(DAX)%20queries%20against%20the%20provided%20dataset" target="_self"&gt;link}&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You are executing SQL query or DMV query which works with the XLMA Endpoint, so I am not sure that it will compatible with the REST API.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 07:57:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2728089#M38184</guid>
      <dc:creator>Daryl-Lynch-Bzy</dc:creator>
      <dc:date>2022-08-26T07:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API execute Query throwing error for certain tables/columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2728152#M38186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/293962"&gt;@Daryl-Lynch-Bzy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;valid point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;More or less we just thought to give it a try with DMV Queries, which as described works to a certain extent. So I was wondering whether anyone else tried it so far and found some way to solve the problem we faced.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 08:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-execute-Query-throwing-error-for-certain-tables/m-p/2728152#M38186</guid>
      <dc:creator>DomFernandez</dc:creator>
      <dc:date>2022-08-26T08:12:03Z</dc:date>
    </item>
  </channel>
</rss>

