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.
I tried to trap like below, but not working. Run time error still produced. Any help would be appreciated. Thank you.
Source = Try Folder.Files("C:\nodirectory"),
output = if Source[HasError] then "Error" else "Good"
Solved! Go to Solution.
@bidev,
Please use the following code .
let FolderPath = "C:\nodirectory", Test = try List.Count(Folder.Files(FolderPath)[Content]), Source = if Test[HasError] then "Cannot find Data Source" else Folder.Files(FolderPath) in Source
Regards,
Lydia
@bidev,
Please use the following code .
let FolderPath = "C:\nodirectory", Test = try List.Count(Folder.Files(FolderPath)[Content]), Source = if Test[HasError] then "Cannot find Data Source" else Folder.Files(FolderPath) in Source
Regards,
Lydia
Lydia,
Thank you very much for the solution. It works perfectly!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
69 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |