Add data row error lambda expression and Too many type arguments to 'Func(Of Out TResult)'

I have converted my window legacy to window 2022.10 version

I am getting Add data row error lambda expression and Too many type arguments to ‘Func(Of Out TResult)’

I tired Concat method suggested in UiPath forum also.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

I heard this is resolved on system 23.4 but my company using 2022.10 window version only.

Are there any way to handle this exception in 2022.10 Windows version

@rumabharathy

You have to concatenate the arrays and not the string together

L1 = {var1,var2,var3}

L2 = {var4,var5,var6,var7}

L1.Concat(L2).ToArray

Cheers

In addition to above, we can force the datatype by:

new Object(){va1,var2,......var15}.Concat(new Object(){va16,var17,......var30}).ToArray()

I got a similar error Add data row is taking only 15 values at a time
If they are more than 15 then we have to assign then into arrays and concatenate the arrays…as shown by @ppr and @Anil_G

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.