can you please tell me how you are adding values to queue?
While adding values to Queue in Add Queue Item activity did you specified ArgInvoiceNumber as argument ?
Can you confirm in Orchestrator that the fields are set in the queue item first to ensure there is something there as row.Item(“Invoice_Number”).ToString may be empty?
It might be good practice to check when you get anything from orchestrator if the String is empty or not first by using
and one more thing to check… I suppose you have the get Transaction Item activity in the GetTransactionData.xaml.
Make sure you are assigning the output of the get transaction item activity to out_Transactionitem argument.
Additionally, in the invoke workflow activity of the GetTransactionData.xaml, make sure the out_transactionItem argument is assigned to TransactionItem
Some quick ways to check where it falls over is add some logs throughout with what you are looking for and see where it falls over, it may be that arguments have not been passed correctly from workflow to workflow.
Try going through the GetTransactionData.xaml and see if the logic to access an item from the queue (which is subsequently assigned to out_TransactionItem) holds proper.
It could be possible that your process is not retrieving the items from the queue properly. Because if it is ‘Nothing’ it would ‘End Process’, and since it is continuing to Process.xaml, it might be holding some data in the TransactionItem.
Try checking if the contents of ‘TransactionItem’, if your code to access an item from the queue is fine.
Are you sure that there are no transactions in your queue where the ArgInvoiceNumber is not set? I would recommend using Log Message or Write Line to output the Transaction’s unique reference to the console and then manually check that the ArgInvoiceNumber is set after the error is thrown.
The way you are referencing the SpecificContent and adding it in ItemInformation when adding to the queue appears to be correct. The only two things that I can think of that could be wrong is the ItemInformation not being added for a specific item as described above, or the Transaction Item argument not being passed correctly through the framework.