<?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 Error with query in DataflowGen2 : ErrorCode : TokenExpired in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4685247#M9157</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;Attempting to access a DataflowGen2 and running into these errors whenever I am attempting to reference a table a Lakehouse/workspace directly, i.e.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Source = Lakehouse.Contents(null){[workspaceId = "03a21abc-1234-4510-ae38-XXXXXXXX123"]}[Data]{[lakehouseId = "9cad20d2-d4cd-1234-818b-XXXXXXXX123"]}[Data],&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;Downstream service call to url '&lt;A href="https://api.powerbi.com/metadata/cluster" target="_blank" rel="noopener"&gt;https://api.powerbi.com/metadata/cluster&lt;/A&gt;' failed with status code 403. ErrorCode : TokenExpired&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Details&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Reason = DataSource.Error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorCode = Lakehouse035&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Error = [code=TokenExpired,message=Access token has expired, resubmit with a new access token]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorCode = TokenExpired&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;RequestId = 23126f5c-3295-4c2e-9c7a-2ed6f3a102c9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;RequestUrl = &lt;A href="https://api.powerbi.com/metadata/cluster" target="_blank" rel="noopener"&gt;https://api.powerbi.com/metadata/cluster&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorMessage = Access token has expired, resubmit with a new access token&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 May 2025 15:21:30 GMT</pubDate>
    <dc:creator>anon97242</dc:creator>
    <dc:date>2025-05-08T15:21:30Z</dc:date>
    <item>
      <title>Error with query in DataflowGen2 : ErrorCode : TokenExpired</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4685247#M9157</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Attempting to access a DataflowGen2 and running into these errors whenever I am attempting to reference a table a Lakehouse/workspace directly, i.e.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Source = Lakehouse.Contents(null){[workspaceId = "03a21abc-1234-4510-ae38-XXXXXXXX123"]}[Data]{[lakehouseId = "9cad20d2-d4cd-1234-818b-XXXXXXXX123"]}[Data],&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;Downstream service call to url '&lt;A href="https://api.powerbi.com/metadata/cluster" target="_blank" rel="noopener"&gt;https://api.powerbi.com/metadata/cluster&lt;/A&gt;' failed with status code 403. ErrorCode : TokenExpired&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Details&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Reason = DataSource.Error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorCode = Lakehouse035&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Error = [code=TokenExpired,message=Access token has expired, resubmit with a new access token]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorCode = TokenExpired&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;RequestId = 23126f5c-3295-4c2e-9c7a-2ed6f3a102c9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;RequestUrl = &lt;A href="https://api.powerbi.com/metadata/cluster" target="_blank" rel="noopener"&gt;https://api.powerbi.com/metadata/cluster&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;ErrorMessage = Access token has expired, resubmit with a new access token&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 May 2025 15:21:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4685247#M9157</guid>
      <dc:creator>anon97242</dc:creator>
      <dc:date>2025-05-08T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error with query in DataflowGen2 : ErrorCode : TokenExpired</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4685869#M9166</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/922753"&gt;@anon97242&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The error message you’re encountering TokenExpired during access to a Lakehouse from Dataflow Gen2 indicates that the authentication token used for the request has expired.&lt;/P&gt;
&lt;P&gt;This typically happens if the session is left idle for an extended period or if the token is not refreshed properly during query execution.&lt;/P&gt;
&lt;P&gt;To resolve this, please sign out and sign back into the Microsoft Fabric portal to renew your session, then reopen the Dataflow and revalidate or rebuild the Lakehouse query. This ensures a fresh access token is used. Additionally, avoid prolonged inactivity in the Dataflow editor, as this can cause token timeouts. Please also verify that you have the necessary permissions (at least Build) on both the Lakehouse and the workspace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this will resolve your issue, if you need any further assistance, feel free to reach out.&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us Kudos and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 04:44:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4685869#M9166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-09T04:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error with query in DataflowGen2 : ErrorCode : TokenExpired</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4686904#M9190</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;Thank you kindly for your prompt response. Unfortunatley, this still seems to be an issue. I've logged out and logged back in, and am able to refresh table in the UI in the source workspace. The issue comes when accessing via another workspace.&lt;BR /&gt;&lt;BR /&gt;Even builiding a new DataflowGen2 where we connect to the existing workspace/lakehouse, the error is the same.&lt;BR /&gt;&lt;BR /&gt;We use an on-premises gateway for the connection. So it seems like maybe that is the root cause here. Is there a possibility to refresh connections in the gateway? Or is there some further information we can pass along to our networking team?&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance!&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 16:50:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4686904#M9190</guid>
      <dc:creator>anon97242</dc:creator>
      <dc:date>2025-05-09T16:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error with query in DataflowGen2 : ErrorCode : TokenExpired</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4686964#M9194</link>
      <description>&lt;P&gt;Just an update, the issue here was in the connection to the On-Premises gateway.&lt;BR /&gt;&lt;BR /&gt;Connections to the gateway had to be refreshed, and then I needed to "re sign in" by clicking the Manage Connections Icon within the DataflowGen2 editor, clicking on the connection prompts you to re-sign in.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manageConnectionsIcon.png" style="width: 466px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1266876i5EDD0B5CBC73FFDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="manageConnectionsIcon.png" alt="manageConnectionsIcon.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 18:06:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Error-with-query-in-DataflowGen2-ErrorCode-TokenExpired/m-p/4686964#M9194</guid>
      <dc:creator>anon97242</dc:creator>
      <dc:date>2025-05-09T18:06:24Z</dc:date>
    </item>
  </channel>
</rss>

