Error handling/excel logs

hello comrades!

I’m doing a project for my trainee where I have to make a bot that needs to do this actions:

Read List of series and movies from an Excel file. (The category distinguishes film from series)
For each series:
-Extract synopsis, number of estimates, overall rating, calculation of average estimates of numbers.
-Extract list of episodes from all seasons in which each episode needs to identify title, rating, data and episode number.
-Saving this information in a sheet is the following information about the series and the following sheets as lists of occurrences of each first season by season and within the first season ordered by rating.

  • Convert dates to format Ex: 21 January 2022

For each movie:

  • Extract Synopsis, year, duration, overall rating, number of estimates, popularity and premiere data for each film;
    -Store this information in an Excel where the movies are sorted by year and rating.
  • Save an Excel file in which for each movie it indicates whether it was possible to process the movie and if not, indicate the error that occurred.
    Email each year’s most popular movie and series with the best average episode rating.

This being said, I have already all the sequence, but now I need to handle the errors/logs such as:

  • a global file of errors to process whether it’s series or movies
    if the errors are in the individual processing of a series or film, it is necessary to record the error and move on to the next case. If the error is outside the processing of the series or movie or before reaching that part, it is necessary to send an email and finish the process.

I’M super stucked with this part. I have a serieFilter sequence with a loop and a movieFilter sequence, a sent mail sequence and a login one.

should I put a catch and try around the loop of filter and movie? and what about sending email with the error, in which sequence?

i’m very lost at this error hanlding part

Hello @mouthOfMadness!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly

1 Like

Manually perform safe mode troubleshooting
If you didn’t use the Assistant, manually open Excel in safe mode. Do one of the following:

If you are on Windows 11 or Windows 10, choose Start > All apps > Windows System > Run. Type Excel /safe in the Run box, and then click OK.

If you are on Windows 8 or Windows 8.1, click Run in the Apps menu, type Excel /safe in the Run box, and then click OK.

If Excel starts in safe mode, continue with the steps in the COM Add-ins section of this article.

If Excel does not start in safe mode, continue with the Install the latest updates section of this article.

COM add-ins
Use the following steps to determine if a COM add-in is causing the problem:

Click File > Options > Add-ins.

Select COM Add-ins, and click Go.

Clear all the check boxes in the list, and click OK.

Close and restart Excel in normal mode (not in safe mode).

If the issue does not occur when you restart Excel in normal mode, start enabling your add-ins one at a time until it does. This will allow you to figure out which add-in is causing the problem. Be sure to restart Excel each time you enable an add-in.

If disabling COM add-ins did not resolve your issue, see if the issue is due to an Excel add-in.

Excel add-ins

Follow the steps in this section carefully. Serious problems may occur if you modify the registry incorrectly. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs.

For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows…

Start Registry editor. To do this, press the Windows key + R to open a Run dialog box. Type regedit.exe and then press OK.

Locate and then select the following registry key:

Note: In this subkey, <1x.0> represents the program version number. 16.0 will appear for versions Excel 2016 and higher while 15.0 will appear for Excel 2013.

In the Name column, look for any REG_SZ value equal to OPEN.
If you don’t find a REG_SZ value whose name is OPEN, continue with the Investigate possible issues with files in Startup folders section.

Right-click OPEN, and then select Rename.

Rename OPEN to RenamedOPEN, and press Enter.

Repeat steps 4 and 5 by adding “Renamed” to the beginning of any REG_SZ value that starts with OPEN. For example, rename OPEN1 to RenamedOPEN1.

Start Excel in normal mode.

If the issue does not occur when you restart Excel in normal mode, start re-enabling your Excel add-ins one-by-one by removing “Renamed” from the name. You’ll be able to identify the add-in that’s causing the problem. Remember to restart Excel each time you re-enable an add-in in the registry.

If disabling COM add-ins and Excel add-ins did not resolve your issue, continue to the Investigate possible issues with files in Startup folders section.

Rachel Gomez