script include

mahesh009
Tera Contributor

I'm getting an error message when trying to update a record. How can I debug the issue?

2 ACCEPTED SOLUTIONS

Sai Krishna6147
Mega Guru

Hi @mahesh009 

Use the

 

gs.log()

 

 function to log information to the system logs. You can also check the ServiceNow logs for error messages.

View solution in original post

VishaalRanS
Tera Guru

Hi @mahesh009 

 

When encountering an error while trying to update a record, debugging the issue involves several steps that vary depending on the technology or platform you are using.

Utilize the gs.log() function to record information in the system logs, and also review the ServiceNow logs for any error messages.

 

Thanks, and Regards

Vishaal

Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

6 REPLIES 6

AndersBGS
Tera Patron
Tera Patron

Hi @mahesh009 ,

 

Please share some more information e.g. the script and the error message. by doing this it will be much easier to help you. 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

brahmandlapally
Mega Guru

Hi @mahesh009 

 

Check the server script and operations on server. use gs.log() to see logs in System logs.

 

Thank you.