Hi @Michael G
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
Ask: In Azure Data Factory, how can I set an Excel dataset parameter for file name from the data flow that uses this Excel dataset as its source?
Here's a little more detail of what I am trying to do:
- PROVIDED AS BACKGROUND, I DO NOT NEED HELP ON THIS PART I have a pipeline that has 2 parameters: type and file name. The type parameter is used to determine which of 7 different data flow to call - one for each of 7 different Excel sheet types. Each of the data flows will run an import of data from Excel To SQL Server. The pipeline will pass the file name as a parameter to the data flow called. I have the pipeline and the data flow parameters working the way I want.
- I NEED HELP ON THIS PART Each data flow uses an Excel data source and I need to be able to pass the file name as a parameter to the Excel data set. I have defined my Excel datasets to have a file name parameter , and can use this in specifying the path for the dataset. However, I do not see a way to set dataset parameters from the data flow using them as a source. Is there a way to do this?
Solution: Since making my original post, I can report that I found a workaround whereby I can set the dataflow source "Source options - Wildcard paths" to the value of my data flow fileName parameter (see attached image). This will cause the Excel dataset object to use the parameter driven file name.
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.