web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot / PVA : Import...
Copilot Studio
Answered

Copilot / PVA : Import solution into new environment misses global variables.

(0) ShareShare
ReportReport
Posted on by 20

Screenshot 2023-11-30 at 2.16.32 PM.pngI just finished updating my PVA 1.0 ChatBot to PVA 2.0 / Copilot.  During this update, I did a lot of code clean up and got everything working smoothly in my Dev environment.  Now it's time to move to UAT, however, my new global variables weren't copied with the solution over to the UAT environment.  We had a similar issue happen when we made global variable changes in PVA 1.0, but we thought it was because we deleted the references and it was still somewhere in the underbelly of the beast.

 

We use pipelines to:

- update / publish the solution in the environment (in this case Dev)

- zip it up

- add it to our repository

- pull it from the repository into the new environment (UAT in this case)

- unzip etc, set it all up

 

In theory, when the publish all customizations is run, it SHOULD catch all the variables, topics, etc. and then allow us to export the published solution content.  But it's not publishing the global variables - because they are NOT being found in my topics where I've set them up, even though they are clearly there in the topics in my DEV environment.

 

We solved a similar issue before by adding the variable back into DEV, but in this case, it's already in dev, and just not showing up after we export and import to UAT. Looking at the variables in the  variable list in the topic, I do not see the global var I'm expecting to see, but I see 6 others that I created.

 

Anyone have any idea what we're missing?

Categories:
I have the same question (0)
  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    What do you mean global variables are missing? I'm not aware of them being a solution component.

    Before exporting your solution, have you tried to "Add required objects" from the bot? It will add any missing related topic, entity or cloud flow.

     

    HenryJammes_0-1701371962565.png

     

    I would recommend doing the same on your Power Automate cloud flows so that environment variables and connection references are added.

     

  • ijones Profile Picture
    20 on at

    Thank you VERY much for that!  I knew it was something ridiculous 😄 
    Shot in the dark, but, by chance do you know the yaml task to add required objects?

    Ex: task: PowerPlatformPublishCustomizations@2 ... will publish the solution contents.

     

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Great to hear it helped. Have you tried the Power Platform Add Solution Component task? It has a AddRequiredComponents parameter.

  • ijones Profile Picture
    20 on at

    I did see that and started looking into it, however it doesn't seem to behave (based on the documentation) the same as the Add All Required objects.  You have to have the ID of the solution component, is that my chatbot id? The one found in my Chatbots table?  

     

    The instructions are vague at best, assuming someone has an idea what they're talking about, so until you asked the above question, I didn't believe it applied.  I'll take a deeper look into that and see what I figure out.  

     

    Thank you very much for the quick answers!  You really saved the day, because Google / Bing were useless here!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 297

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
Arild Aarnes Profile Picture

Arild Aarnes 51 Super User 2026 Season 1

Last 30 days Overall leaderboard