Skip to main content
Nintex Community Menu Bar

Investment Report Use Case - Part 3

  • August 31, 2022
  • 0 replies
  • 48 views

MillaZ
Nintex Employee
Forum|alt.badge.img+22
Product: Kryon RPA
Product Version:
Components: Kryon Console; Kryon Robot; Kryon Studio
Article Contributors: Artur Martirosyan
This article is the continuation of the of the previous three parts of the Investment Report Use case. In this article we will finalize the Use Case Development, covering error and exception handling, logs, wizard resistance and running the wizard from the console using the file trigger.
Prerequisites: For this article, the main prerequisite is to have an access to the Kryon Studio. It is recommended to get access to Kryon Robot and Kryon Console to test the wizard end to end, including running it from the console using the file trigger.
 
Steps:
Introduction
As mentioned in the summary, in this article we will cover the following topics:

1. Logs, Error, and Exception Handling
2. Wizard Resistance
3. Creating a folder trigger and running the wizard on the robot from the console.
 
Logs, Error, and Exception Handling

Logs help RPA developers to maintain the wizards in the case if the Bot faced unexpected issues and system changes or updates. In these kinds of situations, the maintenance team seeks to eliminate the issues and bring the Wizard back to Production. In our use case, we are going to send logs to a CSV file. In some cases, we can use also the Log action advanced command to send the invoice number or any other important reference number to the console. As you can see in the below example, using the customized Syslog, we write the necessary logs to the CSV file as well as logging some information to the Kryon console. Basically, when logging an action we can log any data, such as step name, step or action description, the status such as a successful or not failed, the value, any information that will help to understand where the wizard had any issues.
 
Logging
 
24158i181C29F2AC3819CA.jpg
 
Logs in CSV file: 
 
24159iD588A5A1A4169662.jpg
 

In the case of using the Log Action advanced command, you will see the mentioned log on the console under Run History:

 

24160iA0DB05319DDC638E.jpg

 

Error and Exceptions

During the production run time, can be many situations when a certain command will fail or the page will not load, or any similar exceptions. For this case, most of Kryon's AC's have the option to prevent and find out if an error happened, e.g. the command failed, action not performed, object not found, and many more. In the example below, the Bot will check if any error happened when executing the JavaScript advanced command and if yes, it will try up to 7 times to get the desired object, and if the wizard will not succeed it will terminate the wizard unsuccessfully and will send and notification to the maintenance team.

 
24161i318219AFB9BDA09C.jpg
 
The above-mentioned option is one of the many ways to prevent the wizard from failing and not completing the processes or at least to catch the error on time and notify the maintenance team. For the sending notification per email or any type of chatter tool please refer the following articles:

This can apply to any step or Advanced command, for more error and exception handling guidelines please see the below two articles:
 

Creating a folder trigger and running the wizard on the robot from the console.

To create a folder trigger, you need to access the Kryon console then go to the Triggers menu then click on New Trigger:
 
24162iAD201CC22FF8BBBE.jpg

 

Then select the Folder or File trigger option, give a user-friendly name, give the system or SharePoint path, give the file or folder name, select the wizard and the Queue then save and activate.

 
Note: The wizard will be visible under-console if it is published from the Kryon Studio.​
Once the trigger is activated, the robot will monitor the folder or the file every 20 seconds by default unless you change the frequency. Once any new file appeared in the folder or any change is made to the folder, the robot will be triggered.
 
24163iC1CD566F0D62DF52.jpg
 
Each new task will go to the queue and based on its priority will be executed by the respective robot. Once it's complete you can see the completed tasks under the summary page where you can see the logs, the trigger type, time, and many other details. You can see some overviews under the dashboard tab as well.
 
24164i76EF127090A0C87E.jpg
 

Attached you will find the new wizard, which contains the above-mentioned changes. Per your preference, you can add additional logs, error handlings with the given guides and articles. If you have any questions please write to Nintex Community.