System Exception Not working as Expected

Hi All,

When ever I am having System exception the bot does not retry . In Init applications the bot downloads file and reads the data from that file in (Gret Trnsaction state) from that file but when ever there is system exception the bot does not retry , the system exception counter does not increments . It fails in Get Transaction state saying no Input file present.

. I have added max retry 2 for system exceptions but it does not go to init state and retries to download the file and get data .

@marina.dutta,

If your bot fails in Init state then there won’t be retry applicable. It will directly go to End State.

If you want to retry something in Init state, use Retry Scope.

Transactions fails in the Process state that one only will be retried.

@ashokkarale

Trnsaction is failing at process step

@marina.dutta,

Try debugging the behavior from Set Transaction Status xaml. Is it checking & increasing the retry counter or not.

@ashokkarale

Its going to Increment retry counter stage. Dont know why its showing System Exception Retry 0 IN LOGS. Why its failing in Get Trnsactio stage

@marina.dutta

Let me explain what happened here

  1. It failed in process.xaml
  2. Went to set transaction status where if you see at the bottom
  3. There is an increment sequence where the io_retrynumber will be set to 0…the value of that variable will be zero and when so exception occurs it increments
  4. The increment will happen in retrytransaction.xaml and before the increment there is a log message which is saying rrtry : 0 in your logs…which means it athe first retry…
  5. Now when retry is being do…the retry will start from init …so it goes to init and then comes to get transactio. Data where again in your flow it is failing will value null that is some variable or file pth is empty rather than as expected
  6. When some failure occurs in init or get transaction as per REF it would go to end state irrespective of you setting a retry or it being in normal or retry phase
  7. So now what you need to focus and resolve is the issue you are getting in the get transaction data …so please work on it and the issue is not eith retry number

Hope this helps

My piece of help as the error says the workbook path is empty ao check that variable data particularly and preserve it to not to maka it emtpy…also ideally when the data is already read it should not be do for every system exception or so…so its better you do such thinga in first run if condition of init state

Cheers

@Anil_G

I got your point. But my ask is if its failing and going to init state it should go and download the file in Init All applications.

Based on this download file , the Get Transaction gets the data .

When it is going to init state Why is it not going to Init All applications and downloading the file. Since its not downloading the file , the variable in Get Transaction becomes empty

@marina.dutta

With this screenshot it is clear that you gave a if condition to check if in_retrynumber =0 but if there is a system exception as explained already that number would increment and change to 1 now…ao its not 0 …so if condition ,goes to else and hence not downloaded

Cheers

@Anil_G

I got it now
What is the solution so that I dont have to download the file again. The Get Trnsaction can get data from the already downloaded file in Input folder?

Can I give in_RetryNumber>=0

@marina.dutta

=0 will run it always…if you want to do that…then why do you want to give a if condition as well?

And if you want it to read the data again…in the first place does it need to read data again? Because already data is present in datatable why not use it?

If you want it to read again then sepeate the sequence of readinng from that if so that download happens once and read can happen multiple times

But again i dont see a point on why you would want to read it multiple times when already data is present in a variable for you to use

Cheers

1 Like

@Anil_G

Got your point. I am using the data table that is stored in variable instead of downloading again and again.

1 Like

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