Welcome to the Alteryx Knowledge Base
Created/Edited -
Configuring the SharePoint tool to use a certificate for the Service Principal may throw the following error during workflow execution if the private key information is incorrect.
Provided Azure application does not have required permissions for scheduling. Either disable 'use service principal' or provide an Azure app with required permissions and login again.
NOTE: There is no issue in configuring the tool with the certificate. The error only occurs during execution.
- Alteryx Designer
- Version: All
- SharePoint Tool
- Version >= 2.5.0
- Authentication Type
- Service Principal (App-Only) using a certificate
The entered private key in the Private Key field is missing the following delimiters:
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
Note that any misspelt word, missing delimiters or malformed PEM format will cause the mentioned error during workflow execution.
If you have entered an incomplete delimiter or any missing or incorrect characters in the delimiter, you may get the 404 error during the tool configuration instead.
For the unified connector, you will get a different error. Please refer to the following article:
To address the error, please ensure the private key value starts with "-----BEGIN PRIVATE KEY-----" and ends with "-----END PRIVATE KEY-----" (no quotes).
Example (not a valid and partial private key):
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC4Z5fR3DrvmKyj
...
gdsVU89pGnNcMubxlvW9iWY=
-----END PRIVATE KEY-----
Data Connection Manager (DCM) example:
If DCM is not used, then copy and paste the private key from the start delimiter to the end delimiter into the Private Key field in the tool configuration window.