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 / Power Apps / Canvas app not copied ...
Power Apps
Unanswered

Canvas app not copied when an environment is copied

(0) ShareShare
ReportReport
Posted on by 3,005 Most Valuable Professional

Here is my scenario.  I have used the Copy environment feature in the Power Platform admin center to do a full copy (data and customisations) of a Dynamics 365 environment into another Dynamics 365 environment.  Everything worked OK except for a Canvas Power App.  I have an embedded Canvas Power Apps on the Case form of a Model-driven app.  In the environment that I copied to, the Canvas App is pointing at the Canvas App in the environment that I copied from.  The Canvas App was not copied across to the new environment and is missing.

 

I then tried to re-import a managed solution that contains the Canvas app to hopefully resolve the issue but the import failed with the following error. CanvasApp import: FAILURE: One or more errors occurred.

 

Does anyone have any ideas on how I resolve this?

I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @HSheild ,

    Do you want to copy your Environment to a Sandbox Environment?

    Which option do you choose when you copy a Environment? Everything or Customizations and schemas only?

    Further, is the canvas app from your Source Environment has been added into a Solution already?

     

    Currently, there are some known limits with the "Copy" Environment functionality in Power Platform Admin Center. Currently, any components that have not been added to a solution (including canvas apps, flows, custom connectors, and connections) will not be copied to the target environment.

    On your side, please make sure the canvas app from your Source Environment has been added into a Solution already in your Source Environment.

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/power-platform/admin/copy-environment

     

    In addition, if you the canvas app from your Source Environment has been copied to your Target Environment successfully, you need also to modify the Case form in your Model-Driven app, to make sure the embedded canvas app references the canvas app in your Target Environment rather than Source Environment.

     

    Best regards,

     

  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @v-xida-msft,

     

    Thanks for the help you have provided.  Firstly, to answer your questions...

     

    Do you want to copy your Environment to a Sandbox Environment?

    Yes

     

    Which option do you choose when you copy a Environment? Everything or Customizations and schemas only? 

    Everything

     

    Further, is the canvas app from your Source Environment has been added into a Solution already? Yes, the Canvas app is already in a Solution in the Source environment.

     

    In the Apps area of make.powerapps.com I do not see the Canvas Power App, however, it is in the Solution components if I open the Solution that contains the Canvas Power App. 

     

    You are correct that the Form in the Destination environment is pointing to the Canvas app in the Source environment.  I have updated the App ID property of the Control on the Case form in Dynamics 365 in the Destination environment (see attached screenshot) and published but the Canvas app is still pointing to the Source environment.  Any ideas on what I'm doing wrong here?

     

    Note: the environment I have copied contains managed solutions, which the Canvas App belongs to.  If that makes a difference?

     

     
    Annotation 2020-01-06 210050.png
  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @v-xida-msft ,

     

    I was wondering if you could come back to me on your following comment...

     

    "if you the canvas app from your Source Environment has been copied to your Target Environment successfully, you need also to modify the Case form in your Model-Driven app, to make sure the embedded canvas app references the canvas app in your Target Environment rather than Source Environment."

     

    I have updated the App ID property of the Control on the Case form in Dynamics 365 in the Destination environment and published but the Canvas app is still pointing to the Source environment.  Are you able to tell me how I "modify the Case form in your Model-Driven app, to make sure the embedded canvas app references the canvas app in your Target Environment rather than Source Environment."

     

    I am quite stuck on this one. Your help is much appreciated!

  • jont_unity Profile Picture
    3 on at

    Hi, I am also having this issue, did you resolve the problem? If not, could someone please help as this is a strange problem and not appearing to be easy to rectify.

     

    Thanks

    Jon

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi Folks,

    I am facing this issue currently, is this thing resolved?

    How will the App point to current environment instead from where it has been copied from?

     

    Please advise.

  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @Ethan_R ,

     

    I'm not aware of whether this has been resolved or not.  

     

    It's been a while since I have done an environment copy (trying to avoid it with embedded Canvas app) but these are the manual steps to rectify:

    • Create a new copy of the Canvas app in the Dev environment
    • Remove the embedded Canvas apps from the forms and replace with the new copy
    • Deploy from Dev to your destination environment (the one that was copied to)  - share the Canvas apps again 
    • Delete the old versions of the Canvas apps in both environments 

     

    It's not nice. 

     

    Essentially things get stuck pointing to the original Canvas app from the original environment,  You nee to create a copy of the Canvas app so that it gets a new ID.  And this must be done from Dev so you don't break your ALM.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Thanks @HSheild ,

    I will try the steps you mentioned.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard