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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
kakooo16
Creator
Creator

tDBrow doesn't support ';' ?

Hello ,

Im trying to execute this sql query :

0695b00000EbPLdAAN.png

and its throwing me this error :

Exception in component tDBRow_1 (SQL_File)

java.sql.SQLException: [SQL0104] El{ment syntaxique ; n'est pas correct. El{ments possibles : <FIN-INSTRUCTION>.

at com.ibm.as400.access.JDError.throwSQLException(JDError.java:705)

i think that this componnent with this particular database AS400 is not supporting ';' ?

Thanks

Labels (2)
25 Replies
kakooo16
Creator
Creator
Author

Je crois que c'est problème niveau composant tDBRow AS400 vu que je l'avais déja fait fonctionné avec SQL Server

gjeremy1617088143

le "allowMultiQueries=true" je l'ai trouvé pour mysql il faudrait regarder il doit y avoir quelque-chose de similaire pour le AS400, après vu que tu utilise une connexion existante il faut peut etre le mettre dans la connexion le parametre JDBC : "allowMultiQueries=true"

kakooo16
Creator
Creator
Author

0695b00000EbQQ5AAN.png 

I've changed the logic of my job to put the query into a tfileInputRaw then use it in tDBrow but always same problem .

tdbrow doesn't support neither the ';' and when i retrieve the ';' it's throwing me directly an error in the second line .

 

gjeremy1617088143

peut etre avec les instructions BEGIN et END ?

http://djugal.blogspot.com/2013/03/talend-writing-multiple-sql-queries-in.html

kakooo16
Creator
Creator
Author

Oui je l'ai déja mis mais pas encore fonctionnelle

kakooo16
Creator
Creator
Author

J'ai pas trop compris ? c'est ou l'erreur

kakooo16
Creator
Creator
Author

@guenneguez jeremy​ 

Je recois maintenant l'erreur vers la fin du script

 

Exception in component tDBRow_2 (SQL_File_Second_Method)

java.sql.SQLException: [SQL0104] Elément syntaxique ; n'est pas correct.

 

 

gjeremy1617088143

tu peux envoyer le script ?

 

kakooo16
Creator
Creator
Author

SET SCHEMA XX;

DECLARE global temporary table xVariables

(

  x numeric(3),

y varchar(3),

z numeric(8),  

w numeric(8)   

)

with replace ;

 

insert into xVariables

(

x,

y,

z,

w

)

values

(

100,     -- Obligatoire

'test',    -- Obligatoire

20201101,  -- Obligatoire

20201231   -- Obligatoire

);

 

gjeremy1617088143

et en faisant ca :

"BEGIN

SET SCHEMA XX;

DECLARE global temporary table xVariables

(

  x numeric(3),

y varchar(3),

z numeric(8),  

w numeric(8)   

)

with replace ;

 

insert into xVariables

(

x,

y,

z,

w

)

values

(

100,     -- Obligatoire

'test',    -- Obligatoire

20201101,  -- Obligatoire

20201231   -- Obligatoire

);

END;"