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 Handling using P...
Power Apps
Unanswered

Error Handling using Patch Function

(1) ShareShare
ReportReport
Posted on by 321

ashokpershad_0-1635936604341.png

 

This error coming after i press the Patch submit button. Before pressing button this error is not showing in formula section.

Everything seems fine but still not resolved.

For details about this issue kindly follow this link:

Patch Dataverse Table with Lookup Columns from Collection 

Thanks

Categories:
I have the same question (0)
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    Assuming that you have the 'Formula-level error management' feature enabled in your app, you can wrap your Patch in an IfError expression as shown below, which will give you additional details about the failure. You can then use the Trace function to log the error, and use the Monitor to look at the trace and see more details on what is going wrong with the Patch.

    IfError(Patch(Manhours, Defaults(Manhours), {WOrder:glrySWO_1.Text, ...}), Trace("Patch error", TraceSeverity.Warning, { errors: AllErrors }))

    Hope this helps!

  • ashokpershad Profile Picture
    321 on at

    @CarlosFigueira 

    I tried same as you suggested but still there are no extra details available. Please have a look at the screenshots.

    Also, in 2nd screenshot error seems to be some expected types as "%" but I am not using that kind of field anywhere in my tables. 

     

    ashokpershad_1-1636521877852.png

     

     

    ashokpershad_0-1636521843523.png

     

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    We currently have a bug in the Trace function where it is having some problems with serializing records that have enum properties (like the error). I'm fixing it now, but it should be a few weeks before it reaches production. Meanwhile, can you replace the expression with this (wrapping the AllErrors in the JSON function):

    IfError(Patch(Manhours, Defaults(Manhours), {WOrder:glrySWO_1.Text, ...}), Trace("Patch error", TraceSeverity.Warning, { errors: JSON(AllErrors) }))

    Thanks!

  • ashokpershad Profile Picture
    321 on at

    @CarlosFigueira 

    I did that. How is it going to help?

    Sametime please note that due to this error even the data is not patching in my data source.

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    Hi @ashokpershad that would show more details about the error in the "details" pane in the monitor (which may not be the case with the previous bug).

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard