Showing results for 
Search instead for 
Did you mean: 
Super User
Super User

Canvas App to Dynamics 365 - inconsistent Patch and Refresh Behaviour

I'm working on a canvas  app that  uses Dynamics 365 as a data source (new territory for me, I usualy use SQL or SharePoint) and seeing strange behaviour around patches, refreshes and displaying data.


Patch does not seem to automatically trigger a refresh, and, even when I do Refresh manually, I don't see the results of the Patch unless I refresh multiple times and even then, in some cases I only see the updated results when I exit and re-enter the screen.


The data is updated in Dynamics, it just isn't displaying reliably in PowerApps.


I have even see examples of the results in controls not matching what is displayed in the formula bar result view. In the example below, the same Filter is used in the Items property for both the DataTable and the Gallery. There should be 3 records (as shown in the formula bar result) but only 2 appear in the DataTable while there are 3 in the Gallery.Dynamics Bug.png


Is it usual to see such inconsistent behaviour when working with D365 or is this a glitch (like Import/Export being broken for the past few days)? If this is normal, are there work-arounds to try to get consistent results?


At the moment I am trying to build my screens so that any data change requires the user to open a new screen, after the Patch a Refresh is issued, another Refresh is issued OnHidden of the screen and a further Refresh on the OnVisible of the next screen which mostly seems to resolve the problem, but it is far from ideal.

Community Support Team
Community Support Team

Re: Canvas App to Dynamics 365 - inconsistent Patch and Refresh Behaviour

Hi @PaulD1 ,

Do you add Dynamics 365 Entity as data source within your app?


Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please consider turn off the "Improved app rendering (final validation)" option within Advanced settings of App settings of your app, then re-publish your app, check if the issue is solved.


In addition, as an alternative solution, you could consider use CDS Entity as data source in your app instead of the Dynamics 365 Entity. Actually, the Dynamics 365 Entity data structure is based on the CDS under same Dynamics 365 Environment instance.

On your side, you could consider generate an app based on your CDS Entity (rather than D365 Entity), then try your Patch function again, check if the issue is fixed.


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.


Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 351 members 4,927 guests
Please welcome our newest community members: