dt1.AsEnumerable.Max(Function(a)Convert.ToDouble(a(“VALUE”).ToString))
Above is the expression but is no longer working since we upgraded to Modern (2023.10).
Error message: ‘VisualBasicValue’1’ requires compilation in order to run.
I am trying to get the maximum (total count) from the column “VALUE” as a “System.Double”
Any suggestions are welcome on what I need to change. @yoichi
Cheers
Steve
Yoichi
(Yoichi)
June 14, 2024, 3:34am
2
HI,
It may be double quote matter in Windows project.
For now, can you try to replace (retype) all the double quote with "
(0x22 character)?
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,
HI Yoichi
I have replaced the quote marks.
I am now getting this error:
Any thoughts?
Cheers
Yoichi
(Yoichi)
June 14, 2024, 3:43am
4
Hi,
It seems dt1 has no datarow. Can you check content of dt1 at Locals panel when error occurs?
Regards,
Hi Yoichi
Correct - dt1 doesn’t have any rows. Now I am just trying to determine the behaviour before the upgrade. Would it have thrown this error if no rows were there?
Cheers
Yoichi
(Yoichi)
June 14, 2024, 3:55am
6
Hi,
I don’t think behavior of Max method is change before and after the upgrade/migration.
Regards,
Thank you as always Yoichi.
1 Like
system
(system)
Closed
June 17, 2024, 3:58am
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.