Power BI Refresh Error:
Fabric Pipeline Error 4121
What does this error mean?
A request sent to Azure Machine Learning failed because the credential used to authenticate has expired. The pipeline cannot complete the requested ML operation until the credential is refreshed.
Common causes
- 1The service principal secret or certificate used in the AzureML connection has passed its expiry date
- 2A managed identity token was not refreshed or the identity was disabled
- 3OAuth2 access tokens cached in the connection were not renewed before expiry
- 4The AzureML connection was created with short-lived credentials that have since expired
How to fix it
- 1Step 1: Navigate to the AzureML Service connection in Fabric Data Factory and check the authentication credential (service principal, managed identity, or key).
- 2Step 2: If using a service principal, go to Azure Active Directory > App Registrations, locate the app, and check whether the client secret or certificate has expired — rotate it if needed.
- 3Step 3: Update the Fabric connection with the new valid credential or secret.
- 4Step 4: Test the connection to confirm authentication succeeds before re-running the pipeline.
- 5Step 5: Set up credential expiry alerts in Azure AD or your secrets management tool (e.g., Azure Key Vault) to avoid future silent expirations.