For Each Row in DataTabe, argument (in_DTData) throwing null on the second transaciton

Hello guys,

So this is the current state, I have a “For each Row” filled with an argument “in_DTTable” this is a data table previously built.

The thing is that with the first transaction it does the work but for some reason with the second transaction the argument goes “Null” so an error pops up in the “For Each Row” activity:

RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.

I know that the argument is working because the first transaction in completed but not sure why it goes to null, by the way there is no other activity to reset the data table so that is not the case.

Any ideas??

Thanks in advance
Luis V.

Hello @luisvv93

Based on the error you get, it seems like the data table in_DTTable is getting null. Since you say it shouldn’t reset, I think the best way to figure this out is to use the debug option. Have some break points in different places where suitable. If this workflow is invoked from another, add a break point there. Then run in the debug mode which is the default. Once the execution hits the debug point, it will stop there temporarily. Once stopped, check the locale panel for the data table variable to see what it holds… Check couple of iterations as you said the first one was fine…

1 Like