script include

mahesh009
Mega Guru

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

Eshwar Reddy
Kilo Sage

Hi @mahesh009 

Could you please share a screenshot of the code?

Thank you 
Eshwar

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.

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @mahesh009 

@What error message you are getting. Please share the screenshot of the error and script.

 

Kind Regards,

Ravi Chandra 

 

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.