Add data row error lambda expression

I also have this problem, and I use the way that keeping the window-legacy that can be worked as usual.

Hi,

If u use more than 16 different variable in any assign or add data row activity you will face this lambda expression issue.

To fix this, you can add your variables in two different list variables. And add into “add data row” activity based on list index.

List1: 16 variables
List2: balance variables

Hello,

For this you can try to assign to different array and then concatenate them and pass it to the add data row.
arr1={name,class}
arr2={sub1,sub2}
arr3=arr1.Concat(arr2).toArray
Pass arr3 in add data row.

5 Likes

hi @loginerror Any update on this

2 Likes

Have you tested this, does it work in the same manner?

yes this is working.

1 Like

If you have converted your project from Windows legacy to windows then use this expression(divide your variables in two parts assign one part to arr1 and other to arr2
and then concat and use arr3 variable in add data row it will work.)
Assign1
arr1={name,class}
Assign2
arr2={sub1,sub2}
Assign3
arr3=arr1.Concat(arr2).toArray

Regards,
Shesherao Patil

Just a small update. The latest System 23.4 should have this issue fixed.

I am Facing the same issue in Studio 23.4, Is there any update on this?

I can see the issue still persist with 23.4 System
image

Hi @lakshay.verma

What Studio version are you using? I’m afraid that the fix to this issue was actually a Studio side fix and not just the System package. This means that the latest Studio version should have it fixed, and also the latest patch to the older Studio versions.

1 Like

Hi @loginerror,

Business is using 22.10 at the moment.
Because we are using a cloud VM, the patch won’t work, and we can only update the studio in this scenario.
Thanks for the update though.

I rebuild the sequence after keeping update to the lastest version of UiPath studio . It can work now .Well Done !

@rahul.kumar @shesherao.patil I need to add all below variables in datarow

{string_TicketNumber,string_Customer,string_ProductCode1,string_ProductCode2,string_ProductCode3,string_ProductCode4,string_ProductCode5,string_ProductCode6,string_ProductCode7,string_ProductCode8,string_ProductCode9,string_ProductCode10,string_ProductCode11,string_ProductCode12,string_ProductCode13,string_ProductCode14,string_ProductCode15,string_Notes,string_TicketURL}

How can I add it in CONCAT method you suugested, Can you please help me

@rahul.kumar If I assign datarow value in Concat method you suggested .Please refer the below

Assign Arrayrow= {(string_TicketNumber.ToString).Concat(string_Customer).Concat(string_ProductCode1).Concat(string_ProductCode2).Concat(string_ProductCode3).Concat(string_ProductCode4).Concat(string_ProductCode5).Concat(string_ProductCode6).Concat(string_ProductCode7).Concat(string_ProductCode8).Concat(string_ProductCode9).Concat(string_ProductCode10).Concat(string_ProductCode11).Concat(string_ProductCode12).Concat(string_ProductCode13).Concat(string_ProductCode14).Concat(string_ProductCode15).Concat(string_Notes).Concat(string_TicketURL)}

I am getting the same error message

Hello @rumabharathy ,
Hope you are doing great.
you divide your string items into 2 arrays and then concat those arrays. for example:

arr1={string_TicketNumber,string_Customer,string_ProductCode1,string_ProductCode2,string_ProductCode3,string_ProductCode4,string_ProductCode5,string_ProductCode6,string_ProductCode7}

arr2={string_ProductCode8,string_ProductCode9,string_ProductCode10,string_ProductCode11,string_ProductCode12,string_ProductCode13,string_ProductCode14,string_ProductCode15,string_Notes,string_TicketURL}
arr3=arr1.Concat(arr2).toArray

and when you need to write it in the data table pass arr3 in the data table to write.

Hope this Helps you.

Thank you all for the response.

I will check!

Hi @rumabharathy

Did you try the above mention method?

Yeah, it worked.

Thanks!

1 Like