cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Getting JsonParseException: Unexpected character ('<' (code 60))

Data_Analytics1
Contributor III

I have a scheduled job that is executed using a notebook. Within one of the notebook cells, there is a check to determine if a table exists. However, even when the table does exist, it incorrectly identifies it as non-existent and proceeds to execute the subsequent code.

spark.sql("CREATE SCHEMA IF NOT EXIST schema_name")

While executing the above code, it throws the below error:

shaded.v245.com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

Even though I haven't used the "<" character in the code, it is still throwing the same error. Error is only for 5-6 runs in a whole day, rest of the time it is working fine. How to avoid this kind of error?

Note: I am using Job Compute cluster to run this job.

1 REPLY 1

Anonymous
Not applicable

Hi @Mahesh Chahareโ€‹ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group