Share via

Excel Power Query / Azure Analysis Services: Authentication failed after reopening workbook, no Entra login prompt shown

Kateryna Kravchenko 10 Reputation points
2026-03-16T13:53:02.1733333+00:00

Hi everyone,

I am experiencing an issue in Excel desktop when using Power Query to connect to an Analysis Services model with Microsoft Entra SSO. I am using SQL Server Analysis Services database connector (for Import), but the model is in Azure Analysis Services.

The first sign-in and refresh work fine. However, after I close and reopen the workbook, refresh often fails with “AnalysisServices: Authentication failed.”

What seems unexpected is that Excel does not show a sign-in prompt again. If the existing Entra session cannot be reused, I would expect the login window to appear instead of only returning an authentication error.

The only workaround I found so far is to clear/recreate the credentials in Data Source Settings, but that is only temporary.

Has anyone seen this issue with Excel + Power Query + Analysis Services using Entra SSO? Is it a known issue or related to a specific Excel build?

Thank you!

Azure Analysis Services

2 answers

Sort by: Most helpful
  1. Manoj Kumar Boyini 12,560 Reputation points Microsoft External Staff Moderator
    2026-03-16T17:38:05.29+00:00

    Hi Kateryna Kravchenko

    When connecting to Azure Analysis Services (AAS) with Entra ID SSO. After reopening a workbook, Excel attempts a silent token refresh. If the cached token can’t be reused, the connector may fail with “AnalysisServices: Authentication failed” without showing a sign‑in prompt. This is a client‑side limitation in Excel/MSOLAP, not an AAS service issue.

    Recommended actions:

    • Use Data → Get Data → Azure → Azure Analysis Services database instead of the SQL Server Analysis Services connector.
    • Update Excel to the latest build to get newer MSOLAP libraries with improved Entra authentication handling.
    • Ensure Integrated Security=SSPI is not present in the connection string.
    • If needed, clear cached Office/AnalysisServices credentials to force re‑authentication.
    • For unattended refresh scenarios, use a service principal instead of interactive user credentials.

    This issue typically depends on connector choice, Excel/MSOLAP version, and how Entra tokens are cached across Excel sessions.

    References:
    https://dotnet.territoriali.olinfo.it/en-us/analysis-services/azure-analysis-services/analysis-services-connect-excel?view=sql-analysis-services-2025
    https://dotnet.territoriali.olinfo.it/en-us/analysis-services/client-libraries?view=sql-analysis-services-2025
    https://dotnet.territoriali.olinfo.it/en-us/analysis-services/azure-analysis-services/analysis-services-manage-users?view=sql-analysis-services-2025
    https://dotnet.territoriali.olinfo.it/en-us/troubleshoot/sql/analysis-services/configure-msolap-data-provider-excel

    Hope this helps, Please let us know if you have any questions and concerns

    0 comments No comments

  2. Q&A Assist
    2026-03-16T13:53:18.7133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Excel Power Query, Azure Analysis Services, and Microsoft Entra authentication rely on the Analysis Services client libraries (AMO/MSOLAP/ADOMD). These libraries support both interactive Microsoft Entra sign-in and non‑interactive methods, and interactive flows can show a Microsoft Entra MFA dialog when Universal Authentication is used.

    For Azure Analysis Services, the recommended and most reliable option is to use Active Directory Universal Authentication (Microsoft Entra interactive flow). This method is designed to handle token acquisition and renewal, including MFA, and can show a sign‑in dialog when the existing token cannot be reused. Other non‑interactive methods (such as AD Password or Integrated) do not show a pop‑up and can fail with authentication errors when the cached token or session is no longer valid.

    In Excel, the behavior depends on:

    • Which client library and authentication mode the connector is using.
    • How the Microsoft Entra session and token cache are handled by that library and by Excel’s build/update level.

    Power BI Desktop, SSMS, and Visual Studio explicitly support Active Directory Universal Authentication and are updated monthly with the latest client libraries. Excel receives the same client library updates through Microsoft 365, but on a less frequent cadence, and some organizations use deferred channels, so Excel may be running older client libraries or slightly different behavior around token reuse and prompts.

    Given the symptoms:

    • First connection and refresh succeed.
    • After reopening the workbook, refresh fails with AnalysisServices: Authentication failed.
    • No Microsoft Entra sign‑in dialog is shown.
    • Clearing/recreating credentials in Data Source Settings temporarily fixes it.

    This aligns with a scenario where the non‑interactive or cached token path fails, but Excel does not fall back to an interactive Universal Authentication prompt.

    Recommended actions based on the documented behavior:

    1. Ensure the connection is configured to use Active Directory Universal Authentication (Microsoft Entra interactive) for Azure Analysis Services, not Windows or legacy AD methods. Universal Authentication is the recommended mode for Azure Analysis Services and is designed to show an interactive prompt when needed.
    2. Make sure the Azure Analysis Services server users are defined as Microsoft Entra accounts (UPN/organizational email) and that the account used in Excel is the same Entra identity configured as a server admin or database user.
    3. Confirm that the Excel client is on a current Microsoft 365 update channel so it has the latest Analysis Services client libraries. Older builds or deferred channels can behave differently around authentication and token reuse.
    4. If the Azure Analysis Services firewall is enabled and the error sometimes appears as invalid credentials, verify that the client IP is allowed. For Power Query Online scenarios, the PowerQueryOnline service tag must be allowlisted; for desktop, ensure the relevant client IP ranges are permitted.

    This behavior is not described in the documentation as a specific known Excel build bug, but it is consistent with using a non‑Universal or cached authentication mode that does not trigger a new Microsoft Entra prompt when the token cannot be reused. Aligning the connection with Universal Authentication and keeping Excel and the Analysis Services client libraries current is the supported path to avoid repeated manual credential clearing.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.