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 have a code that looks the file exists or not before doing further processing. Result of "try Source" evaluation, Test[HasError] in if statement returns "False" always, whether or not there was a file "MyLog.log" in the path "C:\Log-Files\Empty-LogFolder\".
Appreciate if you can shed some light on it. Code below. Thank you.
***********************************
let
File_Path = "C:\Log-Files\Empty-LogFolder\MyLog.log",
Source = Csv.Document(File.Contents(File_Path),[Delimiter=";", Columns=3, Encoding=1252, QuoteStyle=QuoteStyle.None]),
Test = try Source,
Output = if Test[HasError] then "True" else "False"
in
Output
Solved! Go to Solution.
HI,
The link is 404. Is there a link on microsoft ?
Thank you, ankitpatira. Appreciate your help.
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.