Forum Discussion
DataSource.Error: Could not find file...
- 9 years ago
Hi Jim_,
Please click the file->Options and Settings->Data Source Settings, you will get the following data source settings navigator. Then select change source(highlighted in red line), please check the path and open file as right format.
what's your data soure? I post an example using .xls file above. Please check if it works fine. Please share more details if you have still find other issue.
Thanks,
Angelia
Does anyone have insights into the M function that can be implemented to handle the non-existence of a file being used as a data source? I am building a report template that will be used for multiple data sets, and some files will occassionally be missing, so I'm trying to implement a solution that can handle this scenario. Table.IsEmpty does not resolve the issue, since there is no empty table.
You can wrap anything in M with a "try <whatever you are trying to do> otherwise <do something else>"
Not exactly sure how to implement in your situation, but maybe there is a way to have PBI ignore the cases where the file is missing (and throws and error).