Announcements
Hi,
IfError doesn't work when using code like this:
IfError(Set(varID,Patch(...),Notify("Error"))
Any ideas?
Nelson
The Set function will not return an error. In a formula such as Set(var, expression), if expression is an error then the value of 'var' will be that error - Set did what it was supposed to do. For your scenario, you can have something like the following:
Set(varId, Patch(...)); IfError(varId, Notify($"Error: {FirstError.Message}"))
Hope this helps!
@CarlosFigueira in this case if the Patch throws an error will it be an unhandled error and be caught by App.OnError??
No - when we save the result of the Patch in a variable using the Set function, we are handling the error ourselves (by storing it). So it will not bubble up to the App.OnError handler.
Thanks @CarlosFigueira . Makes perfect sense when you put it like that. Cheers.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 914
11manish 627
Valantis 598