Automation Suite
2022.4
false
Banner background image
Automation Suite Installation Guide
Last updated Apr 24, 2024

Step 1: Moving the Identity organization data from standalone to Automation Suite

The standalone and Automation Suite versions must be the same, or else the migration will fail due to database schema conflict issues. If you experience a compatibility failure, make sure to upgrade your standalone and Automation Suite installations to the latest version.

For Linux

Note:

Make sure you download and install .NET Runtime 6.0 before running UiPath.OrganizationMigrationApp. For details, see Migration prerequisites.

To download UiPath.OrganizationMigrationApp, see Migration prerequisites.

Running the tool

Note:
Make sure to follow the general escape instructions for your Shell tool of choice. For instance, in Bash you must add \ before special characters.

The UiPath.OrganizationMigrationApp tool supports the following parameters:

Parameter name

Short name

Description

Identity database connection of the standalone product

i

The Identity database connection of the standalone product. If Identity and Orchestrator share the same database, then use the connection string of that database.

Identity database connection of Automation Suite

j

The Identity database connection of Automation Suite.

Orchestrator database connection of the standalone product

o

The Orchestrator database connection of the standalone product. If Identity and Orchestrator share the same database, then use the connection string of that database.

List of organization IDs of the standalone product

s
The list of organization IDs for the standalone product to merge. You must use the following format: orgId1,orgId2,...,orgId5.

The size of the organization ID list for both the standalone product and Automation Suite must be the same.

To get a list of organization IDs for the standalone product, run the following command on the standalone database and use GlobalId with the related partition / organization name on the restored database:
SELECT * FROM [identity].[Partitions]SELECT * FROM [identity].[Partitions]
List of organization IDs of Automation Suited
The list of organization IDs for Automation Suite. You must use the following format: orgId1,orgId2,...,orgId5.

The size of the organization ID list for both the standalone product and Automation Suite must be the same.

To get a list of organization IDs for Automation Suite, run the following command on the AutomationSuite_Platform database on the Automation Suite SQL Sever:
SELECT * FROM [identity].[Partitions]SELECT * FROM [identity].[Partitions]
Rollback

r

The parameter used to roll back a change.

URL of Automation Suite

p

The URL of Automation Suite. For example, https://ci-asaks5380983.devtest-ascloudgen-ea.infra.uipath-dev.com/

OMS S2S client secret

c

The client secret used to call the OMS API to create the tenant.

To get the OMS S2S client secret from the Kubernetes secret, run the following command:

kubectl get secret identity-client-oms -n uipath -o "jsonpath={.data.OMSS2SClient\.ClientSecret}" | base64 -dkubectl get secret identity-client-oms -n uipath -o "jsonpath={.data.OMSS2SClient\.ClientSecret}" | base64 -d

Here are some common operations you might need to perform:

  • To move the Identity data of all tenants from standalone to Automation Suite, extract the file and run the following command:
    ./UiPath.OrganizationMigrationApp migrate -m -i '<identity database connection of the standalone product>' -j '<identity database connection of Automation Suite>' -o '<orchestrator database connection of the standalone product>' -s '<list of organization IDs of the standalone product>' -d '<list of organization IDs of Automation Suite>' -p '<URL of Automation Suite>' -c '<OMS S2S client secret>'./UiPath.OrganizationMigrationApp migrate -m -i '<identity database connection of the standalone product>' -j '<identity database connection of Automation Suite>' -o '<orchestrator database connection of the standalone product>' -s '<list of organization IDs of the standalone product>' -d '<list of organization IDs of Automation Suite>' -p '<URL of Automation Suite>' -c '<OMS S2S client secret>'
    Note:
    Make sure to add TrustServerCertificate=True for all SQL connections in the input.
  • If the operation failed in the middle, roll back the change by running the following command:
    ./UiPath.OrganizationMigrationApp migrate -m -r -i '<identity database connection of the standalone product>' -j '<identity database connection of Automation Suite>' -o '<orchestrator database connection of the standalone product>' -s '<list of organization IDs of the standalone product>' -d '<list of organization IDs of Automation Suite>' -p '<URL of Automation Suite>' -c '<OMS S2S client secret>'./UiPath.OrganizationMigrationApp migrate -m -r -i '<identity database connection of the standalone product>' -j '<identity database connection of Automation Suite>' -o '<orchestrator database connection of the standalone product>' -s '<list of organization IDs of the standalone product>' -d '<list of organization IDs of Automation Suite>' -p '<URL of Automation Suite>' -c '<OMS S2S client secret>'
    
  • Fix the issue according to the error message and try to move the Identity data of all tenants from standalone to Automation Suite again. For example, see the following error messages and what they mean:

    • The following error message means that the tenant is already created and the program would skip tenant creation. You do not need to do anything.

      Call to API Service failed for Method=POST, StatusCode=Conflict on url=https://ci-asaks5379291.devtest-ascloudgen-ea.infra.uipath-dev.com/organization/api/organization/0dad76a9-7d44-447a-84d6-ce713a5324d8/tenants
      	Http Response Content:{"StatusCode":409,"StatusDescription":"Conflict","ErrorCode":1002,"Message":"Found duplicated tenant with requested Id b26f486f-a585-4420-83fd-f2741385b3c8 under organization 0dad76a9-7d44-447a-84d6-ce713a5324d8 (1002)"}	Call to API Service failed for Method=POST, StatusCode=Conflict on url=https://ci-asaks5379291.devtest-ascloudgen-ea.infra.uipath-dev.com/organization/api/organization/0dad76a9-7d44-447a-84d6-ce713a5324d8/tenants
      	Http Response Content:{"StatusCode":409,"StatusDescription":"Conflict","ErrorCode":1002,"Message":"Found duplicated tenant with requested Id b26f486f-a585-4420-83fd-f2741385b3c8 under organization 0dad76a9-7d44-447a-84d6-ce713a5324d8 (1002)"}
    • The following error message means that the Automation Suite URL is not valid. Make sure to provide the correct Automation Suite URL.

      Unhandled exception. UiPath.IdentityServer.PartitionMerge.PartitionMergeException: Can not create tenant ID with target organiztion ID 0dad76a9-7d44-447a-84d6-ce713a5324d8, tenant name tenant_0dad76a9, platform url https://ci-asaks5379291.devtest-ascloud.infra.uipath-dev.com.
      	 ---> System.Net.Http.HttpRequestException: No such host is known. (ci-asaks5379291.devtest-ascloud.infra.uipath-dev.com:443)
      	 ---> System.Net.Sockets.SocketException (11001): No such host is known.	Unhandled exception. UiPath.IdentityServer.PartitionMerge.PartitionMergeException: Can not create tenant ID with target organiztion ID 0dad76a9-7d44-447a-84d6-ce713a5324d8, tenant name tenant_0dad76a9, platform url https://ci-asaks5379291.devtest-ascloud.infra.uipath-dev.com.
      	 ---> System.Net.Http.HttpRequestException: No such host is known. (ci-asaks5379291.devtest-ascloud.infra.uipath-dev.com:443)
      	 ---> System.Net.Sockets.SocketException (11001): No such host is known.
    • The following error message means that the OMS S2S client secret is not valid. Make sure to provide the correct OMS S2S client secret.

      Call to API Service failed for Method=POST, StatusCode=BadRequest on url=https://ci-asaks5379291.devtest-ascloudgen-ea.infra.uipath-dev.com/identity_/connect/token
      	Http Response Content:{"error":"invalid_client"}	Call to API Service failed for Method=POST, StatusCode=BadRequest on url=https://ci-asaks5379291.devtest-ascloudgen-ea.infra.uipath-dev.com/identity_/connect/token
      	Http Response Content:{"error":"invalid_client"}

For Windows

Note:

Make sure you download and install .NET Runtime 6.0 before running UiPath.OrganizationMigrationApp. For details, see Migration prerequisites.

To download UiPath.OrganizationMigrationApp, see Migration prerequisites.

Running the tool

Note:
To successfully run the UiPath.OrganizationMigrationApp tool, you must escape your SQL password if it contains special characters. For example, replace every instance of $ with \`$. For more guidelines on how to escape special characters in connection string passwords, refer to Special character escape rules for connection string passwords.

Here are some common operations you might need to perform:

  • To move the Identity data of all tenants from standalone to Automation Suite, extract the file and run the following command.
    Note:
    Make sure to add TrustServerCertificate=True for both source and destination SQL connection inputs.
    ./UiPath.OrganizationMigrationApp.exe migrate -a -m -s "<identity DB connection of MSI>" -d "<dentity DB connection of Automation Suite>"./UiPath.OrganizationMigrationApp.exe migrate -a -m -s "<identity DB connection of MSI>" -d "<dentity DB connection of Automation Suite>"
  • If the operation failed in the middle, roll back the change by running the following command:
    ./UiPath.OrganizationMigrationApp.exe migrate -a -m -r -s "<identity DB connection of MSI>" -d "<dentity DB connection of Automation Suite>"./UiPath.OrganizationMigrationApp.exe migrate -a -m -r -s "<identity DB connection of MSI>" -d "<dentity DB connection of Automation Suite>"
  • Fix the issue based on the error message and try to move the Identity data of all tenants from standalone to Automation Suite again.

  • After running the previous command, a new tenant named tenant_xxxxxxxx is created, where xxxxxxxx are random characters. This is the tenant to which you will migrate the standalone products.
  • For Linux
  • Running the tool
  • For Windows
  • Running the tool

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.