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: 
deep2021
Creator III
Creator III

comparison date field is blank in qlik incremental load

Hi All,

 

In the incremental load for the insert logic my date field is showing as a blank.

Below is the piece of code for this.

$(IncrTimestampAttr) >=to_date('$(vL.Last_Exec_$(TableName))', 'YYYY-MM-DD HH:MI:SS')
AND
$(IncrTimestampAttr) <to_date('$(vL.This_Exec_$(TableName))', 'YYYY-MM-DD HH:MI:SS')

I am passing update date to the variable IncrTimestampAttr. 

 

Do i need to use peek to retrieve for the max value for the variable IncrTimestampAttr.

Can you please suggest in this.

Thanks,

 

 

 

Labels (4)
15 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Thanks @Michael_Tarallo  for tagging me.

 

Dear @deep2021 try this.

$(IncrTimestampAttr) >='$(vL.Last_Exec_$(TableName))'
AND
$(IncrTimestampAttr) <'$(vL.This_Exec_$(TableName))'
;

Do not use the to_date() function and see if that works.

 

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
deep2021
Creator III
Creator III
Author

Hi Kaushik,

After implementing the above changes  It is showing me the below error,

ERROR [HY000] [Qlik][OracleOCI] (3000) Oracle Caller Interface: ORA-04063: view "VIEW" has errors

Thanks

Weaver265
Contributor
Contributor

I will ensure that I bookmark your blog and will come back sometime soon.

 

ACES ETM

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

I would recommend you to check from the oracle side, what's the issue because from Qlik Query is going properly.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
myestub
Contributor
Contributor

I have seen the first-time Article it is so wonderful thanks for sharing this article.

my estub

twitchbitstousd1
Contributor
Contributor

I have seen this article this is very nice thanks for sharing it with us.

twitchbitstousd