Create files ulpload loop via flowchart

Hello guys,

My process in short:

  1. Splitting one big file into smaller ones
  2. Opening the internal system
  3. Uploading the small file
  4. Waiting the system to return information
  5. Downloading the generated file
  6. Rinse and repeat until the last file is uploaded

I assume that For Each will do the trick, but there is one problem: sometimes the submit button disappears, due to system error and I have to repeat the process. This is why I have added Element exist check, where if the robot doesn’t find the button it repeats the first steps.

I don’t how can I do that in For Each. If you have any suggestions or solutions IT WOULD BE GREAT (the deadline is ticking)

I am adding the flowchart

Thanks in advance!

And one another thing. If the error accurse, I need to start with the file where it failed.

N.B: Sometimes the files are more than 100.

Well,

I would start off by saying For each can be used for Data table or collection.

  1. Either use each file in folder xaml and build the workflow.
  2. Or use list of file names and you can use for each item in array/list until the end

If I have misunderstood your question then please elaborate on how you want to approach the design. Do you really want to use for each or did you intend to ask something else.

I would suggest you to break the initial steps into smaller workflows so that it can be reused in the for each construct as the submit button has issues and reuse them/retry them inside the loop.

Hope this helps.

Regards

Hi @Raghavendraprasad

Well i am asking is there a possibility not to use for each in the workflow, or to use for each just to pass the next file from the folder into the workflow.

Are you suggesting to put the whole workflow in the For Each. There should be If statement for the existing of the submit button. Not sure how, just guessing.

Regrads,
Hristo

Use REFramework, as it allows to retry the failed transaction (i.e. failed file) and each of your small file will be a transaction.

1 Like

Hey @c.ciprian

Thank you for the suggestion. Can you provide me with decent source, from which I can read more about REFramework.
Thanks.

Edit:
NVM I found one: GitHub - UiPath/ReFrameWork: Robotic Enterprise Framework Template

When you create a REFramwork project, the documentation will be in Documentation folder and it’s up to date. I do not know if this git is still maintained.

2 Likes

Hi,

Just like @c.ciprian mentioned RE Framework would also be helpful and you can consume Queues for looping through the data set that you have.

Or if you want your own custom retry mechanism then the only wrkflow that needs to be retried should be separated from the others so that it can be modular and code duplication does not happen.

The application that tries until the ‘submit’ appears must be the workflow which should be independent and invoke it using ‘Invoke workflow file’ and retry it with condition that until submit button/element exists or on element appear.

Hope this helps.

Regards

2 Likes

@Raghavendraprasad

Thanks for the advice!

1 Like

Great @Phoenixxx, glad it helped. Contact me if you need anything else :slight_smile:

1 Like

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