- Release notes
- Getting started
- Installation
- Configuration
- Integrations
- Authentication
- Working with Apps and Discovery Accelerators
- AppOne menus and dashboards
- AppOne setup
- TemplateOne 1.0.0 menus and dashboards
- TemplateOne 1.0.0 setup
- TemplateOne menus and fashboards
- TemplateOne 2021.4.0 setup
- Purchase to Pay Discovery Accelerator menus and dashboards
- Purchase to Pay Discovery Accelerator Setup
- Order to Cash Discovery Accelerator menus and dashboards
- Order to Cash Discovery Accelerator Setup
- Basic Connector for AppOne
- SAP Connectors
- Introduction to SAP Connector
- SAP input
- Checking the data in the SAP Connector
- Adding process specific tags to the SAP Connector for AppOne
- Adding process specific Due dates to the SAP Connector for AppOne
- Adding automation estimates to the SAP Connector for AppOne
- Adding attributes to the SAP Connector for AppOne
- Adding activities to the SAP Connector for AppOne
- Adding entities to the SAP Connector for AppOne
- SAP Order to Cash Connector for AppOne
- SAP Purchase to Pay Connector for AppOne
- SAP Connector for Purchase to Pay Discovery Accelerator
- SAP Connector for Order-to-Cash Discovery Accelerator
- Superadmin
- Dashboards and charts
- Tables and table items
- Application integrity
- How to ....
- Working with SQL connectors
- Introduction to SQL connectors
- Setting up a SQL connector
- CData Sync extractions
- Running a SQL connector
- Editing transformations
- Releasing a SQL Connector
- Scheduling data extraction
- Structure of transformations
- Using SQL connectors for released apps
- Generating a cache with scripts
- Setting up a local test environment
- Separate development and production environments
- Useful resources
Set up automated data refreshes
If you want to do frequent or interval data loads for UiPath Process Mining you can set up automated data refreshes. This guide describes how to set up automated data refreshes by using a batch script.
When running the script, the folder structure for a dataset using the dataset name you specified is generated first. Then all tables in the connector are reloaded and cached for the specified module. These cached tables are used to export the output tables from the connector. The output dataset is used to generate a cache for the application on the specified environment.
You need to have access to the server or Virtual Machine that contains the UiPath Process Mining installation.
You also need to have a connector in a workspace.
This batch script requires that the build of the workspace and the Superadmin are identical. If you update the build of the Superadmin without changing it for the workspace (or vice versa), the script will fail, resulting in no refreshed data.
Therefore it is recommended to update the build at all places (Superadmin, connector and other applications) at the same time.
Create a batch script that you want to use for the automated data refreshes from the code sample below and save it in the root folder of your UiPath Process Mining installation.
set MAINDIR=%~dp0
set DATASET=FullData
set ENVIRONMENT=production
set WORKSPACE=Peter/Connector
mkdir "%MAINDIR%\datax\_datasets\%DATASET%"
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org"
echo. > "%MAINDIR%\datax\_datasets\%DATASET%\nomodcodes.marker"
for %%M in (..) do (
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -CCDB app="%%M" o= refreshmvncaches=true
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org\MVNCache"
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -export app="%%M" out="%MAINDIR%\datax\_datasets\%DATASET%\_org\MVNCache" o= refreshmvncaches=false reusecache=true onlymarked=true
)
call "%MAINDIR%\builds\processgold.bat" -dataserver -skipmail -env "%ENVIRONMENT%" -CCDB o=* dataset="%DATASET%" p=*
set MAINDIR=%~dp0
set DATASET=FullData
set ENVIRONMENT=production
set WORKSPACE=Peter/Connector
mkdir "%MAINDIR%\datax\_datasets\%DATASET%"
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org"
echo. > "%MAINDIR%\datax\_datasets\%DATASET%\nomodcodes.marker"
for %%M in (..) do (
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -CCDB app="%%M" o= refreshmvncaches=true
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org\MVNCache"
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -export app="%%M" out="%MAINDIR%\datax\_datasets\%DATASET%\_org\MVNCache" o= refreshmvncaches=false reusecache=true onlymarked=true
)
call "%MAINDIR%\builds\processgold.bat" -dataserver -skipmail -env "%ENVIRONMENT%" -CCDB o=* dataset="%DATASET%" p=*
Below is a description of the parameters you need to specify in the script.
Parameter |
Description |
---|---|
DATASET |
the name of the output dataset you want to generate from the script. This dataset will show up in the Superadmin Development data tab. |
ENVIRONMENT |
the environment for which you want to generate a cache. Note: Usually this will be the environment on which the AppOne for your process is active.
|
WORKSPACE |
the path to the workspace where the connector is located. This is your Login name followed by the name of the Workspace. If the script cannot find the correct workspace, try using forward slash in stead of a backslash. |
Follow these steps to determine the path to the workspace.
Step |
Action |
---|---|
1 |
Go to the UiPath Process Mining installation folder. |
2 |
Go to the workspacesfolder. |
3 |
Go to the [your Login name] folder. The folder contains a folder for each of your workspaces. |
When your Login name contains special characters, the username folder is encoded for HTML. However, for use in the script the % needs to be escaped using three additional %s.
test.example@uipath.com
this will turn into the folder test%2Eexample%40uipath%2Ecom
. In the script the username should be specified as test%%%%2Eexample%%%%40uipath%%%%2Ecom
. If the username contains an underscore ('_'), this underscore needs to be escaped with %%%%5F
.
Some connectors have multiple modules, therefor you need to specify the module code for the connector for which you want to implement automated data refreshes.
for %M in (…) do
loop.
Follow these steps to find the module code and add it to the script.
Step |
Action |
---|---|
1 |
Open the connector in your development environment. |
2 |
Click on the logo icon and select Modules.... |
3 |
Copy the module code from the Application Code field. |
4 |
Click on CANCEL to close the Modules dialog. |
5 |
Close the connector. |
6 |
In the script replace the "..." inside the ( ) with the module code of your connector in the
for %M in (…) do loop.
|
You can use Windows Task Scheduler to schedule a task that runs the batch script for automated data refreshes.
The time taken for this task will depend highly on the data volumes moving through your connector. If the task is running for too much time, you are advised to consider the following things, in order:
- Minimize the data volume going into the connector;
- Check for erroneous join conditions which cause data duplication;
-
Remove any unused attributes in the connector (every additional attribute in the connector increases the runtime of the script).
Important: It is strongly advised to cancel the task after it has been running for more than 3 days.
The datasets for use with Process Mining have a specific format, that depends on a marker. This marker is stored at the root of the dataset. See the illustration below for an example.
nomodcodes.marker
and usemodcodes.marker
.
usemodcodes.marker
is only applicable when data sharding is used to scope the data.
nomodcodes.marker
uses the data structure as displayed below.
<DATASET NAME>\<ORGANIZATION CODE>\MVNCache
<DATASET NAME>\<ORGANIZATION CODE>\MVNCache
nomodcodes.marker
.
Element |
Desctiption |
---|---|
|
The name that is displayed in the Superadmin Development data tab. |
|
The default value is:
_org , which will be for 99% of the cases
|
usemodcodes.marker
uses the data structure as displayed below.
<DATASET NAME>\<ORGANIZATION CODE>\<MODULE CODE>\MVNCache
<DATASET NAME>\<ORGANIZATION CODE>\<MODULE CODE>\MVNCache
usemodcodes.marker
.
Element |
Desctiption |
---|---|
|
The name that is displayed in the Superadmin Development data tab. |
|
The default value is:
_org , which will be for 99% of the cases
|
|
The code that set in the application. See Modules. This option enables you to use multiple application codes in one app. |
nomodcodes.marker
. For usemodcodes.marker
you should use the script below.
set MAINDIR=%~dp0
set DATASET=FullData
set ENVIRONMENT=production
set WORKSPACE=Peter/Connector
mkdir "%MAINDIR%\datax\_datasets\%DATASET%"
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org"
echo. > "%MAINDIR%\datax\_datasets\%DATASET%\usemodcodes.marker"
for %%M in (..) do (
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -CCDB app="%%M" o= refreshmvncaches=true
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org\%%M\MVNCache"
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -export app="%%M" out="%MAINDIR%\datax\_datasets\%DATASET%\_org\%%M\MVNCache" o= refreshmvncaches=false reusecache=true onlymarked=true
)
call "%MAINDIR%\builds\processgold.bat" -dataserver -skipmail -env "%ENVIRONMENT%" -CCDB o=* dataset="%DATASET%" p=*
set MAINDIR=%~dp0
set DATASET=FullData
set ENVIRONMENT=production
set WORKSPACE=Peter/Connector
mkdir "%MAINDIR%\datax\_datasets\%DATASET%"
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org"
echo. > "%MAINDIR%\datax\_datasets\%DATASET%\usemodcodes.marker"
for %%M in (..) do (
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -CCDB app="%%M" o= refreshmvncaches=true
mkdir "%MAINDIR%\datax\_datasets\%DATASET%\_org\%%M\MVNCache"
call "%MAINDIR%\builds\processgold.bat" -dataserver -workspace "%WORKSPACE%" "" -export app="%%M" out="%MAINDIR%\datax\_datasets\%DATASET%\_org\%%M\MVNCache" o= refreshmvncaches=false reusecache=true onlymarked=true
)
call "%MAINDIR%\builds\processgold.bat" -dataserver -skipmail -env "%ENVIRONMENT%" -CCDB o=* dataset="%DATASET%" p=*