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 / Errors() with ClearCol...
Power Apps
Unanswered

Errors() with ClearCollect(Patch())

(0) ShareShare
ReportReport
Posted on by 322

I need to both check if the patched new record was successfully patched, and collect the new row ID.

When using Errors() as per this guide, it works. 

When using ClearCollect(Patch () ), it works,

When using Errors( ClearCollect( Patch())), this throws an error.

 

Any advice?

Categories:
I have the same question (0)
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @vladimir84 

     

    Without seeing your actual code, note that you need to undertake this is the following order try the Patch, then check for errors and use If statement - If no errors, collect the ID, if errors notify of the error/nature of error.

     

    So my reading of this is you need to trigger these functions in series as above i.e. it wont work in the nested arrangement you have.

     

    Hopefully that makes sense or if you have any further queries, please send through more details on the actual code you tried and I can advise further. 

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

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard