<?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 script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616634#M227300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;question1: why is the format....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SQL &lt;/SPAN&gt;you're querying Oracle (Qlik send the statement to Oracle)&lt;/P&gt;&lt;P&gt;so the syntax &lt;STRONG&gt;after SQL&lt;/STRONG&gt; &lt;STRONG&gt;is Oracle&amp;nbsp; syntax (different from Qlik)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;an extract of more popular Oracle format options: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="" style="font-family: 'Times New Roman'; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;&lt;STRONG&gt;MM&lt;/STRONG&gt;&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Numeric month (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;07&lt;/TT&gt;)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;MON&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Abbreviated month name (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;JUL&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;MONTH&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Full month name (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;JULY&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;DD&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Day of month (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;24&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;DY&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Abbreviated name of day (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;FRI&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;YYYY&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;4-digit year (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;1998&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;YY&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Last 2 digits of the year (&lt;EM&gt;e.g.&lt;/EM&gt;, &lt;TT&gt;98&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;RR&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Like &lt;TT&gt;YY&lt;/TT&gt;, but the two digits are ``rounded'' to a year in the range 1950 to 2049. Thus, &lt;TT&gt;06&lt;/TT&gt; is considered &lt;TT&gt;2006&lt;/TT&gt; instead of &lt;TT&gt;1906&lt;/TT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;AM&lt;/TT&gt; (or &lt;TT&gt;PM&lt;/TT&gt;)&lt;/TD&gt;&lt;TD&gt;Meridian indicator&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;HH&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Hour of day (&lt;TT&gt;1&lt;/TT&gt;-&lt;TT&gt;12&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;HH24&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Hour of day (&lt;TT&gt;0&lt;/TT&gt;-&lt;TT&gt;23&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;&lt;STRONG&gt;MI&lt;/STRONG&gt;&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Minute (&lt;TT&gt;0&lt;/TT&gt;-&lt;TT&gt;59&lt;/TT&gt;)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TT&gt;SS&lt;/TT&gt;&lt;/TD&gt;&lt;TD&gt;Second (&lt;TT&gt;0&lt;/TT&gt;-&lt;TT&gt;59&lt;/TT&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;question 2: what does........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from online help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A QVD or a CSV file can be created by a &lt;SPAN style="color: #ffffff; background-color: #0a246a;"&gt;store&lt;/SPAN&gt; statement in the script. The statement will create an explicitly named QVD or CSV file. The statement can only export fields from one logical table. The text values are exported to the CSV file in UTF-8 format. A delimiter can be specified, see &lt;A class="MCXref_0"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/A&gt;. The &lt;SPAN style="color: #ffffff; background-color: #0a246a;"&gt;store&lt;/SPAN&gt; statement to a CSV file does not support BIFF export. &lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN style="color: #ffffff; background-color: #0a246a;"&gt;store&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[ *fieldlist &lt;SPAN class="Bold"&gt;from&lt;/SPAN&gt;] table &lt;SPAN class="Bold"&gt;into&lt;/SPAN&gt; filename [ format-spec ];&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;*fieldlist::= ( &lt;SPAN style="font-size: 11pt;"&gt;*&lt;/SPAN&gt; | field ) { , field } )&lt;/SPAN&gt; is a list of the fields to be selected. Using * as field list indicates all fields. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;field::= fieldname [&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;as &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;aliasname ]&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; is a text that is identical to a field name in the &lt;SPAN class="Italic"&gt;table&lt;/SPAN&gt;. (Note that the field name must be enclosed by straight double &lt;A class="MCXref_0"&gt;&lt;EM&gt;Quotation Marks in Scripting&lt;/EM&gt;&lt;/A&gt; or square brackets if it contains e.g. spaces.)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;aliasname&lt;/SPAN&gt; is an alternate name for the field to be used in the resulting QVD or CSV file. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;table&lt;/SPAN&gt; is a script labeled, already loaded table to be used as source for data. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;filename&lt;/SPAN&gt; is the name of the target file. The interpretation of file name is similar to names in &lt;SPAN class="Bold"&gt;load&lt;/SPAN&gt; statements, i.e. the &lt;SPAN class="Bold"&gt;directory&lt;/SPAN&gt; statements apply. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;&lt;STRONG&gt;format-spec ::= &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; ( &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;txt&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; | &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;qvd&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt; ) &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The format specification consists of a the text &lt;SPAN class="Bold"&gt;txt&lt;/SPAN&gt; for text files, or the text &lt;SPAN class="Bold"&gt;qvd&lt;/SPAN&gt; for qvd files. &lt;STRONG&gt;If the format specification is omitted, &lt;SPAN class="Bold"&gt;qvd&lt;/SPAN&gt; is assumed. &lt;/STRONG&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;Store&lt;/SPAN&gt; mytable into xyz.qvd (qvd);&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;Store&lt;/SPAN&gt; &lt;SPAN style="font-size: 11pt;"&gt;*&lt;/SPAN&gt; from mytable into xyz.qvd;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;Store&lt;/SPAN&gt; Name, RegNo from mytable into xyz.qvd;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;Store&lt;/SPAN&gt; Name as a, RegNo as b from mytable into xyz.qvd;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;store&lt;/SPAN&gt; mytable into myfile.txt (txt);&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #0a246a; color: #ffffff;"&gt;store&lt;/SPAN&gt; * from mytable into myfile.txt (txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 12:34:03 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-04-03T12:34:03Z</dc:date>
    <item>
      <title>Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616612#M227278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write my first incremental load script in QV v11.&amp;nbsp; I am using the script that is in the reference manual.&amp;nbsp; This is what the script says:&amp;nbsp; well, I was not able to paste it in here....I have attached it as a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading from a QVD file and the DB itself, concatenating and storing back into the QVD....so the QVD should grow by the amount of the new records found in the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is about the line that reads:&lt;/P&gt;&lt;P&gt;WHERE ModificationTime &amp;gt;= #$(LastExecTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand what it's doing but do not understand how it is set up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for help, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 18:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616612#M227278</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-03-07T18:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616613#M227279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this discussion helps: &lt;A href="https://community.qlik.com/thread/53555"&gt;Incremental Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 19:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616613#M227279</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-07T19:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616614#M227280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate your help, but unfortunately nothing has worked so far.&amp;nbsp; Part of the problem is probably because [everyone here] assumes that I am a professional programmer or SQL developer.&amp;nbsp; Neither could be farther from the truth, although I really do like scripting in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I do not know why I cannot cut and paste directly into this window, so I am attaching my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to pull only those records from a database that have been updated since the last time the query was executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field of the DB record that holds the updated time is "Last Refresh Date".&amp;nbsp; The last time the query was executed is being saved to a variable called "vFinishTime".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set vFinishTime on the last line of the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next time the query runs, I only want to fetch those records that have a "Last Refresh Date" that is newer than vFinishTime (meaning that the DB record was updated after the last query execution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time the query runs, it terminates on the WHERE clause:&amp;nbsp; &lt;STRONG&gt;WHERE "Last Refresh Date" &amp;gt;= $(vFinishTime);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script error box shows that line as:&amp;nbsp; &lt;STRONG&gt;WHERE "Last Refresh Date" &amp;gt;= 4/1/2014 11:43:46 AM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which seems okay but the SQL error is:&amp;nbsp; "SQL command not properly ended".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 18:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616614#M227280</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-01T18:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616615#M227281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, forgot to attach the script document...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 18:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616615#M227281</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-01T18:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616616#M227282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which database? sometimes sql syntax and date format depends on database&lt;/P&gt;&lt;P&gt;try with&amp;nbsp;&amp;nbsp; ' .......... '&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE "Last Refresh Date" &amp;gt;= '&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vFinishTime)&lt;/STRONG&gt;';&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 18:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616616#M227282</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-01T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616617#M227283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I add the single quotes around, like you suggest, I get an error saying "not a valid month".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 10:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616617#M227283</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-02T10:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616618#M227284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your database an access database? &lt;/P&gt;&lt;P&gt;this works for me in access &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;let &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;vFinishTime&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;='03/25/2014 12:59:00';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Orders&lt;/P&gt;&lt;P&gt;where OrderDate &amp;gt;= #$(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;vFinishTime&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;)#&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 12:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616618#M227284</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-02T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616619#M227285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic of your code makes sense and it does look like a formatting issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have access to the database? Can you change or create a new field for Last Refresh Date and format it as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of '02/04/2014 13:51:18' you have '41731.577291667'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the QlikView Script change&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; line-height: 115%; color: blue; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; line-height: 115%; color: gray; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;vFinishTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Now&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(1); &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; line-height: 115%; color: blue; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; line-height: 115%; color: gray; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;vFinishTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; = num(&lt;/SPAN&gt;&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Now&lt;/SPAN&gt;&lt;SPAN style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(1)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working with dates can be a challenge, I always find numbers are much easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikcentral.com/" title="http://qlikcentral.com/"&gt;qlikcentral | Understand / Create / Inform&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 12:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616619#M227285</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-04-02T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616620#M227286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's an Oracle DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The changes you suggested resulted in the error:&amp;nbsp; "invalid character" on the WHERE line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616620#M227286</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-02T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616621#M227287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important thing is that your variable vFinishTime must be in the same format that works in Oracle. You can test this using a query tool like Toad to execute the query and confirm the date format. (You could use Qlikview for this - create a model that opens the ODBC connection and executes the query). Try different date formats until you get it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the date format, use (for example, if the finish time is a timestamp in YYYY/MM/DD hh:mm:ss format):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vFinishTime = TimeStamp(vFinishTime, 'YYYY/MM/DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This assumes that vFinishTime is also a date or timestamp value). Confirm that vFinishTime is in the correct format and then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Orders&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where OrderDate &amp;gt;= '$(&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;vFinishTime&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:If you open the debugger and step through until just before the command, you can see the actual query that QV sends to the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616621#M227287</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-04-02T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616622#M227288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed with the DB support team that the underlying field in the Oracle DB for "Last Refresh Date" is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"M/D/YYYY hh:mm:ss TT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where "TT" is "AM" or "PM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I print vFinishTime to a text box in QlikView, it has the same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am familiar with the debugger and have been using it.&amp;nbsp; That's how I know which line the error is on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the two changes that you suggested, and get this error on the WHERE line:&amp;nbsp; literal does not match format string".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616622#M227288</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-02T15:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616623#M227289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in an Oracle database, starting from your value &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;4/1/2014 11:43:46 AM&lt;/STRONG&gt;&lt;/SPAN&gt; (i suppose DD/MM, if not change the bold)&lt;/P&gt;&lt;P&gt;and OrderDate a date column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFinishTime = date(date#('4/1/2014 11:43:46 AM', '&lt;STRONG&gt;DD/MM&lt;/STRONG&gt;/YYYY hh:mm:ss tt'), '&lt;STRONG&gt;DD/MM&lt;/STRONG&gt;/YYYY hh:mm:ss');&lt;/P&gt;&lt;P&gt;trace $(vFinishTime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from Orders&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;OrderDate&lt;/SPAN&gt; &amp;gt; to_date('$(vFinishTime)',&amp;nbsp; '&lt;STRONG&gt;DD/MM&lt;/STRONG&gt;/YYYY HH24:MI:SS')&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 15:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616623#M227289</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-02T15:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616624#M227290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the script did not error out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to do two things; 1) understand what your lines are doing, and 2) verify data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what these 3 lines are doing?&lt;/P&gt;&lt;P&gt;1) let vFinishTime = .......&lt;/P&gt;&lt;P&gt;2) trace $(fFinishTime)&lt;/P&gt;&lt;P&gt;3) where... "to_date...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking better!&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 16:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616624#M227290</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-02T16:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616625#M227291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Date# = interpretation (string to number)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;if you want to see the number, in a textbox&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;=num(date#('4/1/2014 11:43:46 AM', '&lt;/SPAN&gt;&lt;STRONG style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DD/MM&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;/YYYY hh:mm:ss tt'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56434_1.png" style="width: auto; height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date = formatting (number to string)&lt;/P&gt;&lt;P&gt;in another textbox&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56438_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;very good doc about dates (if you're new to Qlik, read all HIC docs)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;trace is just to print (for debug purpose) the variable vFinishTime when you reload&lt;/P&gt;&lt;P&gt;you can comment it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;where &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt; &amp;gt; to_date('$(vFinishTime)',&amp;nbsp; '&lt;/SPAN&gt;&lt;STRONG style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DD/MM&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;/YYYY HH24:MI:SS')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;this is Oracle side&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;to_date is Oracle function to convert from string to date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;vFinishTime is the Qlik variable I formatted in 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;The variable is in the format you see in the second textbox&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;Orcle needs &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;'&lt;/SPAN&gt;&lt;STRONG style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DD/MM&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;/YYYY HH24:MI:SS&lt;/SPAN&gt;' to convert the string to oracle date &lt;BR /&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 16:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616625#M227291</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-02T16:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616626#M227292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you already have a string &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;4/1/2014 11:43:46 AM&lt;/STRONG&gt;&lt;/SPAN&gt; and you're going to use the oracle to_date function then you can simply put that string in the variable as it is: SET vFinishTime = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;4/1/2014 11:43:46 AM&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 17:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616626#M227292</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-02T17:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616627#M227293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have been using a hard coded date for vFinishTime.&amp;nbsp; However, it won't be that way in the real script.&amp;nbsp; Since I only want to fetch records that have been updated since the last time that the query ran, at the end of the script, I set vFinishTime, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFinishTime = date(date#(Now,(1), 'MM/DD/YYYY hh:mm:ss tt'), 'MM/DD/YYYY hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then my WHERE clause looks the same as your suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE "Last Refresh Date" &amp;gt;= to_date('$(vFinishTime)', 'MM/DD/YYYY HH24:MI:SS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like the format to be "M/D/YYYY hh:mm:ss TT", not in 24 hour format and not in 2 digit months and days.&amp;nbsp; I have tried a number of different changes to the 2 lines above, but have not been able to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 18:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616627#M227293</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-02T18:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616628#M227294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let vFinishTime = date(Now(1)-1000, 'M/D/YYYY hh:mm:ss TT');&lt;/P&gt;&lt;P&gt;trace $(vFinishTime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;from &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Orders&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; "Last Refresh Date"&lt;/SPAN&gt; &amp;gt; to_date('$(vFinishTime)',&amp;nbsp; 'MM/DD/YYYY HH:MI:SS AM') &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 20:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616628#M227294</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-02T20:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616629#M227295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can change DateFormat according to your Oracel DB format.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56483" alt="date.PNG.png" class="jive-image" height="213" src="https://community.qlik.com/legacyfs/online/56483_date.PNG.png" style="height: 212.9230769230769px; width: 346px;" width="346" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and FinishTime is lastReloadTime?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that's right, How about using ReloadTime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReloadTime() = 2014-04-03 PM 3:19:01&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;date(ReloadTime()) =&amp;nbsp; 2014-04-03&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616629#M227295</guid>
      <dc:creator />
      <dc:date>2014-04-03T08:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616630#M227296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Back at work this morning...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Massimo, I will try your changes to get the format I want.&amp;nbsp; Question:&amp;nbsp; What does Now(1)-1000 do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard, I do not have access to the database itself.&amp;nbsp; I did try once to use the Num function on vFinishTime.&amp;nbsp; But I did not also format "Last Refresh Time" as Num('Last Refresh Time') so maybe if formatted both that way it would work.&amp;nbsp; I know there is an "Interval" function in QV.&amp;nbsp; I would PREFER to use the built-in functions in QV, rather than Oracle, but that preference is not mandatory.&amp;nbsp; I just don't have an Oracle background so it's easier [for me] to use the built-in functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would the "Interval" function work to compare dates formatted with the "Num" function?&lt;/P&gt;&lt;P&gt;Kim, I am unfamiliar with the function "ReloadTime" so I will have to look at that.&amp;nbsp; I don't know what it does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 10:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616630#M227296</guid>
      <dc:creator>marsmike</dc:creator>
      <dc:date>2014-04-03T10:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616631#M227297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now(1)-1000? &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1000 days before now&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I used it (-1000) to check the script works on my oracle database &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;with your format&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I have old data in my db, this is the reason I used -1000; r&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;emove&amp;nbsp;&amp;nbsp; -1000.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vFinishTime = date(Now(1), 'M/D/YYYY hh:mm:ss TT');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;trace $(vFinishTime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Orders&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;"Last Refresh Date"&lt;/SPAN&gt; &amp;gt; to_date('$(vFinishTime)',&amp;nbsp; 'MM/DD/YYYY HH:MI:SS AM')&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-script/m-p/616631#M227297</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-03T11:00:15Z</dc:date>
    </item>
  </channel>
</rss>

