SyntaxError: Empty JSON string / NativeJSON line

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 03:29 PM
Hello,
We've had a workflow on a Service Catalog item successfully execute for some time now. However, I was notified today that the request isn't completing as it should. After researching various logs and workflows, I found an error that appears to be causing this reported issue.
The error description is "SyntaxError: Empty JSON string (sys_script_include.d2426c9ec0a8016501958bf2ac79c775.script; line 155) "
The script include for the sys id listed above is :
And the line mentioned in the error above (155) is
return NativeJSON.parse.apply(NativeJSON, arguments);
I am not well versed in JSON. What is the best way to resolve this error? Is NativeJSON no longer relevant?
I appreciate any insights on this.
Thanks,
m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 08:54 PM
that is an OOB script include.
Seems issue is not in the OOB script include.
It's somewhere how you are handling the JSON in the workflow
you need to debug your workflow
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 01:54 AM
Hello Ankur, @Ankur Bawiskar
One catalog item was created in order to automate the process of creating new shared mailboxes in Azure AD from ServiceNow by using spokes.
I am using the create mailbox action from Microsoft Exchange Online spoke in flow. During testing, I receive an above error
Some more errors
:
Failed while executing ExchangeOnlineSpoke-CreateMailbox.ps1
I appreciate any insights on this.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 02:35 AM
Hello @Ankur Bawiskar
One catalog item was created in order to automate the process of creating new shared mailboxes in Azure AD from ServiceNow by using spokes.
I am using the create mailbox action from Microsoft Exchange Online spoke in flow. During testing, I receive an above error: Error: Empty JSON string, Detail: Empty JSON string.
Failed to access target system. Please check credentials and firewall settings on the target system to ensure accessibility: Call was canceled by the message filter. (Exception from HRESULT: 0x80010002 (RPC_E_CALL_CANCELED))
Failed while executing ExchangeOnlineSpoke-CreateMailbox.ps1
I appreciate any insights on this.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 02:59 AM
Hello @Ankur Bawiskar ,
I am Facing the same issue while testing the flow.
One catalog item was created in order to automate the process of creating new shared mailboxes in Azure AD from serviceNow by using spokes.
I am using the create mailbox action from Microsoft Exchange Online spoke in flow.
Failed to access target system. Please check credentials and firewall settings on the target system to ensure accessibility: Call was canceled by the message filter. (Exception from HRESULT: 0x80010002 (RPC_E_CALL_CANCELED))
Failed while executing ExchangeOnlineSpoke-CreateMailbox.ps1