Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 February 2025 Power BI update to learn about new features.
User | Count |
---|---|
27 | |
26 | |
23 | |
12 | |
10 |
User | Count |
---|---|
25 | |
21 | |
19 | |
19 | |
11 |