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 / Patch function no long...
Power Apps
Unanswered

Patch function no longer Upserts records - Canvas App Power FX - Dataverse

(0) ShareShare
ReportReport
Posted on by 178

We've noticed a change in behavior in the Power Apps Patch function that is impacting any new published apps. Our production apps are still working with this formula patters, however we're having to rapidly re-develop apps to ensure they're not hit by this change.

 

Previously the Patch function would operate as an Upsert, and using the formula Patch(Table,{recordid:guid},{fields to update}), the Patch function would perform an Upsert, updating the record with the guid if it existed, otherwise it would create it. This is a very useful function for when you're using collections to handle offline scenarios, you can collect a new record with a GUID() function to generate the primary key, and then the upsert will handle it properly to make sure Dataverse aligns.

 

Now we're getting an error saying the record does not exist when using the Patch function with a record that does not exist. Using the monitor we can see that the header If-None-Match : "*" is missing, which is the header that allows create.

 

Anyone else experience this or have a workaround?

 

DKassian_0-1697901108421.png

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    I can't say that I've ever used the upsert possibility. But the workaround would be to use an IF() to do a Lookup for the record based on the GUID and do a Patch() with defaults(datasource) if it doesn't exist and the patch you normally use if it does.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard