Medium severitydata source
Power BI Refresh Error:
DF-GEN2-InvalidServicePrincipalCredentialType
What does this error mean?
The ADLS Gen2 linked service is configured for service principal authentication, but the credential type is set incorrectly — for example, the service principal expects a client secret but a certificate-based credential type is configured, or vice versa.
Common causes
- 1The linked service 'Service Principal Credential Type' is set to 'ServicePrincipalCert' but the app registration in Azure AD uses a client secret (password), not a certificate
- 2The linked service is configured with a client secret but the app registration has only a certificate credential
- 3The credential type was changed in the Azure AD app registration after the ADF linked service was created
How to fix it
- 1Open the ADLS Gen2 linked service in ADF Studio and check the 'Service Principal Credential Type' setting.
- 2In the Azure portal, go to Azure Active Directory > App Registrations > [your app] > Certificates & Secrets to confirm what type of credential the app uses.
- 3If the app uses a client secret, set the credential type to 'ServicePrincipalKey' in ADF and enter the secret value.
- 4If the app uses a certificate, set the credential type to 'ServicePrincipalCert' and provide the certificate.
- 5Click 'Test connection' after updating to confirm the credential type and value are accepted.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide