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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Incremental Load from Oracle and Date issues

Hi all,

I'm writing an incremental load script to load a table from oracle.

my Water mark is a DBTIMESTAMP from oracle.

When I load from the latest QVD the max DBTIMESTAMP I save it into a variable in the script.

Then I try to run a SQL query on the oracle DB and do an expression:

WHERE DBTIMESTAMP> vVariable

I get an error: expected a date, got a number

when I get the max DBTIMESTAMP from the QVD I put in in the date function but still it doesn't work.

Can someone who has dealt with oracle loads assist me?

Thanks,

Boris

Labels (1)
2 Replies
tresB
Champion III
Champion III

Your variable should hold exactly the same format of timestamp as it's comparison field. Then try with single quotes, like:

WHERE DBTIMESTAMP> '$(vVariable)'

SunilChauhan
Champion II
Champion II

i am agree with tresesco but i will suggets to keep same format of date in vVariable too

hope this helps

Sunil Chauhan