Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Error Handling
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:
  • CarlosFigueira Profile Picture
    on at
    Re: Error Handling using Patch Function

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

  • ashokpershad Profile Picture
    321 on at
    Re: Error Handling using Patch Function

    @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
    Re: Error Handling using Patch Function

    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
    Re: Error Handling using Patch Function

    @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
    Re: Error Handling using Patch Function

    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!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Error Handling

#1
stampcoin Profile Picture

stampcoin 73

#2
DS-11051211-0 Profile Picture

DS-11051211-0 20

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 9

Overall leaderboard

Featured topics