Hey guys,
Running into a new problem and I'm not able to fix it.
IfError(Set(
setVar;
Patch(
CDS_1;
gallery.Selected;
{
Amount: Value(textfield.Text);
Mail: combobox.Selected.UserPrincipalName;
}
)
); Notify("Not a valid value. Please enter a valid value."; NotificationType.Error));
Following error occurs if I type a comma into the textinput field:
An error occurred while validating input parameters: Microsoft.OData.ODataException: Cannot convert the literal '777.677' to the expected type 'Edm.Int32'.---> ...
Yes, I know this value with comma isn't valid and can't be converted into an integer value. But how to perform a try and catch in powerapps?
As you can see above what I did in the code but it's not working. There's no way to catch the exception and throw the error message.
How to achieve it?
Thanks so much for helping!