Skip to Content
0
Sep 04, 2023 at 02:11 PM

SAP Intelligent RPA error loading Environment variables to Desktop Agent

180 Views

Hello SAP Intelligent RPA and SAP Process Automation experts.

We are having problems with environment variables, for some processes the RPA indicates that they are "undefined".

We are using the SAP Intelligent Robotic Process Automation service, all our packages are using the SDK version 1.38.31 and the agent version installed is 3.16.62.

We have two environments defined in SAP Intelligent Robotic Process Automation Factory as production. One (FINENV) for processes from the finance department (processes that run daily or with several runs during the day) and one (ITENV) for processes from the IT department (processes that run once a month).

On the other hand, we have two virtual machines, one for the financial processes (MV1) and one for the IT processes (MV2). As the IT processes are executed monthly, we have also configured the MV2 agent for the financial processes in the FINENV as load balancing, so that if any process takes a long time (there are some that last more than two hours), the others can be executed on the other machine.

MV2 has recently upgraded its agent version from 3.14.48 to 3.16.62.

Also, we have different packages that are reused as tools by all the others, one (TOOLS) with automations for Outlook, logon to SAP, generation of execution logs... and another one (BAPIS) to execute BAPIs to obtain background job statuses from the SAP system. These two reusable packages are used in the IT (TOOLS and BAPIS) and financial (TOOLS) processes.

What we have noticed is that since a few weeks ago the IT processes are not running correctly on MV2 because the robot is not able to collect the environment variables of the reusable packages (SAP system ID, User to access SAP, common paths, all the data for the connections of the BAPIs package...). However, the financial processes are running fine on the MV2 machine.

In the SAP Intelligent Robotic Process Automation Factory for IT environment ITENV, in the Cloud Studio part there are 36 environment variables defined. Some text variables of the reusable package TOOLS that are not required are not filled in and appear with a warning in the list of variables. In this environment, the reusable packages (TOOLS and BAPIS) are not deployed, only the package containing all the technology processes is deployed, which uses them as dependencies.

image.png

Checking the files that are generated in the MV2 virtual machine we have seen that the packages are downloaded and have all the JSON files corresponding to the environment variables in the "variables" folder of the package.

The problem is that in the environment folder generated in the path C:\Users\user_id\AppData\Local\SAP\Intelligent RPA\Environments, in the JSON file where the variables inside the "variableSet" are specified, there are only 10 variables instead of the 36 needed.

image.png

This causes that all variables that are not in the file when the RPA tries to use them in the processes result as "undefined" and the process fails.

The weird thing is that for the processes of the Finance department running on the MV2 virtual machine, no errors are occurring, and it is working correctly.

The only thing we see different is that in the SAP Intelligent Robotic Process Automation Factory for the finance environment FINENV in the Cloud Studio part there are 57 environment variables defined. All environment variables are filled in and none of them indicate a warning. In this environment, the reusable TOOLS package is deployed as well.

Has anyone had something similar happen to them and knows how to solve the problem?


Best Regards,

Alejandro Lisarde

Attachments

image.png (45.8 kB)
image.png (482.3 kB)