How to remove the Invalid Insert message from setabortmethod function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 02:32 AM - edited ‎03-20-2024 02:40 AM
Hello,
As i am working on the change management there is a requirement that if the state is implement and user try to move it to the review state before that all 'change tasks' should be closed if not then we are restricting the user to move the state to review via business rule, and in that business rule we have used setabortaction method.
As it does not explain the error fully so we have added one error message Now our client doesn't want to see that message and asked to remove that but as it is OOB how we can remove it
If we can then please let me know how
and if we can not then is there any other way to achieve the same scenario
Please help.
Thanks,
Atik Bagwan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 02:38 AM
Hi @Atik That "invalid" message comes from Servicenow and we cannot remove it, it is OOB behavior which tells data did not insert into database.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 02:42 AM
Hi @Harish KM , thanks for the replay, and yes as you said it OOB and we can not modified it I wanted ask is there any other way to achieve the same scenario which I have mentioned in my question.
Thanks,
Atik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 02:50 AM
Hi @Atik I dont think there is any other way to remove message when you use set abort action, the other way is to use onSubmit client script with glide ajax call which will not give you that invalid error message,
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 02:55 AM
Hi @Atik
This is very common message and also appear in Incident and other modules as well. Better to educate the users that what this mean and why it has been set up by SN.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************