<?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: How to run a task in QMC on placing of an excel file in a local folder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310886#M842771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems you made mistake here&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;let v_OldDate=peek('Filetime-Old')&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;let v_NewDate=peek('Filetime-New')&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt; &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Field Name must be placed as wrong. Try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Filetime_Old&lt;/STRONG&gt; instead of &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Filetime-Old&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2017 06:07:06 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-04-26T06:07:06Z</dc:date>
    <item>
      <title>How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310883#M842766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Task in QMC should automatically start running as soon as someone places a particular excel file in a local folder.&lt;/P&gt;&lt;P&gt;How can this be achieved ?&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/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310883#M842766</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310884#M842768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a qmc-task which checked per filetime() - directly or within a filelist-loop - if the file exists respectively has changed and which might be triggered to 1 minute. The (un)successful run of this task could trigger your origin task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If something like this isn't suitable you will probably need an external batch/routine to monitor the folder and to trigger an external qmc-task maybe per &lt;A href="https://community.qlik.com/docs/DOC-3024"&gt;Using EDX in QlikView 11 - basic example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 10:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310884#M842768</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-04-25T10:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310885#M842770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;i was working on the first solution as provided in your comment.&lt;/P&gt;&lt;P&gt;But i am facing some issue while comparing both the date variables.&lt;/P&gt;&lt;P&gt;Below is my script :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load num(Filetime_Old) as &lt;SPAN style="font-size: 13.3333px;"&gt;Filetime_Old&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from Old_Data.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let v_OldDate=peek('Filetime-Old')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Table2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load num(FileTime() ) as Filetime_New&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from Incremental.xls;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;let v_NewDate=peek('Filetime-New')&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if '$(v_NewDate)' &amp;lt;&amp;gt; &lt;SPAN style="font-size: 13.3333px;"&gt;'$(v_OldDate)' Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Drop Table Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Drop Table NONExistingTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In current Scenario, v_NewDate and v_OldDate are having exactly same values but still if case is being loaded rather than choosing else case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What could be the issue here ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Format is same for both fields.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 05:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310885#M842770</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2017-04-26T05:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310886#M842771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems you made mistake here&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;let v_OldDate=peek('Filetime-Old')&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;let v_NewDate=peek('Filetime-New')&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt; &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Field Name must be placed as wrong. Try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Filetime_Old&lt;/STRONG&gt; instead of &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Filetime-Old&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 06:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310886#M842771</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-26T06:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310887#M842773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's actually &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Filetime_Old and &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Filetime_New .&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;By Mistake, wrote it like other way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 06:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310887#M842773</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2017-04-26T06:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310888#M842775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One possible reason are the wrong fieldnames mentioned already from Anil. Another is the missing second/third parameter from the peek-function which are necessary if the function is used outside from a load-statement. The default-behaviour for this case isn't documented anywhere - I think it takes the value from the last loaded table but I'm not really sure - this meant it's always better to set them explicitly, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let v_OldDate=peek('Filetime&lt;STRONG&gt;_&lt;/STRONG&gt;Old', &lt;STRONG&gt;-1, 'Table1'&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this I would rather not use num() in this case and if I wouldn't use single-quotes around the variables by comparing them - just: &lt;SPAN style="font-size: 13.3333px;"&gt;$(v_OldDate) because the content is numeric - whereby I didn't think that this is related to your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;To see which values are really within the variables use some trace-statements like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;trace &lt;SPAN style="font-size: 13.3333px;"&gt;$(v_OldDate);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and/or run the script within the debugger and/or take a look within the script-log.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Independing of the above mentioned things I would compare the filetimes directly like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if FileTime(Incremental.xls) &amp;lt;&amp;gt; FileTime(Old_Data.qvd) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 06:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310888#M842775</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-04-26T06:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310889#M842778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started with the solution as mentioned in last part of your reply but was not sure if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FileTime(Old_Data.qvd)&amp;nbsp; will provide time of QVD Creation or source xls file.&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: 13px;"&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: 13px;"&gt;Let me try this and confirm you back.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 07:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310889#M842778</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2017-04-26T07:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310890#M842780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i am not using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;single-quotes around the variables in&lt;/SPAN&gt; if statement ,then below error is coming,&lt;/P&gt;&lt;P&gt;neither it reads right side value nor it provides a proper result.- &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161264_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 07:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310890#M842780</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2017-04-26T07:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310891#M842782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the right part returned NULL - I think that the path and/or the filename aren't quite correct - it should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filetime('FullPath\FileName.FileExtension')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 07:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310891#M842782</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-04-26T07:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a task in QMC on placing of an excel file in a local folder</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310892#M842784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for providing your inputs.&lt;/P&gt;&lt;P&gt;Right side was coming null only in variable but not if loaded directly.&lt;/P&gt;&lt;P&gt;I just wrote max() while loading it and it worked somehow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 08:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-run-a-task-in-QMC-on-placing-of-an-excel-file-in-a-local/m-p/1310892#M842784</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2017-04-26T08:56:07Z</dc:date>
    </item>
  </channel>
</rss>

