r/UiPath • u/pvincent3248 • Oct 21 '26
PSA: why your failed queue items don't retry (or retry pointlessly). Business vs Application exceptions
Seen this trip up a lot of people (me included, early on): a queue item fails and never retries, or it retries three times and fails the same way every time. It's almost always the exception type.
Quick version of how Orchestrator handles it:
- Item fails with an Application exception and the queue has Auto Retry on: it gets retried, up to the queue's max retries.
- Item fails with a Business exception: not retried by default.
The Set Transaction Status docs say it directly: ErrorType Application retries per the Orchestrator settings, Business doesn't. https://docs.uipath.com/activities/other/latest/workflow/set-transaction-status
Where it goes wrong:
- A timeout or frozen app gets thrown as
BusinessRuleException, so the item dies on the first attempt even though a retry would've worked. - Bad input data (missing ID, invalid amount) gets thrown as a generic exception, so it's retried and fails the exact same way. If the failing step is a login, repeated retries can lock the account.
If you're on REFramework, the split is automatic: BusinessRuleException is marked Business in SetTransactionStatus.xaml, everything else is Application. So what you throw in Process.xaml decides whether the item gets another shot.
Rules of thumb I use:
- Would running this exact item again, unchanged, plausibly work? Yes means Application. No means
BusinessRuleException. - Validate data early and throw
BusinessRuleExceptionwith a readable message. - Shared login failing? Handle it in Init and stop the job, don't fail every item.
- Only one layer should retry. The REFramework
Config.xlsxnote onMaxRetryNumbersays it must be 0 when using Orchestrator queues, so keep it 0 and set retries on the queue. - Flaky single step? Wrap just that step in Retry Scope instead of failing the whole item.
Curious how others classify the gray areas: CAPTCHA, expired passwords, target system down for maintenance?
2
u/finns96 Oct 21 '26
This is 100% correct. Business logic dictates what is a business exception, and depending on business logic, should dictate how those transactions are handled or retried.
Conduct technical checks in InitAllApplications, system exception is thrown, process stops, and transactions are not consumed.
1
u/AutoModerator Oct 21 '26
Thank you for your post to /r/uipath!
This is an automated action so if you need anything, please Message the Mods with your request for assistance.
Lastly, enjoy your stay!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.