How to remove the Invalid Insert message from setabortmethod function

Atik
Tera Contributor

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

 

Atik_0-1710927593376.png

 

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

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.

Regards
Harish

Atik
Tera Contributor

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

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,

Regards
Harish

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]

****************************************************************************************************************