aqiffm
(Aqiffm)
June 14, 2024, 6:54am
1
I am trying to get latest write time. Below is my query
DateTime.ParseExact(System.IO.File.GetLastWriteTime(filepath).ToString,“MM/dd/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy HH:mm:ss”)
However, I got this error!
Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.
When I debug and tested the output on Immediate, it works well.
vrdabberu
(Varunraj Dabberu)
June 14, 2024, 6:58am
2
Hi @aqiffm
Retype the double quotes or else copy the below syntax:
DateTime.ParseExact(System.IO.File.GetLastWriteTime(filepath).ToString,"MM/dd/yyyy HH:mm:ss",System.Globalization.CultureInfo.InvariantCulture).ToString("dd/MM/yyyy HH:mm:ss")
system
(system)
Closed
June 17, 2024, 7:01am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.