JOBIN_JOSE
(JOBIN JOSE)
December 22, 2022, 8:07am
1
The code is used with the invoke code activity
The code -
ThirdFriday = New DateTime(Year,Month,15)
While ThirdFriday.DayOfWeek <> DayOfWeek.Saturday
ThirdFriday = ThirdFriday.AddDays(1)
End While
Error
Find Third Saturday: No compiled code to run
error BC30561: ‘DayOfWeek’ is ambiguous, imported from the namespaces or types ‘System, Microsoft.Graph’. At line 2
Yoichi
(Yoichi)
December 22, 2022, 8:11am
2
Hi,
Can you try to add System. just before DayOfWeek as the following?
ThirdFriday = New DateTime(Year,Month,15)
While ThirdFriday.DayOfWeek <> System.DayOfWeek.Saturday
ThirdFriday = ThirdFriday.AddDays(1)
End While
Regards,
JOBIN_JOSE
(JOBIN JOSE)
December 22, 2022, 8:15am
3
i have tried the same , but still
Yoichi
(Yoichi)
December 22, 2022, 8:17am
4
Hi,
Which version of Studio and System.Activities package do you use?
The following might help you.
Hi,
Which version of Studio and UiPath.System.Activities package do you use?
InvokeCode activity in UiPath.System.Activities package 21.10 (or higher) doesn’t support Studio 21.4 or lower as the following document.
So, If your environment is like the above, can you try upgrade your Studio to 21.10 etc OR downgrade System.Activities package to 20.10 etc.
Regards,
Regards,
JOBIN_JOSE
(JOBIN JOSE)
December 22, 2022, 8:20am
5
Yea it worked Thank you @Yoichi , upgraded
1 Like
system
(system)
Closed
December 25, 2022, 8:20am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.