Illegal access to method getMessage() in class org.mozilla.javascript.RhinoException

ayano
Giga Guru

I get this error message when I try to edit a catalog item in Catalog Builder.
Is it due to a flaw in the Cliant script? Where should I check?

ayano_1-1708603766184.png

 

 

4 REPLIES 4

piyushsain
Tera Guru
Tera Guru

Hi @ayano 

Can you please check the workflow attached to the Catalog. The workflow might have some script in its activity which is giving error

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

Hi,

Thank you for the comment.

If the catalog is running in a flow, is it an action in the flow?

@ayano yes please check any .addQuery parameters in script are correct

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

Amit Verma
Kilo Patron
Kilo Patron

Hi @ayano 

 

Few points to check :

 

1. Check if you have typed the table name correctly if you are using any Glide query like GlideRecord('your table name').

2. If you are pushing the output in an array, ensure that the array is declared.

 

You can refer below posts as well which could be helpful :

https://www.servicenow.com/community/itsm-forum/workflow-script-error-illeg-access-to-method-getmess...

https://www.servicenow.com/community/developer-forum/receiving-error-quot-illegal-access-to-getter-m...

 

Thanks and Regards

Amit Verma


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