Forum Discussion
Anonymous
5 years agoNot applicable
Power Query expression error - how to locate excel file causing error
Hi, I have a function that extracts data from excel files stored in a OneDrive folder. It was working great, but have been getting an expression error and am unable to find the source excel file ...
Jimmy801
5 years agoCommunity Champion
Hello Anonymous
this depends all how your query is structured. If you are reading thousands of files, then you have probably a table of all files where you are applying a custom function to extract the data. You can go to see this step and see witch file produces this error. You could also go to the function and add some errorhandling (example instead of giving back a table you can give back information about the file in table format) that you are able to identify the error easier
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy