catch ValueError when adding or updating an agent, it could be a validation issue with the model