Skip to main content

Notifications

Copilot Studio - Bot Administration
Unanswered

Issues Importing Solution with Custom Connector

(0) ShareShare
ReportReport
Posted on by 86

Hi,

 

I've seen this a few times but don't seem to have a definite answer. This is concerning exporting a bot from one tenant to another.

 

The Scenario

 

Aim:

  • Tenant A is our development tenant (including testing etc). Tenant B is a customer's tenant.
  • Want to move/recreate the bot currently in Tenant A, in Tenant B.
  • The bot is part of a solution, along with the Power Automate flows.

 

Content:

  • Bot in Tenant A has:
    • 2 Topics
    • 1 Custom Connector (used by one of the topics) via Power Automate (created in PA via Virtual Agents).
  • Bot in Tenant B is empty (for the purpose of this example)

 

Issue:

Exporting from Tenant A and Importing to Tenant B causes issues with the connector. The issue being that when imported, the connector is broken as it appears to be looking for the reference ID of the connector in Tenant A, which does not exist in Tenant B. You cannot select an alternative connector during the import process. You cannot point it to an alternative connector after import.

 

Our Current Workaround:

  • We are exporting from Tenant A
  • We create a connector in Tenant B, with the same functionality of the connector in Tenant A. 
  • We are then opening the exported XML and JSON files in a text editor, searching for any reference ID's for the connectors from Tenant A, and altering them to be the ID of the relevant connector in Tenant B.
  • We then import the solution and in theory it works, as it is now looking for a connector (via its ID) that exists in Tenant B already (rather than it looking for the connector ID that only exists in Tenant A).

 

Now, that's a bit of a pain in the above example. When the bot gets built out more it becomes a massive hurdle and more open to human error. We end up having to alter ID's in lots of different places within the XML and JSON files. For example, every topic/flow JSON file that uses a connector, requires it to be altered.

Is there an inherent/already built in way to do this that we've missed? Is there an alternative method? How can we successfully import a bot to another tenant that uses custom connectors with as little pain as possible? 🙂

 

Thanks,

 

Jase

 

 

 

 

 

 

  • Viking1 Profile Picture
    Viking1 3 on at
    Re: Issues Importing Solution with Custom Connector

    Hi @Diganta ,

    Environment ID: eab21d64-5f94-e758-8cf0-ab03f2314aa9
    Custom Connector ID: 
    new_sharedfresh5fservice5f165f115f95f405f1d0ac512f0529afe5ab8a04ad2_24b63

    Flow ID: (Flow Identifier): v1/eab21d64-5f94-e758-8cf0-ab03f2314aa9/5230c420-135d-461d-ac34-c72ac37677b5
    Bot ID: f3b3d584-5ff7-4c3c-841c-0075a48f05b2

    I hope all IDs are correct, if no, please feel free to reach out to me.

    Kindest regards,
    Jon

  • jase Profile Picture
    jase 86 on at
    Re: Issues Importing Solution with Custom Connector

    Hi Diganta,

     

    Thanks for the response. My lead developer is away for a week, so he may post the details, but if not then he will post them when he returns.

     

    Many Thanks.

  • Diganta Profile Picture
    Diganta on at
    Re: Issues Importing Solution with Custom Connector

    Thank you, Jase, for reporting this issue. This could be a bug in the custom connector. Please share your environment ID, custom connector ID, flow ID, and bot ID.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics