Problem with Try Catch

Hi Team,

I am experiencing a problem with Try catch in one of my streams.

Flow:

Open government website
browse the site

Try
login
Download files as year <= to current

As it is a government site and is always giving trouble, I need that if the site goes down it will resume the flow of where it left off.

I put in the Catch

Exception

Invoke GIA
(Open Site, Login, Browse)

Well it runs, but soon after logging in the site closes and is trying to log in again until it gives error. I Not sure what to do, can anyone help me?

FirstOpen_SistemaICMS (Problem)
Try.zip (42.3 KB)

  1. use REFramework
  2. use Flowchart instead of Sequence for complex logic

REFramework is designed for exception handling.

good luck

@irahmat

Thanks,

I’m using REFramework, but I don’t know how the flowchart can help me in this part. All other try catch works only this one that doesn’t :thinking:

Kindly elaborate this please
I think the functionality of your process should work
Cheers @KMota

1 Like

I saw your code, your code have many condition in Sequence that take time for me to understand ur logic. if u use Flowchart instead it will easy to understand by other developer or non-dev.

the file u uploaded is not REFramework.

@irahmat

Now I understand why use the flowcharts lol. I didn’t send the whole project, just the part that is in error. The project is very long and is totaly sequence :dizzy_face:

@Palaniyappan

I are experiencing an error now

image

Maybe the arguments are not correct? I already passed them all and I find nothing

1 Like

Hmm
Fine
Those arguments though passed doesn’t have any values in it
To test it use a writeline activity and mention that argument and check whether we get any value in the output panel
Cheers @KMota

1 Like

I was like u at first time I use a Framework. once, I modify the logic, it’ take so much time to me to understand a current logic and hard to see the whole logic in a Sequence at least u convert it to Image. LOL.

so, because of this. I allow to use Sequence if have only one condition. more than that use Flowchart.

@Palaniyappan

Right, what I don’t understand is why the error: Invoke CloudGed_Login workflow: Object reference not defined for an instance of an object. if he ever logs in and then closes

I will test with the write line
:bowing_woman:

1 Like

@irahmat

You’re right, it was pretty hard to understand the logic of the whole project, especially since it wasn’t me who started lol, I’ll test the arguments, but still have no idea what might be going wrong.

Is it possible to add element exists after log in task.
Add IF or Flowchart decision then,
If the element exists let it continue
If not let it break and send email or close the flow.

May be the direction of that argument may not be right between IN and OUT
Or
The variable assigned to that argument while invoke workflow file activity used with IMPORT ATGUMENTS, might be improper
Or
We would have pressed IMPORT ARGUMENTS to check the value of each arguments instead of clicking Arguments property in the property panel of Invoke workflow file activity as on clicking import arguments will import freshly without any value
So don’t click on import arguments to check the value of each arguments

Cheers @KMota

I passed the argument on the write line I believe I am passing a wrong argument, I tried to change the direction, but presented the same error.

image

1 Like

Fine
Kindly check at which activity this error occurs and what that activity has in it - argument name
Check with the direction
—make sure that once after importing argument the workflow is saved
Cheers @KMota

Believe that the error is in this case if

as in the picture below.

image

catch invoke:

Arguments GIA - ICMS
image

1 Like

In second picture
I hope we are getting the value from that workflow for In_TransactionItem
So that argument should be of direction OUT
And that argument must be passed to the workflow invoked in the third picture

Cheers @KMota

You’re right lol It worked. Thank you so much, I went through so many times that I didn’t even realize this argument

:bowing_woman:

congratulations @Palaniyappan

1 Like

Fantastic
Cheers @KMota

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