Add queue item and try catch that doesn't work

Hi everyone,

I had to create a queue with a unique reference, in my process I try to insert an item transaction with the “add queue item” activity
I want to know with a try catch if my reference is unique or not, this allows me to trigger a treatment on the non-unique case

At the end of this processing, I see that I have to use “OrchestratorHttpException” to work with the duplicate reference. But I can never display the corresponding message from the “OrchestratorHttpException” part

Do you have an idea?

Good evening and continuation

Arnaud GUERNIC
Beginner under UI Path :slight_smile:

arghh

With continue on error it changes a lot

Sorry

i made a try with the option true or false, and i can’t catch the exception

is it possible to catch it ?

have a nice day

Arnaud

Hi @Arnaud_G

Can you try with System.Exception

Regards,

thank’s

I did it with the False on continue on Error

but no catch, only the message

Add Queue Item: Erreur lors de la création de lʹobjet Transaction. Référence en double. Error code: 1016

and my process stop on the "Add queue Item " activity

@Arnaud_G

You need to use Add Queue Item activity within Try Catch(Try block)

Regards,

I forgot to put it back in the try catch; I had positioned it here to get the exception to catch.
I repositioned it in the try but still got the same result.


{02B1B7A2-9321-40C9-BA7A-09EBC5527889}

@Arnaud_G

As i said previously can you please try with System.Exception instead of System.SystemException

Regards,

arghh

always the same

@Arnaud_G

You ran in Debug mode click on continue and see what happens..If not worked can you try to update UiPath.System.Activities Package

Regards,

Great! Thanks for your help.

I updated the packages and ran my test, and the error was caught, even though debug mode doesn’t catch the error.

Thank you very much for your help.
have a nice day !!

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