Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.