<?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 'Script failed' but doesn't seem to be in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245801#M624756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried going through the debug and it seems to successfully do its thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just always seems to fail on the store of the qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different things but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Path for save path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14843241051915959" jivemacro_uid="_14843241051915959"&gt;
&lt;P&gt;// sets path for saving&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SET vPathQvd = '..\Data\TestQVDs';&lt;/P&gt;
&lt;P&gt;Directory [$(vPathQvd)];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This is my script ending&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;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_148432406088110 jive_text_macro" jivemacro_uid="_148432406088110" modifiedtitle="true"&gt;
&lt;P&gt;// Begin process to end the script&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DisConnect; //disconnect gracefully from ODBC? No further ODBC connections can be deployed after this line&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// To store data into QVDs to be used by the user interface later and be more efficient&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i = 0 to NoOfTables() - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET d = TableName(i);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //store $(d) into $(vPathQvd)\$(d).QVD;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; store $(d) into $(d).QVD;&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// To find out the how long the script took&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vScriptDuration = interval(now() - $(vScriptStartTime),'mm:ss');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Allow a graceful exit&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;exit Script;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I comment out the whole store part, it doesn't say script failed but then it obviously hasn't stored it, which makes me think it is a permissions problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help / advice would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2017 16:18:12 GMT</pubDate>
    <dc:creator>james_hanify</dc:creator>
    <dc:date>2017-01-13T16:18:12Z</dc:date>
    <item>
      <title>'Script failed' but doesn't seem to be</title>
      <link>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245801#M624756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried going through the debug and it seems to successfully do its thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just always seems to fail on the store of the qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different things but to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Path for save path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14843241051915959" jivemacro_uid="_14843241051915959"&gt;
&lt;P&gt;// sets path for saving&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SET vPathQvd = '..\Data\TestQVDs';&lt;/P&gt;
&lt;P&gt;Directory [$(vPathQvd)];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This is my script ending&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;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_148432406088110 jive_text_macro" jivemacro_uid="_148432406088110" modifiedtitle="true"&gt;
&lt;P&gt;// Begin process to end the script&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DisConnect; //disconnect gracefully from ODBC? No further ODBC connections can be deployed after this line&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// To store data into QVDs to be used by the user interface later and be more efficient&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i = 0 to NoOfTables() - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET d = TableName(i);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //store $(d) into $(vPathQvd)\$(d).QVD;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; store $(d) into $(d).QVD;&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// To find out the how long the script took&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vScriptDuration = interval(now() - $(vScriptStartTime),'mm:ss');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Allow a graceful exit&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;exit Script;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I comment out the whole store part, it doesn't say script failed but then it obviously hasn't stored it, which makes me think it is a permissions problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help / advice would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245801#M624756</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2017-01-13T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'Script failed' but doesn't seem to be</title>
      <link>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245802#M624757</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;Could you share .qvw or part of it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to check is $(d) is not Null. .. Check&amp;nbsp; what TableName(i) carries . You may use TRACE command to know it values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245802#M624757</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-13T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'Script failed' but doesn't seem to be</title>
      <link>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245803#M624758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is working for me. It saves each table into separate qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vPathQvd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'D:\Girirajsinh';&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Directory&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[$(vPathQvd)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DisConnect&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfTables&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() - 1&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;d&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TableName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;i&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;store&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(d)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(d)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;.QVD;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;next&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//LET vScriptDuration = interval(now() - $(vScriptStartTime),'mm:ss');&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;exit&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Script&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2017 18:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245803#M624758</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-14T18:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: 'Script failed' but doesn't seem to be</title>
      <link>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245804#M624759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Hi James,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN style="color: #222222;"&gt;In my past experience, I have run across some similar issues as yours regarding tasks failing if a STORE to QVD is invoked in the load script., especially if the STORE command&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #fef49b;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #222222;"&gt;and is called near the end of the load script. Something you may want to try would be to create a temporary auto&lt;/SPAN&gt;&lt;SPAN style="color: #222222;"&gt;-generated table immediately after the STORE&lt;/SPAN&gt;&lt;SPAN class="feedSearchHighlight" style="background-color: #fef49b;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #222222;"&gt;command as the OS needs time to process file operations associated with the STORE&lt;/SPAN&gt;&lt;SPAN style="color: #222222;"&gt; command before moving on with the load script. An additional troubleshooting step you may implement would be to auto&lt;/SPAN&gt;&lt;SPAN style="color: #222222;"&gt;-generate a temporary table after the STORE&lt;/SPAN&gt;&lt;SPAN style="color: #222222;"&gt; command. This should allow enough time for the file operations to compete.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;You could have the QVW developer include something similar to the below after the STORE command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Load RecNo( ) as A, rand( ) as B autogenerate(100000);(Note: The parenthesis after autogenerate is allowed but not required.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 11.36px;"&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;-Chip&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 04:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-failed-but-doesn-t-seem-to-be/m-p/1245804#M624759</guid>
      <dc:creator>Chip_Matejowsky</dc:creator>
      <dc:date>2017-01-15T04:11:50Z</dc:date>
    </item>
  </channel>
</rss>

