Welcome to the Alteryx Knowledge Base

Alteryx One - Microsoft or Power BI connection fails: Error: An error happened while getting auth code
user

Created/Edited - 5/20/2026 by Marni Monika | Alteryx

Description

Any Microsoft or Power BI connection in Alteryx One may fail during authentication with an OAuth error.

Issue

When a user creates or uses a Microsoft or Power BI connection, the connection fails with one of the following errors:

 

Error: An error happened while getting auth code & requestId={request id}

 

AADSTS700025: Client is public so neither 'client_assertion' nor 'client_secret' should be presented

Environment

Alteryx One

Cause

Microsoft Entra is treating the Azure app registration as a public client, but the OAuth request from Alteryx One includes a client secret.

Microsoft does not allow a public client to send a client secret, so the token request fails.

This usually happens when the Azure app registration was created as an SPA, mobile, native, or public client instead of a web client.

Resolution

Create or update the Azure app registration as a web client. Do not configure the app registration as SPA, mobile, native, or public client.

After updating the app registration, create the connection again and test the authentication.

Additional Information
Was this article helpful?