IBM Support

An unexpected token ""null"" was found when running HCAT_SYNC_OBJECTS

Troubleshooting


Problem

Attempting to run the command and seeing an error
db2 "CALL SYSHADOOP.HCAT_SYNC_OBJECTS('<schema>','<tablename>', 'T', 'REPLACE', 'CONTINUE'); 

Symptom

In the bigsql.log file, we see
2020-11-10 13:35:19,914 ERROR com.ibm.biginsights.biga.udf.HCAT_SYNC_OBJECTS [Thread-40] : Failed to issue: /*_!DB2!_*/ DROP null "null"."null": An unexpected token ""null"" was found following "*_!DB2!_*/ DROP null".  Expected tokens may include:  "JOIN".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.25.4
com.ibm.db2.jcc.am.SqlSyntaxErrorException: An unexpected token ""null"" was found following "*_!DB2!_*/ DROP null".  Expected tokens may include:  "JOIN".. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.25.4
	at com.ibm.db2.jcc.am.b6.a(b6.java:810)
	at com.ibm.db2.jcc.am.b6.a(b6.java:66)
	at com.ibm.db2.jcc.am.b6.a(b6.java:140)
	at com.ibm.db2.jcc.am.k3.c(k3.java:2817)
	at com.ibm.db2.jcc.am.k3.d(k3.java:2801)
	at com.ibm.db2.jcc.am.k3.b(k3.java:2161)
	at com.ibm.db2.jcc.t4.ab.k(ab.java:445)
	at com.ibm.db2.jcc.t4.ab.c(ab.java:104)
	at com.ibm.db2.jcc.t4.p.b(p.java:38)
	at com.ibm.db2.jcc.t4.av.h(av.java:124)
	at com.ibm.db2.jcc.am.k3.ak(k3.java:2156)
	at com.ibm.db2.jcc.am.k3.a(k3.java:3359)
	at com.ibm.db2.jcc.am.k3.c(k3.java:783)
	at com.ibm.db2.jcc.am.k3.executeUpdate(k3.java:762)
	at com.ibm.biginsights.biga.udf.HCAT_SYNC_OBJECTS.drop(HCAT_SYNC_OBJECTS.java:2542)
	at com.ibm.biginsights.biga.udf.HCAT_SYNC_OBJECTS.drop(HCAT_SYNC_OBJECTS.java:2427)
	at com.ibm.biginsights.biga.udf.HCAT_SYNC_OBJECTS.syncTables(HCAT_SYNC_OBJECTS.java:576)
	at com.ibm.biginsights.biga.udf.HCAT_SYNC_OBJECTS.exec(HCAT_SYNC_OBJECTS.java:336)

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCRJT","label":"IBM Db2 Big SQL"},"ARM Category":[{"code":"a8m50000000L2JgAAK","label":"Management-\u003ECatalog Synchronization"}],"ARM Case Number":"TS004485542","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
11 November 2020

UID

ibm16366681