Forum Discussion
Error with query in DataflowGen2 : ErrorCode : TokenExpired
- 1 year ago
Just an update, the issue here was in the connection to the On-Premises gateway.
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.
Hi anon97242 ,
Thank you for reaching out to the Microsoft fabric community forum.
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.
This typically happens if the session is left idle for an extended period or if the token is not refreshed properly during query execution.
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.
I hope this will resolve your issue, if you need any further assistance, feel free to reach out.
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thankyou.