If you want your UiPath robots to behave like productive employees rather than drama magnets this guide shows how to fetch work with Get Transaction Item and report results with Set Transaction Status while keeping retry logic and error handling under control. No miracles just solid RPA transaction processing that does what it says on the tin.
Create a queue in Orchestrator and pick a clear name so future you does not cry. In your workflow define variables such as currentTransaction
and transactionItem
. These will hold the item you reserve and any state you need while processing.
transactionItem
to receive the reserved itemcurrentTransaction
to store processing state and resultsDrop in the Get Transaction Item activity. Point it at the queue name and assign the output to transactionItem
. That activity reserves the work item so another robot does not steal the glory or the failure.
transactionItem = GetTransactionItem(queueName)
The reservation makes sure only the robot that claimed the item will work on it until you mark it finished or failed with Set Transaction Status.
Extract fields from transactionItem.SpecificContent
and run your business logic in small, testable pieces. Modular processing makes debugging less like archaeology and more like controlled excavation.
currentTransaction
Once processing finishes use the Set Transaction Status activity to mark the item as Successful or Failed. Add a clear message so the Orchestrator dashboard does not have to guess what happened. Proper status updates keep metrics honest and reporting useful.
SetTransactionStatus(transactionItem, TransactionStatus.Successful, "Processed OK")
If you detect a business rule failure mark it as a business error and skip retries where appropriate. For system failures mark it as a system error so retry logic can take over.
Wrap your processing in a Try Catch block. Distinguish business exceptions from system exceptions and act accordingly. Business exceptions often mean the data is bad and retries are pointless. System exceptions often deserve a retry or escalation.
Remember that a failed status plus a sensible retry policy prevents infinite loops and angry stakeholders.
Run the process in a test environment and watch queue counts logs and retry behavior in Orchestrator. Validate that items move through statuses as expected before you consider the process production ready.
Follow these steps and your UiPath queue processing will be less chaotic and more dependable. If something still fails you at least get a readable failure and can blame the logs instead of your instincts.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.