Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Only load files from a folder that can be loaded and save the file that can't be into a table

I'm aware of this question(https://community.powerbi.com/t5/Desktop/Error-handling-in-loading-files-from-folder/m-p/276960#M123...) but it seems to me that this user already knows why a file fails to load, I won't necessarily know why.

 

I have a folder with many excel files that are downloaded and appended into one long table. I am trying to load the files and if a file does not load, add the name to a table and move onto the next file. So if only 4/5 files refresh I would end up with 4 updated files and the name of the file that failed to refresh saved to a table somewhere. Is this possible? I

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

Power bi not support this, you need to manually write custom function to achieve this.

 

For example: a custom function which used to check valid files from a folder path which you provider.  It will return a list with valid files path, then you can use original folder file list to except available files to get invalid file list.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.