I am trying to get the data from Queue by using Get Queue Item and trying to add that data to excel sheet using variables.
I am able to add the data from excel to Queue by using Add Queue Item. I need the same data from Queue to add it to new excel sheet.
Can anybody help me on this.
When you use get queue items it will return a collection of queue items. use Get Transaction Item which will give single row with Uipath.Core.Queueitem data type.
then you can use the dt2.SpecificContent(“CashIn”).ToString to get specific text.
I went through your file and you need to use Get Transaction Item acitivity instead of Get Queue Items activity because ".SpecificContent function is not a member of QueueItem class .
Get Transaction Item output will be of QueueItem type whereas Get Queue Items output will be of IEnumerable type , means collection of Queue Items. So, this way you’ll not be able to fetch the data from the same.
I hope this clears your doubt. Let me know if you still have any doubts.
Have you uploaded few rows of data on the orchestrator ? Get Transaction Item will retrieve the data from the orchestrator queue and change the status from new to in progress.
If No, then please upload few rows of data to orchestrator with the same queue name which you’ve used in Get Transaction Activity.
Before using Get Transaction Item please add input values to Queue by using Add to Queue activity.
dt2.SpecificContent(“CashIn”).ToString - in this line CashIn is the Key that bot is trying to retrieve. This error will come when the key you are trying to retrieve is not present in Queue.
in dispatche.xaml while adding to queue you have to provide ItemInformation there you have to specify the Name as “CashIn” and in value keep row(“CashIn”).tostring. then it will work fine.
I’m wondering then how it’s uploading the data to the orchestrator queue. Could you please try once by adding the argument like the same i showed in the last screenshot.