Hi All,
Have what I hope is a simple question and looking forward to any advice that can be offered.
I am using the Patch function in an App that pushes data to a SQL Server. I have error handling in place but I'm struggling with how to handle a duplicate error in the app. Right now I have the following in place:
// Check for Errors after the + sign is clicked
If(
IsEmpty(Errors('C21-BudVer')),
// Successful Entry
Notify(
"Version Saved Successfully",
NotificationType.Success
),
// Failed Entry
Notify(
"Error Occurred Version Not Saved",
NotificationType.Error
)
)
On the SQL end I have controls in place to prevent duplicate entries, so if a user tries to send a duplicate value I think that the "Error Occurred Version Not Saved" message should appear, but that isn't what is happening.
Instead when a User enters a duplicate value, the following message appears "Network Error When Using Patch Function: The requested operation is invalid."
How do I handle this error so that the user knows that their entry failed because they have entered a duplicate item? It seems to me like the error is happening before the Failed Entry trigger is happening.
Any advice would be most appreciated!

Report
All responses (
Answers (