Using "on element appear" activity

I have some URLs inside a data table which takes me to the employee page of a website and uploads the files as follows:

If this page doesn’t show up and takes me to a page as follows:

I need to proceed forward with the loop and execute the same for rest all elements which I am not able to do.

So can anyone please help me out with this?

Iterate through the data table using a for each row loop

I’d use an element exists for that error message and have it as the start of an if statement:

If error message is displayed, do nothing - This will take you to the next row in the data table.

If the error is not displayed, carry out the rest of the process to upload the files for that employee then move onto the next URL