I'm encountering an issue where my Patch
function fails as expected (due to a document being open and locked by another user), but the success notification is still displayed. Here’s the code I’m using:
If(
IsError(
Patch(
MyLib,
LookUp(MyLib, ID = ThisItem.ID),
{
MyField: Self.Selected
}
)
),
Notify("Error", NotificationType.Error, 3000),
Notify("Success", NotificationType.Success, 3000)
)
It seems like IsError
isn't properly capturing the error.
Does IsError
not handle certain errors (like file locks) properly? What’s the correct way to manage these types of errors in Power Apps?
Thank you,
Charles