You can catch errors when trying to save, for example:
manager.saveChanges() .catch(function(error){ console.log("error catch", error, error.entityErrors); });
Just keep in mind that any code after that should be in
setTimeout(function() {}, 0);
since catch is asynchronous. You didnβt need to iterate over all the entities in the application to find those who have errors.
source share