I have searched for every answer on this forum related to this topic.
But none of those solutions worked for me.
My requirement : I am trying to copy individual transactions(Which are data rows) to an excel sheet.
The logic is that i am testing a condition on individual transaction.Only if the transaction fulfills that condition should i copy the data to excel.
I tried the below code:
The error i received is : Add Data Row: Object reference not set to an instance of an object.
i figured out that in_TransactionItem.ItemArray is probably empty despite in_TransactionItem having data.However in_TransactionItem.ItemArray doesnt have data being passed.
I even tried to print the value of in_TransactionItem.ItemArray.But its printing some system.row kinda thing.(Not the value)
Am i missing out on some information ? Any initialization or something to ensure data is passed from in_TransactionItem to in_TransactionItem.ItemArray.
Suggestions are welcome.Thank u.