Exception handling

Hi guys,

As I have created an indexes to avoid a duplicate data entry in database. Once I click on save button if there is an duplicate values it gives an error but it is not user understandable.so how to make that error user understandable like display error message "Duplicate data entry" . See the attachment

Attach .oml if possible

Duplicate.PNG

Hi Rohan,

Hope you are doing well.

You need to handle DatabaseException and send Feedback
_Message (with Message Text like "Duplicate data" and Message Type = Entities.MessageType.Error) in the save screen action (or any other screen action that you are using to save those data in the database).

Request you to please check the attached screenshot and hope it will help you. 

Many Thanks,

SKG

Database_Exception.jpg

mvp_badge
MVP

Hi,

You can add an exception handler to your save action to catch the database exception and provide a user friendly feedback using a feedback message in the exception handler flow.

Regards,

Daniel


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.