cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Poweruser1101
Helper I
Helper I

Canvas app does not load data after deployment

Hi All,

 

I am facing a weird issue not sure why.. I have migrated my canvas apps using solution export/import from source environment to target environment.

 

Steps followed -

Created an empty solution. Added the form and the canvas apps

Exported the solution from source environment

Imported it into target environment

After import, shared the app with all the users.

Note : since the app name remained the same after deployment, even though the appid was newly generated, since the app name was same, the form loaded the correct canvas app.

 

Issue is one of the app is not working in the target environment, it does not load the data, it does save the data when checked in "Advanced Find" but onload again the data is blank. Not sure if the ModeldrivenFormIntregraion object got corrupted.

This works in the source environment but fails in target environment.

 

Kindly suggest i am really stuck with this issue. All the other apps are working it is only one of the app that is giving this issue.

 

Any help appreciated.

 

Thanks in Advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
poweractivate
Super User II
Super User II

@Poweruser1101 

 

The model driven app form integration may require using this dialog box manually from the target environment and rebinding the field again and then clicking on "Customize" from this specific dialog box, very specifically, to rewire the integration correctly on the target.

 

accrebind7285.png

 

Before rebinding, in case you have trouble rebinding it, it may be handy also to do these below steps before opening the above dialog box:

 

A1) From target environment open the App for Editing and press F12, then press download. Keep this MSAPP file handy somewhere.

 

A2) Then, keep these instructions in mind in case for when you rebind so you can possibly rebind it more easily:

  1.  Navigate with your browser manually to this URL (or just click the following link): https://us.create.powerapps.com/studio/
    1. Instead of the crossed out part above, substitute this step for clicking "Customize" on the above dialog - then clicking on "File" from the left side once the rewiring has created a blank app.
  2.  Then, Click "Open" on the left side
  3.  Next, Click "Browse" on the right side
  4. Finally, select the msapp file from the window when prompted.
  5. Done
    1. When saving and publishing, if you want to use the exact same App name, then if/when prompted to replace the existing app, you may need to say you want it to replace the existing app, so it overwrites it, and so the re-binding can take place.

 

 

 

Also, from our experience, we believe this must be done only after clicking "Switch to classic" button from the top of the new Form's editor at make.powerapps.com - while the Classic Mode is being turned off now, some specific elements are on the classic mode only, this possibly still being one of them, and we presume that while Classic Mode will likely completely disappear by January 2021, specific elements like this one will remain there and usable form that Switch to Classic button, and operations like these can only be done in that specific way described here. In the new mode, the crucial "Customize" button may be missing for Canvas App Component when adding it from the new make.powerapps.com editor - to us it seems like it still is missing as of this writing 12-22-2020 and you must use the Classic Mode. 

 

 

When that particular "Customize" button is clicked it does something very specific that may not be supported or automatically done during the export/import is what you may be facing.

 

 

Not sure if there is any other way other than rebinding it as in the above.

Check if the above works for you for now.

 

In the case someone else believes what is being stated here is incorrect and that it is supposed to work so seamlessly exactly on the Export/Import without the above steps, please feel free to respond and indicate these details from a test on your side. 

 

However we believe that all these kinds of integrations require a specific rebind directly from the target environment and right now we are not aware of another way. 

 

View solution in original post

2 REPLIES 2
poweractivate
Super User II
Super User II

@Poweruser1101 

 

The model driven app form integration may require using this dialog box manually from the target environment and rebinding the field again and then clicking on "Customize" from this specific dialog box, very specifically, to rewire the integration correctly on the target.

 

accrebind7285.png

 

Before rebinding, in case you have trouble rebinding it, it may be handy also to do these below steps before opening the above dialog box:

 

A1) From target environment open the App for Editing and press F12, then press download. Keep this MSAPP file handy somewhere.

 

A2) Then, keep these instructions in mind in case for when you rebind so you can possibly rebind it more easily:

  1.  Navigate with your browser manually to this URL (or just click the following link): https://us.create.powerapps.com/studio/
    1. Instead of the crossed out part above, substitute this step for clicking "Customize" on the above dialog - then clicking on "File" from the left side once the rewiring has created a blank app.
  2.  Then, Click "Open" on the left side
  3.  Next, Click "Browse" on the right side
  4. Finally, select the msapp file from the window when prompted.
  5. Done
    1. When saving and publishing, if you want to use the exact same App name, then if/when prompted to replace the existing app, you may need to say you want it to replace the existing app, so it overwrites it, and so the re-binding can take place.

 

 

 

Also, from our experience, we believe this must be done only after clicking "Switch to classic" button from the top of the new Form's editor at make.powerapps.com - while the Classic Mode is being turned off now, some specific elements are on the classic mode only, this possibly still being one of them, and we presume that while Classic Mode will likely completely disappear by January 2021, specific elements like this one will remain there and usable form that Switch to Classic button, and operations like these can only be done in that specific way described here. In the new mode, the crucial "Customize" button may be missing for Canvas App Component when adding it from the new make.powerapps.com editor - to us it seems like it still is missing as of this writing 12-22-2020 and you must use the Classic Mode. 

 

 

When that particular "Customize" button is clicked it does something very specific that may not be supported or automatically done during the export/import is what you may be facing.

 

 

Not sure if there is any other way other than rebinding it as in the above.

Check if the above works for you for now.

 

In the case someone else believes what is being stated here is incorrect and that it is supposed to work so seamlessly exactly on the Export/Import without the above steps, please feel free to respond and indicate these details from a test on your side. 

 

However we believe that all these kinds of integrations require a specific rebind directly from the target environment and right now we are not aware of another way. 

 

View solution in original post

Hi @poweractivate 

 

Thank you so much for the detailed explanation. The binding was missing had to go back on the form and customize it to re-establish the connection and it worked. I am facing another issue related to patch which i will post in another new question. Marking your answer as solution. Thank you so much. Really appreciate it.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (61,632)