<?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 with max filetime getting error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525347#M747477</link>
    <description>Think that you should use&lt;BR /&gt;FileTime() is a function referring to the currently loaded file (not for RESIDENT).&lt;BR /&gt;&lt;BR /&gt;Script might be (aircode):&lt;BR /&gt;Data: LOAD *, FILETIME() AS FileTime FROM ....;&lt;BR /&gt;Max: LOAD MAX(FileTime) AS MaxDate RESIDENT Data;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;HTH Peter&lt;BR /&gt;</description>
    <pubDate>Wed, 02 Jan 2019 10:56:42 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2019-01-02T10:56:42Z</dc:date>
    <item>
      <title>Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525335#M747476</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build an incremental reload with max filetime however, I'm receiving the underlying error the whole time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you guys probably know on how to deal with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET AND MAXDATE CALCULATION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MaxDate:&lt;BR /&gt;LOAD&lt;BR /&gt;max(Date([FileTime()],'DD-MM-YYYY HH:MM:SS')) as Max_Date&lt;BR /&gt;Resident Final;&lt;/P&gt;&lt;P&gt;LET Last_updated_date = peek('Max_Date',0,'Last_updated_date');&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Syntax error Unexpected token: '08', expected nothing&lt;BR /&gt;Where FileTime() &amp;gt; 12-12-2018 &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;08&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;:12:36&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525335#M747476</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2024-11-16T04:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525347#M747477</link>
      <description>Think that you should use&lt;BR /&gt;FileTime() is a function referring to the currently loaded file (not for RESIDENT).&lt;BR /&gt;&lt;BR /&gt;Script might be (aircode):&lt;BR /&gt;Data: LOAD *, FILETIME() AS FileTime FROM ....;&lt;BR /&gt;Max: LOAD MAX(FileTime) AS MaxDate RESIDENT Data;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;HTH Peter&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2019 10:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525347#M747477</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2019-01-02T10:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525352#M747478</link>
      <description>Hi Peter,&lt;BR /&gt;Thanks for your prompt reply. Yes, you are right. I have tested your recommendation but I'm still receiving the same error.</description>
      <pubDate>Wed, 02 Jan 2019 11:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525352#M747478</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2019-01-02T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525357#M747479</link>
      <description>The PEEK-command should point to the correct table, in your example "MaxDate".&lt;BR /&gt;Then the PEEK should read: PEEK('MaxDate', 0, 'MaxDate')</description>
      <pubDate>Wed, 02 Jan 2019 11:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525357#M747479</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2019-01-02T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525363#M747480</link>
      <description>&lt;P&gt;The FileTime() function requires the filename for resident load. PFB syntax.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="script_token"&gt;FileTime(&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;[ filename ]&lt;/SPAN&gt;&lt;SPAN class="script_token"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="script_token"&gt;Or FileTime() will be generated without filename parameter when data is read from file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Result&lt;/P&gt;&lt;TABLE cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="Code"&gt;LOAD *, FileTime( ) as X from abc.txt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Will return the date and time of the last modification of the file (abc.txt) as a timestamp in field X in each record read.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FileTime( 'xyz.xls' )&lt;/TD&gt;&lt;TD&gt;Will return the timestamp of the last modification of the file xyz.xls.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525363#M747480</guid>
      <dc:creator>sivakumar1994</dc:creator>
      <dc:date>2019-01-02T11:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525370#M747481</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;ERROR:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Syntax error Unexpected token: '08', expected nothing&lt;BR /&gt;Where FileTime() &amp;gt; 12-12-2018 &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;08&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;:12:36&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Looks like you're using $(Last_updated_date) in your where clause: &lt;STRONG&gt;Where FileTime() &amp;gt; $(Last_updated_date)&lt;/STRONG&gt;. Since the variable value contains several spaces Qlik thinks you're trying specify multiple conditions in the where clause. But 08 is not an operator like AND or OR it throws an error. You can try &lt;STRONG&gt;Where FileTime() &amp;gt; '$(Last_updated_date)'. &lt;/STRONG&gt;Or if that doesn't work use only the numeric value: &lt;STRONG&gt;Num(max([FileTime]))) as Max_Date&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525370#M747481</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-02T11:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525417#M747482</link>
      <description>Hi Gysbert,&lt;BR /&gt;&lt;BR /&gt;Getting a similar error:&lt;BR /&gt;&lt;BR /&gt;Syntax error&lt;BR /&gt;Unexpected token: ',', expected nothing&lt;BR /&gt;Where Date(FileTime(),'MM-DD-YYYY') = 43446&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;,&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;374027778&lt;BR /&gt;&lt;BR /&gt;Any ideas? Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525417#M747482</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2019-01-02T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525438#M747483</link>
      <description>&lt;P&gt;Ok, so your decimal symbol setting is a comma instead of a dot. Try replacing that comma with a dot.&lt;/P&gt;&lt;P&gt;LET Last_updated_date = Replace(peek('Max_Date',0,'Last_updated_date'), ',' , '.' );&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525438#M747483</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-02T13:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load with max filetime getting error</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525695#M747484</link>
      <description>Worked, Thanks!</description>
      <pubDate>Thu, 03 Jan 2019 08:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-with-max-filetime-getting-error/m-p/1525695#M747484</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2019-01-03T08:21:20Z</dc:date>
    </item>
  </channel>
</rss>

