It’s better you check the same in Process State instead of the Initialization State
OR
You can place a condition and check while pushing the Queues to the Queue
Regarding your error the value is getting null because there was no Transaction Item initialized in Initialization State
Even though you have the TransactionItem variable, but that will the value once you pass te Transaction State
the error is showing that there is no value was not present in the transactionitem
because in reframework the transactionitem gets the value once it was mentioned in Gettransaction state
if you want to view the datarow you can try like in the message
you are reading a data into datatable and then immediately you are trying to access transaction item which does not even make sense…you have to assign something to the variable…it does not get auto assigned