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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Querry fails in cMessageEndpoint

Why does this querry fails with this error?

"sql:UPDATE TLD_VP_DIM_CONTRACTS SET TLD_INSERT_DATE = (CURRENT_TIMESTAMP) WHERE ID =:#CONTRACT_ID?dataSource=myDataSource"
, StackTrace: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00904: "URRENT_TIMESTAMPHERE": invalid identifier

	at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231)
	at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:645)
...

But this querry doesnt fail:

"sql:UPDATE TLD_VP_DIM_CONTRACTS SET TLD_INSERT_DATE = (CURRENT_TIMESTAMP) WHERE ID =261?dataSource=myDataSource"

And the header in both cases

Headers: {breadcrumbId=ID:<xxx>, CamelSqlRowCount=1, CONTRACT_ID=261,
Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

A collegue pointed out the solution. The problem were the empty spaces around '='.

View solution in original post

13 Replies
Anonymous
Not applicable
Author

Hi,

 

Could you try this syntax ?

"sql:UPDATE TLD_VP_DIM_CONTRACTS SET TLD_INSERT_DATE = (CURRENT_TIMESTAMP) WHERE ID =:#${header.CONTRACT_ID}?dataSource=myDataSource"

 

Eric

Anonymous
Not applicable
Author

Fails with the same error.

Anonymous
Not applicable
Author

It works on mine... My studio version is 6.2.1 and my camel version is 2.16.3. What are yours ?

Anonymous
Not applicable
Author

how do I see Camel Version?
Anonymous
Not applicable
Author

Talend 6.3.1
Anonymous
Not applicable
Author

Regarding camel version, you can see it in module view (Pick up any camel module)

Anonymous
Not applicable
Author

Camel-aws-2.17.jar
Anonymous
Not applicable
Author

What is your ID field type in database ? String ? Integer ?

Anonymous
Not applicable
Author

Number(8,0)