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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 06:33 AM
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.
Thanks
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 06:40 AM
Hi RJ,
It's possible the additional checkboxes have caused the issue, to troubleshoot the issue, here's some troubleshooting steps:
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
Check the syslogs and system logs for any error messages that might give you a clue as to what is causing the issue
Check the script logs for the specific script or script include that is causing the issue
Try to reproduce the issue in a test environment. If you can reproduce the issue, it will be easier to troubleshoot and fix
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 07:58 AM
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.