I think the firewall is blocking ADF from reading or writing files. Check the solution : https://legacysupport.timextender.com/hc/en-us/articles/360054872132-ADF-execution-error-ADLS-Gen2-operation-failed-for-Operation-returned-an-invalid-status-code-Forbidden-
Parameterizing an Excel Dataset in Azure Synapse
How can I create an Excel dataset with a parameter for the filename using a linked service in my Azure Synapse workspace? If I substitute a parameter for the filename, I receive an error when previewing the data in the dataset. The error message shows the correct path, and I can browse to the location and see the file in my Synapse workspace. I am using the default storage created with the workspace. The error I receive is:
ADLS Gen2 operation failed for: Operation returned an invalid status code 'NotFound'. Account: XXXXXXXX FileSystem: 'content'. Path: 'vulnerability/1-vulndocflatimport.xlxs'. ErrorCode: 'PathNotFound'. Message: 'The specified path does not exist.'. RequestId: 'XXXXXXX. TimeStamp: 'Fri, 29 Dec 2023 16:30:58 GMT'.
Operation returned an invalid status code 'NotFound'
Azure Synapse Analytics
2 answers
Sort by: Most helpful
-
Amira Bedhiafi 41,116 Reputation points Volunteer Moderator2023-12-30T16:07:31.6366667+00:00 -
ShaikMaheer-MSFT 38,556 Reputation points Microsoft Employee Moderator2024-01-02T05:31:39.24+00:00 Hi Lance Harra,
Thank you for posting query in Microsoft Q&A Platform
This error may happen, when we parameterize, folder filed and use file name also in the folder field parameter. Kindly make sure, you have a parameter in dataset separately for file name and use that parameter for file name.
Please check below screenshot for better idea.
Hope this helps. Please let me know if any further queries.
Please consider hitting
Accept Answerbutton. Accepted answers help community as well.