Workflow Error -Fault Description: org.mozilla.javascript.wrappedexception: Wrapped Conversion Error

Community Alums
Not applicable

Fault Description: org.mozilla.javascript.wrappedexception: Wrapped Conversion Error:The undefined value has no properties

 

We haven't made any changes to the workflow and the below error started appearing suddenly and catalog task is not getting created.

 

Only change we did to the catalog item is creating 2 checkbox fields and a label field on the form.

RJ8_0-1676471482743.png

 

Thanks

RJ

 

2 REPLIES 2

-Andrew-
Kilo Sage

Hi RJ,

 

It's possible the additional checkboxes have caused the issue, to troubleshoot the issue, here's some troubleshooting steps:

  1. Check the JavaScript code of the workflow and catalog item. Look for any syntax errors or missing variables Make sure that the code is referencing the correct fields and variables

  2. Check the syslogs and system logs for any error messages that might give you a clue as to what is causing the issue

  3. Check the script logs for the specific script or script include that is causing the issue

  4. Try to reproduce the issue in a test environment. If you can reproduce the issue, it will be easier to troubleshoot and fix

  5. Check the business rules, workflows, and other scripts that are related to the catalog item. Make sure that they are working correctly

In general, when making changes to catalog items or workflows in ServiceNow, it's a good idea to test them thoroughly before putting them into production. This can help you catch any issues early on and prevent problems from occurring in your production environment

 

Hope this helps!

Community Alums
Not applicable

Hi AP,

 

Thanks for the response.

 

I could see from the logs that 2 OOB script includes are causing the error

 

1. Workflow - org.mozilla.javascript.EcmaError: The undefined value has no properties.
Caused by error in sys_script_include.d3669766c0a8016901828e92d1202ac5.script at line 104

 

2. WFActivityHandler - line 20) (sys_script_include.365eca63c0a8016600069528aee5affb.script; line 117)

 

I do not see any errors apart from this, I tried disabling the checkbox fields we created but it still giving the same error on our Dev and Test instances too.