Welcome to the Alteryx Knowledge Base

Alteryx One - OneDrive connection authentication fails: Error: An error happened while getting auth code
user

Created/Edited - 6/4/2026 by Marni Monika | Alteryx

Description

In Alteryx One, creating a new OneDrive connection may fail during authentication. This can happen when the OAuth client is configured with an incorrect client secret value.

Issue

When creating a new connection in Alteryx One and selecting Authenticate, the authentication fails.

 

The following error may appear:

  • An error happened while getting auth code.

After selecting Details, the authentication error may show an invalid client error related to the client secret.

Environment

Alteryx One

OneDrive connection

Cause

The OAuth client was created with an incorrect client secret value.

This usually happens when the client secret ID is used instead of the client secret value.

Because of this, Microsoft authentication fails and the connection cannot get an access token.

Resolution

Delete the existing OAuth client for OneDrive and create a new one with the correct client secret value.

Was this article helpful?