My Oracle Support Banner

OSB JavaScript Action Failed: SyntaxError: Unexpected Token: \u0000 (Doc ID 2583209.1)

Last updated on JUNE 23, 2021

Applies to:

Oracle Service Bus - Version 12.2.1.2.0 to 12.2.1.2.0
Information in this document applies to any platform.

Symptoms

OSB service when reading record from database through DB adapter is failing with "OSB JavaScript action failed: SyntaxError: Unexpected token: \u0000 (#1)"

It is happening at the java script activity when executing the parse json command due to some special characters present in the data read from the database.
These special characters could be inserted by the Db adapter.

The issue looks to be accruing when using Pure SQL in the DB adapter. For Select Operation the issue does not occur.

 

ERROR
-----------------------



 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.