Set Transaction Status: QueueItem does not exist. Error code: 1002

I use a queue with transactions. I read queue items and everything works fine, so I know the queue name is correct. Then I want to change a transaction status to Successful and I get this error.
I can’t understand why it says the item does not exist while I could manipulate its data just before…

3 Likes

@eric.marciano

Can you share the screenshot of your workflow?

Thanks

Hi @eric.marciano,

Please share the error and Code snips, also you are working on the same transaction on both the instances right?

Thanks

Here is a screenshot of my workflow.
The ‘Get Transaction Item’ activity uses ‘transactionItem’ variable as an output, and the workflow file that is invoked (HandleInfo.xaml) just displays the value for each transactionItem column. It works well, but the ‘Set Transaction Status’ at the end fails.

2 Likes

Here is the output when I run it:
02/25/2022 23:29:57 => [Debug] Debug started for file: Main
02/25/2022 23:29:59 => [Info] CD93 Salesforce execution started
02/25/2022 23:30:00 => [Info] Transaction Started
02/25/2022 23:30:00 => [Warning] Item #1
02/25/2022 23:30:01 => [Info] SuppliedEmail is UNDEFINED
02/25/2022 23:30:01 => [Info] ContactEmail : mrajaonari@gmail.com
02/25/2022 23:30:01 => [Info] IsStopped : False
02/25/2022 23:30:01 => [Info] StopStartDate is UNDEFINED
02/25/2022 23:30:01 => [Info] Comments is UNDEFINED
02/25/2022 23:30:01 => [Info] DB_Case_Duration_Hours__c is UNDEFINED
02/25/2022 23:30:01 => [Info] DB_Hours__c is UNDEFINED
02/25/2022 23:30:01 => [Info] CreatedDate : 01/21/2022 10:49:59
02/25/2022 23:30:01 => [Info] LastViewedDate : 02/25/2022 22:29:27
02/25/2022 23:30:01 => [Info] LastModifiedDate : 01/21/2022 10:49:59
02/25/2022 23:30:01 => [Info] ClosedDate is UNDEFINED
02/25/2022 23:30:01 => [Info] DateTime_Closed_c__c is UNDEFINED
02/25/2022 23:30:01 => [Info] DateTime_Opened_c__c is UNDEFINED
02/25/2022 23:30:02 => [Info] ParentId is UNDEFINED
02/25/2022 23:30:02 => [Info] LastReferencedDate : 02/25/2022 22:29:27
02/25/2022 23:30:02 => [Info] Description is UNDEFINED
02/25/2022 23:30:02 => [Info] Duration__c is UNDEFINED
02/25/2022 23:30:02 => [Info] IsEscalated : False
02/25/2022 23:30:02 => [Info] IsClosed : False
02/25/2022 23:30:02 => [Info] SlaStartDate is UNDEFINED
02/25/2022 23:30:02 => [Error] Set Transaction Status: QueueItem does not exist. Error code: 1002

2 Likes

@eric.marciano

Can you please share screenshot of Get Transaction Item and Set Transaction Status activity properties.

1 Like

Hi @eric.marciano,

I have some questions:

1 - Do you change any property (for example, Reference) of the TransactionItem in the HandleInfo.xaml?

2 - If you access the queue through Orchestrator, can you find this item? If yes, what is its status? In progress? Abandoned? Deleted?

Here are the screenshots for the 2 activities:

1 Like

After making these screenshots, I think I found the explanation:
in the Set Transaction Status acitivity, I forgot to set folder path, as you can see on the screenshot. I have just set it to “Shared”, which is the folder that contains my queue, and now it works, no more error, and the transaction appears as successful in the orchestrator.
Problem solved :slight_smile:

2 Likes

@eric.marciano

Yes I also thought the same you forgot to pass the folder path. That’s why I asked you to share the screenshot before confirming it.

Great you got the solution. Happy Automation :robot: :v:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.