Building an error-handling routine
You are probably keen to see the Error handler package in action. You will be guided through a step-by-step walk-through on building a fully functional bot. You will then introduce an error by editing the input file and creating an invalid record. This will result in the bot failing and stopping its processing midway as it encounters the invalid record. The walk-through will then take you through the process of adding an error handler routine.
This walk-through works with the file Chapter18_Products.csv
. This file has a list of products within each business segment, and the contents look as shown in the following screenshot:
For this scenario, the bot will perform the following tasks:
- Read every record from the CSV file
Chapter18_Products.csv
. - Apply a
10%
discount to the price. - Create a new CSV file with updated prices called
Chapter18_UpdatedProducts...