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 / More reliable method o...
Power Apps
Answered

More reliable method of Patch() Error checking?

(0) ShareShare
ReportReport
Posted on by 20

For an assigned Patch(), Is it more reliable to test the variable for errors or the patched table for errors

Example:

Set(result, Patch('table', ...));

 

What is the better Error handlingcheking Method??

 

If( IsBlankOrError( result ), Notify("Error", Error), Notify("Success", Success)

--or--

If( !IsEmpty( Error( 'table' ) ), Notify("Error", Error), Notify("Success", Success)

 

Categories:
I have the same question (0)
  • Verified answer
    Wood_Raymond Profile Picture
    20 on at

    Up until recently the Patch() did not return errors. This has now been corrected. 

    Use: 

    IfError(Patch(...), Notify("Error", Error), Notify("Success", Success))

     

    There was a workaround (no longer required) as addressed in 2018. See Solved: Re: Making sure a patch is successful - Power Platform Community (microsoft.com) 

     

     

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard