Got error "Connection [*] is invalid or you do not have access to it" while publish a package with activity "use Outlook 365"

Dear all,

When I use activity:“Use Outlook 365” and use Intergration service to connnect to Outlook cloud, it works well with studio and current OC environment( like UiPath),
However when I try to publish the same Package under another portal (UiPath), and run the process, it shows “Connection [*] is invalid or you do not have access to it”

I found that the error will not come out while use the activity “Get Email List”, it seems that the connection cannot be changed while I publish a package to a new environment

Is anyone can find the root reason and help to resolve it?

Thanks

@252405231,

After uploading the package to PROD create a process. While creating process, in dependencies tab, you will get option to select the connection for Office 365 like this:

Select the desired connection and you should be good.

@252405231, Since you are publishing the package to PROD from DEV, which are two different tenants under the same organization, you need to reconfigure the integration service settings for PROD. Once reconfigured, it should work.

Mark as solution if you find it helpful.

Thanks.