Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error during Merge

Hello,

 

I would like to merge two tables.

I am using tTemplateMerge component

0683p000009M8Tm.pngI just kept key and one column to update or insert.

I have this error on clearbatch :

Exception in component tSQLTemplateMerge_1 (DMT_DIM_CLIENT)
java.lang.NullPointerException

 

0683p000009M8Tr.png

 

Have you an idea what's wrong with this module ?

How can i fix it ?

 

I create this MERGE in SQL which is ok:

MERGE INTO DMT_CLIENT PRINC
USING (
	 SELECT id_client, 
		code_type_personne
	FROM DWH_CLIENT
	WHERE scd_active = 1 ) DELTA
ON (DELTA.ID_CLIENT = PRINC.ID_CLIENT)
WHEN MATCHED THEN UPDATE SET 
		PRINC.code_type_personne = DELTA.code_type_personne
WHEN NOT MATCHED THEN INSERT (id_client, 
			code_type_personne)
                     VALUES (
			DELTA.ID_CLIENT,
			DELTA.CODE_TYPE_PERSONNE)
    ;

Thanks

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Can you post a screenshot of your job? Make sure the tDB connection is created before it is used on tSQLTemplateMerge.
Anonymous
Not applicable
Author

I Initialise my connexion with a PREJOB

0683p000009M9FC.png