Medium severitydata source
Power BI Refresh Error:
SqlInvalidDbStoredProcedure
What does this error mean?
The stored procedure in the ADF copy activity sink does not exist in the target database, or the ADF identity lacks EXECUTE permission.
Common causes
- 1The stored procedure name is misspelled or uses the wrong schema prefix
- 2The stored procedure was dropped or renamed after the ADF pipeline was created
- 3The service principal or user account used by ADF does not have EXECUTE permission on the stored procedure
How to fix it
- 1Verify the stored procedure name and schema in the copy activity sink configuration.
- 2Confirm the stored procedure exists in the database: SELECT * FROM sys.procedures WHERE name = '<name>'.
- 3Grant EXECUTE permission: GRANT EXECUTE ON <schema>.<procedure> TO <user_or_principal>.
- 4Test the stored procedure call directly from SSMS to confirm it works before debugging ADF.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/connector-troubleshoot-synapse-sql