How to add data row into a queueitem?
Let’s say I have extracted a table with several fields which I want to add it into a queueitem. Is it correct that I just need to put the string into the iteminformation? I got an error message “Add Queue Item: Object reference not set to an instance of an object”? How to solve it?
If you have a row, you have to use for each and assign like below in item information.
Work-items.xaml (16.1 KB)
@katylsy I have attached a simple workflow for your above question though. Please go through the training material once again.
I got this error. What is the possible cause?
if you want to add entire row as single variable in to the queue item. You need to serialize the table to json and stored the value.
Can you print the values which you are using in item information.
I can print the data like “Invoice Number” successfully. But failed to add it in the queueitem.
Can you advise what the problem is?
Is the particular queue to which you are adding these items is created in orchestrator and are you mentioning the queue name in double quotes like “Queue1”
So weird, I use the config to get the queue name. But error is shown. But if I type the queuename directly, the queueitem can be added.
May be while accessing from config file there is an extra space, just print the value comming from config file and see if there are any extra spaces or not.
Might be null value issue, Your are using tostring to convert the row object to string.Instead of that please use convert.tostring. Tostring does not handle null values.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.