Recently, the author encountered an error while trying to assign a record in Dynamics 365 / Dataverse. The error message stated that the form couldn't be saved due to a custom setting. It turned out that there were certain conditions in the OnSave event for the form, and if the record satisfied those conditions, the save event was being canceled using `executionContext.getEventArgs().preventDefault()`. This behavior was expected, but the error message was a bit generic.
Login now to access my digest by 365.Training