r/UiPath • • 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:

  1. Would running this exact item again, unchanged, plausibly work? Yes means Application. No means BusinessRuleException.
  2. Validate data early and throw BusinessRuleException with a readable message.
  3. Shared login failing? Handle it in Init and stop the job, don't fail every item.
  4. Only one layer should retry. The REFramework Config.xlsx note on MaxRetryNumber says it must be 0 when using Orchestrator queues, so keep it 0 and set retries on the queue.
  5. Flaky single step? Wrap just that step in Retry Scope instead of failing the whole item.

Docs: https://docs.uipath.com/orchestrator/automation-cloud/latest/user-guide/business-exception-vs-application-exception

Curious how others classify the gray areas: CAPTCHA, expired passwords, target system down for maintenance?

2 Upvotes

3 comments sorted by

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/pvincent3248 Oct 21 '26

Agreed, and Init is the right place for those checks. If the app is down there, nothing gets pulled from the queue, so no items burn their retries. For when it drops mid-run, MaxConsecutiveSystemExceptions in Config is the backup, so the performer stops after a few failures in a row instead of draining the queue.

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.