Hi Dhruti Vyasa,
Thanks for reaching out to Microsoft Q&A.
Is the linked service test connection is all good? Can you check the below to narrow down the issue?
- Ensure that your connection string is correctly formatted. Different components of the connection string (such as server name, auth method, and database name) need to be specified accurately. For ex: Data Source=tcp:XXXX.database.windows.net,1433;Initial Catalog=DB_Name; Connection Timeout=30
- Verify that you’ve correctly set the parameters for your stored procedure activity in ADF. Check that the data types and values match the expected input for the stored procedure. Incorrect data types or values can lead to errors.
- If your stored procedure uses dynamic SQL or parameterized queries, ensure that you’re passing the correct values. If you’re passing parameters to the stored procedure, ensure that the data types match between ADF and the stored procedure.
- If possible, try to execute the stored procedure manually using SQL Server Management Studio or a similar tool, passing in the same parameter values that your application is using. This can help identify if the issue is with the stored procedure itself or with the application's interaction with it.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.