Problem with Add Data Row

I figured it out. This posting helped: Copy Row from one DataTable to another

Turns out I needed to use a Clone() on the incoming DT to replicate its schema to a local DT. As soon as I did the clone, the object reference error went away but I got a “This data row is already a row in another table” or something close to that.

I found another posting related to that error. To address that, on the Add Data Row activity I needed to use the ArrayRow input argument with a value of “dataRow.ItemArray()”. I removed the value from the DataRow input argument. Now it works fine :slight_smile:

1 Like