Thanks for using Microsoft Q&A forum and posting your query.
Firstly, the error message seems wired as it is complaining about the sink instead of source. Are you using dynamic expression and the same dataset being used in source and sink transformations?
I just tried quickly with hard coded path for wild card path and everything seem to work as usual.
Here is my source folder structure looks like in ADLS Gen2.
Below is how I configured in my Data flow source:
In dataset point it to container. And then in data flow source options settings, configure the path as below:
wild card paths = input/TextFiles/2020/*/*/*.txt
Was able to successfully preview the data of all subfolders based on the wild card path configuration:
Were you able to configure the same wild card path in copy activity and able to preview the data without any issues? I would suggest to try it out and see if something is missing in your configuration.
Hope this helps. Let us know how it goes
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.