Book Image

Robotic Process Automation with Automation Anywhere

By : Husan Mahey
Book Image

Robotic Process Automation with Automation Anywhere

By: Husan Mahey

Overview of this book

With an increase in the number of organizations deploying RPA solutions, Robotic Process Automation (RPA) is quickly becoming the most desired skill set for both developers starting their career and seasoned professionals. This book will show you how to use Automation Anywhere A2019, one of the leading platforms used widely for RPA. Starting with an introduction to RPA and Automation Anywhere, the book will guide you through the registration, installation, and configuration of the Bot agent and Control Room. With the help of easy-to-follow instructions, you’ll build your first bot and discover how you can automate tasks with Excel, Word, emails, XML, and PDF files. You’ll learn from practical examples based on real-world business scenarios, and gain insights into building more robust and resilient bots, executing external scripts such as VBScripts and Python, and adding error handling routines. By the end of this RPA book, you’ll have developed the skills required to install and configure an RPA platform confidently and have a solid understanding of how to build complex and robust, yet performant, bots.
Table of Contents (20 chapters)

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:

Figure 18.3 – Snapshot of the input file

Figure 18.3 – Snapshot of the input file

For this scenario, the bot will perform the following tasks:

  1. Read every record from the CSV file Chapter18_Products.csv.
  2. Apply a 10% discount to the price.
  3. Create a new CSV file with updated prices called Chapter18_UpdatedProducts...