Hi,
Trying to get the maximum value from an excel file (from a column), the data already read into DataTable,
obj_var = dt_logArchived.AsEnumerable().Max(Function(row) row(“LastRun”))
Able to retrive the maximum number in Windows-Legacy but encounter an error in Windows
Multiple Assign: Can not assign ‘dt_logArchived.AsEnumerable().Max(Function(row) row(“LastRun”))’ to ‘obj_Var’.
Yoichi
(Yoichi)
September 24, 2024, 8:12am
2
HI,
For now, can you try to check content of $exceptionDetails at Locals panel when exception occurs? There is detailed information for the exception.
Regards,
Hi Yoichi,
RemoteException wrapping System.NotSupportedException: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.
Above is the exception message that i received.
Yoichi
(Yoichi)
September 24, 2024, 8:20am
4
HI,
It’s double quotation matter. Can you try to re-type double quote using 0x22 character "
(please copy paste this character if necessary) in the expression?
Regards,
Hi Yoichi,
It works. But may i know why it works in Windows-Legacy but not in Windows? I didn’t change anything just convert it to Windows in Studio.
Thank you.
Yoichi
(Yoichi)
September 24, 2024, 8:30am
6
HI,
There is difference b/w Windows and Windows-Legacy regarding handling double quote. Probably it’s caused by compiling in Windows project
This topic describes troubleshooting guide regarding conversion from Windows-Legacy project to Windows project as of Dec 2023. Hope this helps those who face these problems.
1 Quick Reference by Error Messages, Situation etc.
Phase
Error message / Situation
Reference
Open project
foobar.xaml: Cannot create unknown type’{clr-Namespace:UiPath.foo.Activities;assembly=UiPath.bar.Activities}ActivityName’.
2.2 Missing Activities package OR 2.3 Missing activity
Development
Unable to set pro…
Regards,
1 Like
system
(system)
Closed
September 27, 2024, 8:30am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.