How to deal with uncertain wait times when waiting for elements to appear

So I want to add a SAP B1 invoice using UiPath. Each invoice has different rows, some have a few, some have a lot. When there are a lot of rows, there’s a long wait time for the next action. If there are few, the wait time isn’t long. What activities should I use in UiPath? So far, I’ve been setting it at around 2 minutes, just in case there are a lot of rows, but if there are few rows, there’s a long wait time.

1 Like

@CPermadi

Welcome to the community

Use a check app state with maximum timeout you think..if its visible before it would move else would wait till max wait time

Cheers

2 Likes

Thanks for answer

So what needs to be filled in is the target appears, right? For the target does not appear, it doesn’t need to be filled in?

1 Like

You can use check app state, with retry scope.
Yes, in target appears you do whatever you want to do when this state appears, like click or proceed further.
Aslo, its good practice to add log message in target does not appear too, so that you can track it.

1 Like

@CPermadi

In target does not appear you can throw error (As if the page is still loading or next button is not present it would go there)

In Target appears is where you can continue your next steps

cheers

1 Like

Thank you for your response and providing an answer/solution to the problem I asked about.

Ok, I’ve tried and it works, thank you.

1 Like

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