Welcome to the Alteryx Knowledge Base

Error "Failed to authenticate" OneDrive with Service Principal (Resolved)
user

Created/Edited - 12/6/2024 by Paul Tancre | Alteryx

Summary
While using the OneDrive connector (v2.0.1) and authenticating with the option "Service Principal" you get the error "Failed to authenticate"
Environment

Error: “Failed to authenticate”

 

Environment Details

While using the OneDrive connector (v2.0.1) and authenticating with the option "Service Principal" 

 
Failed to authenticate.
 
  • Alteryx Designer 2021.3.3
  • OneDrive v2.0.1
  • Authentication with Service Principal enabled




 

Cause

Cause

While authenticating, the connector will send you to a pop-up window to enter your credentials (this authentication method is the same as "Sign in via Browser" referred to as "Basic").
The basic authentication provides the user a token to access OneDrive files and thus displays the files list within the configuration window.
However in doing so currently the login details are lost and the Service principal that should kick in to provide access is not passed through and creates the authentication error.

OneDrive XML configuration producing the error :


OneDrive XML configuration expected :


 
Resolution

Resolution

If you are not scheduling workflow with the OneDrive connector you can use the "Sign in via Browser" to authenticate.
A defect is raised internally to resolve the issue in a future release. 

The new OneDrive connector (v2.0.2) has a fix that alleviate this issue.
Additional Information

Additional Resources

Was this article helpful?