Kyleb91
(Kyle Brown)
January 13, 2023, 1:53pm
1
Hi There,
I am updating a process from Legacy to Windows and getting an error with adding an array datarow {Strings};
Please help in what the function is to initialise this new, as I have tried a few things which haven’t worked so far…
Many Thanks!
1 Like
Yoichi
(Yoichi)
January 13, 2023, 2:08pm
2
Hi,
The following post might help you.
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…
Can you try to add New Object() like New Object(){strA,strB....}
Regards,
1 Like
Kyleb91
(Kyle Brown)
January 13, 2023, 2:13pm
3
Yoichi:
New Object()
Thanks man - I’ve just figured out this is actually working, the issue is that I have too many arguments in my {} - is there a limit here? or a way to get around that?
Yoichi
(Yoichi)
January 13, 2023, 2:20pm
4
Hi,
Do you face issue of the following topic?
https://forum.uipath.com/t/is-there-any-limit-in-passing-values-for-add-datarow-activity/490671?u=yoichi
Unfortunately, It’s not able to reproduced in my environment. If possible, can you share your project? It’s no problem, if dummy data.
Regards,
1 Like
Kyleb91
(Kyle Brown)
January 13, 2023, 2:29pm
5
THanks man, had a look, the most recent question seems to imitate my issue, It is accepting 16 arguments, but I have 17, then it errors…
Anil_G
(Anil Gorthi)
January 14, 2023, 4:54am
6
@Kyleb91
Did you try adding the values in assign activity to assign an array and then use array variable in add data row
Or for now windows-legacy supports it…can check
Cheers
1 Like
Hi @Kyleb91
Could you let us know what is the Error message that you receive when using the ArrayRow ?
1 Like
Kyleb91
(Kyle Brown)
January 16, 2023, 8:57am
8
error BC32043: Too many type arguments to ‘Func(Of Out TResult)’.
(2) : error BC36625: Lambda expression cannot be converted to ‘Expression(Of Func)’ because ‘Expression(Of Func)’ is not a delegate type.
1 Like
Kyleb91
(Kyle Brown)
January 16, 2023, 9:00am
9
Hi Yes, @Anil_G still getting the same error when trying to add to a VAR first
@Kyleb91 ,
Could you provide us a Screenshot of the Dependencies that you are using along with it’s versions ?
1 Like
Kyleb91
(Kyle Brown)
January 16, 2023, 9:07am
11
Thanks for the help @supermanPunch
Kyleb91
(Kyle Brown)
January 16, 2023, 9:19am
13
@supermanPunch I updated the dependencies, which got rid of the error momentarily, but now it has resurfaced…
@Kyleb91 ,
Could you try adding a new Add Data Row
Activity and add the array row value to that and Check if it also gives out the error ?
1 Like
Kyleb91
(Kyle Brown)
January 16, 2023, 10:06am
16
In the interim I have used the following expression : arrDetails1.Concat(arrDetails2).toArray
Will this mimic the same as declaring all 17 Strings in the activity? it is accepting this.
@Kyleb91 ,
The Expression should work, Assuming that you have divided the 17 Strings to the two arrays.
Unfortunately, I was not able to reproduce the issue that you are facing from my end.
system
(system)
Closed
January 20, 2023, 11:28am
18
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.