The SAS® log displays the error "Invalid JSON in input near line XXX column XXX : Some code points did not transcode"


After you use a LIBNAME statement with the JSON engine, you might see the following error in the SAS log:

ERROR: Invalid JSON in input near line XXX column XXX: Some code points did not transcode.

This error typically occurs when UTF-8 characters in the data set do not map to the default SAS session encoding.

To prevent this error from appearing, open a Unicode session of SAS:

  1. Go to the Start menu.
  2. Select SAS ► SAS 9.4 (Unicode Support).

If you are still experiencing this issue, contact SAS Technical Support.