Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
vireshkolagimat
Creator III
Creator III

Incremental reload

Hello All,

I am working on incremental load but getting the below error.

SQL##f - SqlState: S1000, ErrorCode: 936, ErrorMsg: [Oracle][ODBC][Ora]ORA-00936: missing expression


ConsOP:

SQL SELECT *

FROM ConsOP

where [ModifiedDate] > '17/01/2018'


Please find the attached qvw file for the reference. when i do the initial reload, it works fine and modifieddate is stored as number like 43109. But when i initiate the incremental realod, the date format i am getting from initial reload is DD/MM/YYYY and its giving the above error. Oracle stored the date format as DD-MMM-YY.


Thanks for the support.


Regards,

Viresh

5 Replies
vireshkolagimat
Creator III
Creator III
Author

The default Dateformat set in main tab is DD/MM/YYYY.

karthikoffi27se
Creator III
Creator III

Hi Viresh,

Try using below

WHERE [ModifiedDate] > TO_DATE'(17/01/2018','DD/MM/YYYY')


This should work


Many Thanks

Karthik

vireshkolagimat
Creator III
Creator III
Author

Hi, i tried the above method but still getting the error.

SQL##f - SqlState: S1000, ErrorCode: 936, ErrorMsg: [Oracle][ODBC][Ora]ORA-00936: missing expression


ConsOP:

SQL SELECT *

FROM ConsOP

where [ModifiedDate] > to_date('17/01/2018','DD/MM/YYYY')

vireshkolagimat
Creator III
Creator III
Author

--Query


$(_qvd_name):

SQL SELECT *

FROM $(_qvd_name)

where [$(vUpdateField)] > to_date('$(vMaxKey)','DD-MMM-YY');


-- Error


SQL##f - SqlState: S1000, ErrorCode: 936, ErrorMsg: [Oracle][ODBC][Ora]ORA-00936: missing expression


ConsOP:

SQL SELECT *

FROM ConsOP

where [ModifiedDate] > to_date('17/01/2018','DD-MMM-YY')

vireshkolagimat
Creator III
Creator III
Author

Hi Karthik,

I was referring the qvd file  instead of table from db and hence i was getting error.

I used the above format and it works fine.

Thank you.

Regards,

Viresh