I am getting compilation error when I use the Invoke Code activity

Hello, Please find the attached xaml file for the ‘Invoke Code’ logic.

In the workflow, the Invoke code not showing any compilation error in Studio version 2022.4.4, but the same Invoke code activity showing compilation error in Studio version 2020.10.7

below is the Compilation Error in Studio Version 2020.10.7:
error CS1513:} expected At line 3
error CS1022: Type or namespace definition, or end-of-file expected At line 40

Let me know if anyone know this issue, I am missing any Package version upgrades ?
SplitName.xaml (6.3 KB)

Hey @shyammaddi
I tested this on the latest version of UiPath, and everything seemed to work fine. Perhaps you should consider updating. I made some slight modifications to your script and also added some VB.NET code. Please review the attached workflow, I hope it helps.
BlankProcess88.zip (3.3 KB)

1 Like

Thanks, I will check and let you know. the same code is working me with UiPath Studio latest version. What I found is the the methods / functions inside the Invoke code activity, those are not working seems.

1 Like