I’m a beginner in UiPath and I’m doing a case just to learn REFramework better. It’s a very simple case of checking on a website if the input is valid (not complex for REF) but I just wanted to learn how to handle exceptions. When this input is invalid I wanted to make the transaction a Business Exception. The process flow is basically like this:
Type into (input) > Get attribute from the answer(“valid” or “false”) > Trhow BRE if false.
I’ve tried try catch many times but gives me the error of no queue item exists(1022). Also tried with Set transaction status but i know it has been deprecated. How would I try catch and trhow BRE in this case?
The throw isn’t the issue. It’s the Set Transaction Status activity that is erroring. The Throw causes REF to jump to code that handles the exception. Run this in Debug mode so you can see where it jumps to and which activity errors.
Yes I’m pulling from a queue.
First I add items from excel file to the queue and then I run the process…
Maybe something wrong with the process structure or as you said in the set transaction activity. Perhaps I need to change something in the .xaml of the transaction set?
It’s supposed to stop at the Throw in Debug mode. Debug stops when there’s an error, and Throw is an error. Click the Continue button at the top of Studio.
I see somehow trying to invoke the workflow “test” which is the BRE i named just to test it.
Somwhow I need to modify the set transaction to understand that the trhow is to set transaction.
How can I correct this ?
Simply in the set transaction argument has the in_OrchestratorQueueFolder argument that references the config file. I simply put the name of the folder in the config file in the part of OrchestratorQueueName
and this time was ok! Beginner’s mistake hahaha!