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 / Error trapping with se...
Power Apps
Answered

Error trapping with several patch statement - all or nothing

(0) ShareShare
ReportReport
Posted on by 402

I have a block of six patch statements where each need validation and I have enclosed each with an IfError statement.  From what I understand, if the first patch succeeds, it will complete that patch, and move to the second, etc.  If say the Fourth patch fails, I want the WHOLE statement to fail.  Is there a way to do this?  Or would it be as simple as wrapping all of the patch statements together into one IfError statement?

Thanks for the information.

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    There is no way to do that because it would require rolling back the first 3 patch statements. Power Apps doesn't have any support for defining transactions, which is what you want to do.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard