Getting an error while Save / Update the RITM form "Submit canceled due to a script error - please contact your System Administrator servicenow".

santhoshb
Kilo Expert

Getting an error while Save / Update the RITM form "Submit canceled due to a script error - please contact your System Administrator servicenow".The user is having the required write roles as per ACL on RITM form and the user can see the Save button. Where as Admin/Itil can Save the form normally.I suspect this error message is out of box but no clue about the script. please advise.I hopw this was happening in FUJI only.

Appreciate your help.

1 ACCEPTED SOLUTION

santhoshb
Kilo Expert

Hi all,


Thanks for the suggestions and spending your valuable time here.


Found the solution from HI Snow saying,


Solution:


need to give read access on sc_request table to update the sc_req_item table for a particular user who had full permissions on sc_req_item table to update/edit.


Reason:


The reason if you have a reference field in Fuji to be able to read the information from that table you need read access to the table. That is why I just gave them read access to the number field and that is it.



So the culprit is, the user don't have the read access on REQ table, i more concentrated on child table and UI Macros that i created but the Offender is at parent table.


Thanks, Mani kanta KoradaSrinivas TheluPradeep SharmaHarish Murikinati


View solution in original post

12 REPLIES 12

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Santosh,



You may find the below thread helpful.


Submit cancelled due to script error.


Hi Pradeep,


i had a glance on it, as per the correct solution mentioned ....     there is no much client scripts are applying to RITM form and the scripts which are applicable are pretty fair.


I checked in the developer console, showing an error "Uncaught ReferenceError: g_form is not defined".


But it works when i give ITIL role to the same user.


Still confusing .


Hi Santosh,



Thanks for the update. Can you try to deactivate any scripts which you have created and then test the result.


No Luck Pradeep, tried it already.Trying for other possible ways.


srinivasthelu
Tera Guru

Then there must be something wrong with onSubmit scripts.



You may want to check the browser console for errors.