<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Incremental Load - date format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163051#M911257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌hi&lt;/P&gt;&lt;P&gt;My bad.&lt;/P&gt;&lt;P&gt;the format string should be YYYY-MM-DD hh:mm:ss . The TT was a typo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 18:36:49 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2016-06-09T18:36:49Z</dc:date>
    <item>
      <title>Incremental Load - date format</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163048#M911254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I trying to load my data by using incremental method.&lt;/P&gt;&lt;P&gt;by using this kind of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;RefTime=reloadtime();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333px;"&gt;_________&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;WHERE UpdateDate&amp;gt;'$(&lt;SPAN style="font-size: 13.3333px;"&gt;RefTime&lt;/SPAN&gt;)'&lt;/P&gt;&lt;P&gt;_________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;NOT exists(id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_________&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The problem is when I use the variable the where condition not working - only data from my initial load is stored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I am not using the variable and just write the time (for example 6/9/2016)&amp;nbsp; the incremental load work perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format date of UpdateDate (as in the DB) is "YYYY-MM-DD HH:MM:SS"&lt;/P&gt;&lt;P&gt;RefTime is as QlikView format&amp;nbsp; "M/D/YYYY &lt;SPAN style="font-size: 13.3333px;"&gt; HH:MM:SS"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I can't figure it out how i need to change the format date so that query will run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163048#M911254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load - date format</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163049#M911255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the variable value from "M/D/YYYY &lt;SPAN style="font-size: 13.3333px;"&gt; HH:MM:SS"&amp;nbsp; to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SET TimestampFormat='YYYY-MM-DD TT hh:mm:ss';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163049#M911255</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-06-09T13:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load - date format</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163050#M911256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from some reason i now get this error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: 22008, ErrorCode: 242, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also see in the error description this date format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UpdateDate&amp;gt;'2016-06-09 PM 05:51:45'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may the "PM" is the reason that the script failed? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163050#M911256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load - date format</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163051#M911257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌hi&lt;/P&gt;&lt;P&gt;My bad.&lt;/P&gt;&lt;P&gt;the format string should be YYYY-MM-DD hh:mm:ss . The TT was a typo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 18:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-date-format/m-p/1163051#M911257</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-06-09T18:36:49Z</dc:date>
    </item>
  </channel>
</rss>

