Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

load script date format error

Hello

I am trying to load below "load script"

2.PNG

but i get the following error

1.PNG

the date format at sql is '2018-01-01 00:00:00:000'.

can someone help with this error. What should i do?

My aim is to load only the updated rows from the sql server to qvd file.

20 Replies
arvind1494
Specialist
Specialist

first try

where datetime > '2018-01-01'

and let me know if it works then I will provide you better  suggestion

Note:

Qlik consider date as a number

but in sql date is separate data type

agigliotti
Partner - Champion
Partner - Champion

let's try using the below syntax:

Where DateTime > Date( $(Last_Update_time), $(TimestampFormat) );

I hope it helps.

Anonymous
Not applicable
Author

same error here

arulsettu
Master III
Master III

maybe like this

where datetime > date '2018-01-01'

Anonymous
Not applicable
Author

This is the result.

3.PNG

Anonymous
Not applicable
Author

no luck.

agigliotti
Partner - Champion
Partner - Champion

how your timestamp environment variable looks like ?

ex.

SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';

it should match your sql date format.

arulsettu
Master III
Master III

to match sql with the timestamp

where datetime > date '2018-01-01 00:00:00:000'

Quy_Nguyen
Specialist
Specialist

Should be like this:

Where DateTime > Date( $(Last_Update_time), '$(TimestampFormat) ');