Unable to save. This form can’t be saved due to a custom setting error in Dynamics 365 / Dataverse.


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.


Article 5w

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time