Parameterizing an Excel Dataset in Azure Synapse

Lance Harra 0 Reputation points
2023-12-29T16:37:14.42+00:00

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
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amira Bedhiafi 41,116 Reputation points Volunteer Moderator
    2023-12-30T16:07:31.6366667+00:00
    1 person found this answer helpful.
    0 comments No comments

  2. ShaikMaheer-MSFT 38,556 Reputation points Microsoft Employee Moderator
    2024-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.

    User's image

    Hope this helps. Please let me know if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.