i dont want this message --"Invalid value on insert" how to remove this error message ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 10:28 PM
I have a field on my form named meetingid , I dont want duplicates in that meetingid. so I have created a Before business rule on insert and update . the Br is such that
var gr = new GlideRecord('x_hete_mycomplaints');
gr.addQuery('sys_id', '!=', current.sys_id);
gr.addQuery('meetingid', current.meetingid);
gr.query();
if (gr.next()) {
gs.addErrorMessage("The meeting ID already exists, kindly provide a new one.");
current.setAbortAction(true);
}
but when I am updating or inserting any ticket with a duplicate meetingid iam getting two error messages
one that i have created in the BR- "The meeting ID already exists, kindly provide a new one."
another error message is --Invalid value on insert
i dont want this message --"Invalid value on insert" how to remove this error message ?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 05:12 AM
It's a platform message as a result of an aborting before BVR and cannot be suppressed.