Forum Discussion
Excel Power Query / Analysis Services authentication fails after reopening workbook
Hi BIscoverer
- an invalid token persists in the credential cache;
- Excel does not display a login prompt;
- Power Query returns an authentication error instead of requesting fresh credentials.
Please, try follow this steps:
- Clearing credentials works temporarily because it forces a new interactive sign‑in.
- Updating Excel to Current Channel, switching to the XMLA connector, ensuring modern auth is enabled, or performing a full Office sign‑out/sign‑in typically resolves the issue.
- BIscoverer4 months agoHelper I
Hi Zanqueta,
Thank you for the suggestions.
Your description of the problem matches what I'm experiencing, the token isn't persisted across sessions and Excel doesn't prompt for re-authentication.
I am signed into Excel with my organizational account. I also tried a full Office sign-out/sign-in cycle (File >> Account >> Sign Out, closed all Office apps, reopened and signed back in). The issue returned the next day.
Clearing credentials in Data Source Settings works but is only temporary, as you noted, so this is not going to be a long-lasting solution.
I tested the traditional Analysis Services connection via Get Data >> From Database >> From Analysis Services (XMLA connector) and it works reliably across sessions. However, this only gives me a PivotTable/Power Pivot view. I need Power Query import mode so users can apply transformations, and that's the path where authentication fails.
My organization manages updates on Monthly Enterprise Channel, so I can't switch channels myself. I am currently on version 2512 (Build 19530.20226)