So I have a DataTable (named “RGAdt”) and pass that as the input argument for a “Invoke Code” activity. My objective is to convert a column (named “Associate ID”) of the datatable which has “double” datatype values in it, to “sting” datatype values, for which I invoke this code:
But I am getting this error:
Please help me solve this. Thanks in advance.
Yoichi
(Yoichi)
April 1, 2024, 5:27am
2
Hi,
The following topic may help you.
Hi there,
I am using invoke code in my work flow to convert a column to double, this is the error, but I do have these already imported and I cant remove it from my imports, so my compiled code does not run.
[image]
this is the invoke code:
dt_deposita.AsEnumerable().ToList().ForEach(Sub(row)
row(“Amount”) = Convert.ToDouble(row(“Amount”).ToString())
End Sub)
Or it may be necessary to modify the xaml file directly.
Regards,
Okay, so I am trying to delete this import, but not letting me
Also my error says for System.Collections.ObjectModel
Yoichi
(Yoichi)
April 1, 2024, 5:36am
4
Hi,
It may be necessary to modify the xaml file directly.
Can you try the following step?
Close studio
copy the xaml file for backup
open the xaml file with notepad etc.
check if duplicated System.Collections.ObjectModel. If there is, delete either of them.
Save it. ReOpen it using UiPath Studio
Regards,
system
(system)
Closed
April 4, 2024, 5:36am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.