web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard