Hi,
The system timezone is UK, and I need to convert it into IST time zone.
I have tried this
System.TimeZoneInfo.ConvertTime(Now,TimeZoneInfo.FindSystemTimeZoneById(“India Standard Time”))
But i got the below error
Message Box: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.
Can any one help me?
@rnahasnahasuddin ,
This happens due to ” symbol in the expression. Try typing the expression manually or use this one
System.TimeZoneInfo.ConvertTime(Now,TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"))
Hi @rnahasnahasuddin
Please check “Now” returns the current system time (which is in your UK time zone, based on your system’s settings).
convertedTime = System.TimeZoneInfo.ConvertTime(Now, TimeZoneInfo.FindSystemTimeZoneById(“India Standard Time”))
Or You should restart the UiPath or recompile.
Happy Automation!
1 Like
Parvathy
(PS Parvathy)
May 13, 2025, 11:40am
4
Hi @rnahasnahasuddin
‘VisualBasicValue '1’ requires compilation in order to run. Please ensure that the workflow has been compiled.: This error occurs when your double quotes aren’t typed properly like " ".
Retype the syntax as below:
System.TimeZoneInfo.ConvertTime(Now,TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"))
Hope it helps!!
1 Like
adi.mehare
(Aditya Mehare)
May 13, 2025, 11:42am
5
ukTime = TimeZoneInfo.ConvertTime(DateTime.UtcNow, TimeZoneInfo.Utc, TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time"))
DateTime istTime = TimeZoneInfo.ConvertTime(ukTime, TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time"), TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"))
system
(system)
Closed
May 16, 2025, 11:42am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.