Issu to concat columns

I have the following problem:

I’m concatenating three columns into one. The problem is that when I write the data, it deletes all subsequent columns. That is:

I concatenate columns 1, 2, and 3 into column 4, and when I write the data, it deletes columns 5 and 6.

I’m doing it this way.

Hi @alexis.mendoza.rpa

Try this approach and see if this helps

Hi,

In this case, it may be better to use ForEach in InvokeCode instead of LoadDataRow.
Can you try the following sample?

dt.AsEnumerable().ToList().ForEach(Sub (r)
    r(4)=r("Age").ToString().Trim()+" "+r("time").ToString().Trim()+" "+r("CD").ToString().Trim()
End Sub
)

Sample
Sample20251105-1.zip (10.5 KB)

Regards,

1 Like