Running the process in stage & prod tenant

I have developed a project completely with project folder, assets , storage bucket present dev tenant . Basically I have used the 'get credential ’ ‘get asset’ activity with the folder & selected the folder & asset name from the the activity dropdown when the studio was connected development orchestrator . Now with the pipeline I have pushed the process to stage & production tenant but these folders or assets or storage buckets are not present like the dev tenant .
My concern is if I run this process on a stage/production VM will it throw an error ?

Hi @Rohit_Nair

Yes, if the folders, assets, or storage buckets are not present in the stage/production tenants, running the process will likely throw errors. You will need to ensure that the required folders, assets, and storage buckets are created in the stage and production environments before executing the process.

Happy Automation!

YES, it will throw error if asset, credential, storage bucket, queue is not configured in Prod folder.

@Rohit_Nair

Yes,
It will throw error because it will search for particular folder and Asset
instead of selecting folder name/Asset name from activity store the value in Config file, or let it be blank for folder name field, then it can take from wherever it executed like if it is executed from staging environment it will access staging assets or if it runs in production it will run in production environment

Best suggestion use config file store your folder name and asset names over there.
then you can simply access that file modify with out any other conflict.

Happy Automation

@Rohit_Nair - I’m assuming you have recreated the assets etc. with the same names in the prod tenant, and it still fails due to ID’s differing?

@Jon_Smith - I’ve seen you post in multiple threads to ditch the config and just use the assets directly, as the OP did here. Could you chime in? I’m curious myself how would you solve it with tenant changing.

Hi @Rohit_Nair,

We also have dev, uat and prod different tenants/sites in our organization.

Below is how we do it:

  1. after development and unit testing is done in dev environment, uat/prod environment needs to set up for process implementation.
  2. all the resources like folders, queues, assets, storage buckets need to be created in production and you should be creating them the same way those were created in dev environment- same naming conventions, structures etc.
  3. also, you would need to ensure your unattended robot and machine where that process is going to run is set up. In dev environment, testing is done directly via UiPath studio(in our case, can be different for others), so in uat/prod environment, you need to have robot account to run that process in an unattended manner.
  4. once machine and robot is setup, these also need to assigned to the prod folder from where process needs to run.

Please note: for assets or credential assets that you are using in dev environment, it’s good practice to leave the orchestrator folder empty or proper orchestrator folder name should be provided. In case when this field is empty, it will automatically pick assets from the folder where the process is running. In case its value is provided, it will look for assets from that folder and if it is not the same where process is running or assets from that folder doesn’t have access to the current folder, process would fail.

Hope this helps.

Regards
Sonali

Hi @sonaliaggarwal47 ,
do I have manually create those assets ,folders ,storage buckets or can I migrate in a simpler way?

Hi @Rohit_Nair,

You will have to create manually or you can explore
Solutions management under Automation ops in UiPath.

Hope this helps.

Regards
Sonali

Its very simple actually.
The main thing to do is ditch specifying a folder whenever you reference an asset. Any that dont exist in the same folder you are running the process in can be linked so they appear in the same folder or you can specify the folder path but ensure that folder is consistently named etc in Dev>Test>Prod tenants.

After that you should have an easy time, when you add a process to a folder the second page in the wizard will list all the assets you use and if they are present or not, its a nice validation to check that an asset wasn’t missed and lets you configure them immediately and there are buttons to add missing assets on that page making it fast an efficient.

Alternatively solutions such as ‘Solutions Management’ can help you build a package of your process(es) assets, queues, storage buckets etc that you require to make it easily portable between tenants.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.