- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 10:25 PM
Hi All,
Please help on this, I am facing this issue, I wrote abort action code on incident form, abort action is happening but I need to display Error message, for this i have used gs.addErrorMessage(); method but after abort action it is blinking and going.
Thanks & Regards,
Aditya
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 01:13 AM
Hi @Aditya253
For such issues, I take a very lame method but it proves effective and time consuming.
Deactivate all the BRs on the table, and just keep this current BR active.
Then activate the BRs one by one.
You should be able to narrow down which BR upon being activated is causing this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 10:32 PM
Hi @Aditya253 ,
can you share the script how you are aborting?
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 11:34 PM
Hi Pavan,
Please find the below script,
Before br, insert or update,
if(current.state == '3'){
current.setAbortAction(true);
gs.addErrorMessage('Please fill the primary details under security tab');
}
Thanks & Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 12:15 AM
Hi @Aditya253 ,
It is a strange behavior. I have tried your script and it is good in my case.
Try to check is it to specific table or all the tables.
Present you are using script in advanced tab but give your condition in when to run and try in actions tab check Abort action and give abort message.
Just see whether your facing same issue or not.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 01:01 AM
Hi Pavan,
It is only for incident table, others tables working fine when I use that code
Thanks,
Aditya