Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

AzureSynapse Lookup UserErrorFileNotFound with Wildcard path

I am facing an odd issue where my lookup is returning a filenotfound error when I use a wildcard path. If I specify and exact file path, the lookup runs without error. However, if I replace the filename with a *, I get a filenotfound error.

The file is Data_643.json, located in my Azure Data Lake Storage Gen2, under the labournavigatorfile system. The exact file path is:
labournavigatorfile/raw_data/Scraped/HeadHunter/Saudi_Arabia/Data_643.json.

If I put this exact path into the Integration dataset configuration, the pipeline runs without issue. However, as soon as I replace the ‘Data_643.json’ with a ‘*’, the pipeline crashes with a filenotfound error.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What am I doing wrong? Many Thanks for any support. This must be something very simple that I am missing.

Exact path works:
filepath
pipeline run
lookup
path

Wildcrad path throws error:
wildcard path
error

>Solution :

I have 3 files in my container as file1.json, file2.json, file3.json as shown below:

enter image description here

The following is how I configured my dataset to read using wildcard with configuration same as in the image provided in the question.

enter image description here

  • When I used this in lookup I got the same error:

enter image description here

  • To overcome this, go to your lookup activity. When you want to use wildcards to read a file/files, check the wildcard file path option. Then specify the folder structure and use wildcard where required. The following is an image for reference.

enter image description here

  • The following is the debug output when I run the pipeline (Each of my files had 10 rows):

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading