<?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: Storing QVD file with Current Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034241#M348838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a trace and an exit after the variable assignment&lt;/P&gt;&lt;P&gt;if the reload is succesful , the prolem isn't the &lt;EM&gt;today()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET v_date=today();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace v_date=$(v_date);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EXIT Script;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2016 12:00:05 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-02-26T12:00:05Z</dc:date>
    <item>
      <title>Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034238#M348835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a requirement of creating a QVD file with Current date. e.g. The name of the file will be Sales_24.02.2016.qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to do that by setting a variable in the script which will store today's date and then using the same with the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;LET v_date=date(Today(),'DD.MM.yy');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And while creating the qvd:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store sales into sales_$(v_date).qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qvd is generated with the proper name: sales_24.02.2016.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have a different query. At first, I created the variable like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v_date=today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reloaded the qvw, error occurred: 'Execution script error'&lt;/P&gt;&lt;P&gt;And when I change it with &lt;SPAN style="font-size: 13.3333px;"&gt;LET v_date=date(Today(),'DD.MM.yy'); no error occurred. Clearly, the error occurred earlier is due to the declaration of the variable. But I did not understand why Today() function generated error and &lt;SPAN style="font-size: 13.3333px;"&gt;date(Today(),'DD.MM.yy') did not.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain how qlikview works in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 04:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034238#M348835</guid>
      <dc:creator>sohb2015</dc:creator>
      <dc:date>2016-02-26T04:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034239#M348836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think ur date frmat is diffrnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="today.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116126_today.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034239#M348836</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-02-26T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034240#M348837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script execution error probably originated somewhere else. Just like with my predecessor, both assignments work like a charm.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="LET Error thread207133.jpg" class="jive-image image-1" src="/legacyfs/online/116133_LET Error thread207133.jpg" style="height: 293px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Can you upload a small demo document that has this problem? If we cannot reproduce the error, we won't find the cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 11:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034240#M348837</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-26T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034241#M348838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a trace and an exit after the variable assignment&lt;/P&gt;&lt;P&gt;if the reload is succesful , the prolem isn't the &lt;EM&gt;today()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET v_date=today();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace v_date=$(v_date);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EXIT Script;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 12:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034241#M348838</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-26T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034242#M348839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I add the trace as you suggested. The reload is successful.&lt;/P&gt;&lt;P&gt;However, while reloading the actual table with any of these variables, there's no error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;When I try to attach the variable(v=today()) with qvd name, the error &lt;/SPAN&gt;occurs and &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; use of date function(date(today(),'dd/MM/yyyy') resolves the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Seems like issue is with date format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 05:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034242#M348839</guid>
      <dc:creator>sohb2015</dc:creator>
      <dc:date>2016-02-29T05:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034243#M348840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your default date format is dd/mm/yyyy or mm/dd/yyyy (or it has / in the date format). Generally windows file system won't allow / in the file name, that's why you got error while using Today() in variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change&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: 13px;"&gt;LET v_date=date(Today(),'DD.MM.yy');&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;to&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET v_date=date(Today(),'DD/MM/yy');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You will also get error.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 05:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034243#M348840</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-29T05:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034244#M348841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. When I changed the V_date to v_date in dd/mm/yy error occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you are saying issue with default date format in windows file, is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 05:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034244#M348841</guid>
      <dc:creator>sohb2015</dc:creator>
      <dc:date>2016-02-29T05:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034245#M348842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sohini Bhattacharyyar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default format&amp;nbsp; in DateFormat variable&amp;nbsp; is DD/MM/YYYY. It contain slashs. This is rule of the System Operational, not save any file with character &lt;STRONG&gt;\ / : * ? "&amp;lt; &amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 13:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034245#M348842</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2016-02-29T13:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Storing QVD file with Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034246#M348843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, windows doesn't allow / in file name, instead of this you can - or _.&amp;nbsp; Hope you got the answer, please close this thread by giving Correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 01:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-QVD-file-with-Current-Date/m-p/1034246#M348843</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-01T01:16:55Z</dc:date>
    </item>
  </channel>
</rss>

