<?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: Reloading data as cross table - script failure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304409#M824638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing I saw is that in the cross table you have a 10 in the config (first line) and you only have 6 fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2017 08:44:18 GMT</pubDate>
    <dc:creator>jmvilaplanap</dc:creator>
    <dc:date>2017-07-14T08:44:18Z</dc:date>
    <item>
      <title>Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304405#M824634</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'm getting the 'Execution of script failed' message (but no explanation why).&lt;/P&gt;&lt;P&gt;It's happened since I added in a section to reload the same datasource, but as a cross table.&lt;/P&gt;&lt;P&gt;Is anyone able to see where I'm going wrong? I don't &lt;STRONG&gt;think&lt;/STRONG&gt; I have any loops in there...&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14999568373815460" jivemacro_uid="_14999568373815460" modifiedtitle="true"&gt;
&lt;P&gt;TABLE_DATA:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vProgress1)' as Progress_point,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Long_map',Type) as Type_long,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set as Initial_Set,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;
&lt;P&gt;[..\Data received\$(vProgress1)\$(vFilename1).xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is [Data template]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;temp1:&lt;/P&gt;
&lt;P&gt;CrossTable(Cat, Outcome, 10)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt; '$(vProgress1)' as Progress_point,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Long_map',Type) as Type_long,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set as Initial_Set,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expected&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[..\Data received\$(vProgress1)\$(vFilename1).xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is [Data template]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (TABLE_DATA) LOAD *&lt;/P&gt;
&lt;P&gt;Resident temp1;&lt;/P&gt;
&lt;P&gt;Drop TABLE temp1;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (TABLE_DATA) LOAD *&lt;/P&gt;
&lt;P&gt;Resident temp1;&lt;/P&gt;
&lt;P&gt;Drop TABLE temp1;&lt;/P&gt;
&lt;P&gt;LE temp1;LE&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It it helps, what I wanted from the original 'TABLE_DATA' is to keep 'Current' and 'Expected' as they are. But then also add two new fields, one called 'Outcome' which would hold the values of Current and Expected, and and another called 'Cat' which would tell me whether the Outcome was from the Current or Expected field.&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/Reloading-data-as-cross-table-script-failure/m-p/1304405#M824634</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304406#M824635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you just run these two? Picked from the script above. Include your Mapping load too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_DATA: &lt;/P&gt;&lt;P&gt;LOAD '$(vProgress1)' as Progress_point,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Long_map',Type) as Type_long,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set as Initial_Set,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expected&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM [..\Data received\$(vProgress1)\$(vFilename1).xlsx] (ooxml, embedded labels, table is [Data template]); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp1: &lt;/P&gt;&lt;P&gt;CrossTable(Cat, Outcome, 10) &lt;/P&gt;&lt;P&gt;LOAD '$(vProgress1)' as Progress_point,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Long_map',Type) as Type_long,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set as Initial_Set,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expected &lt;/P&gt;&lt;P&gt;FROM [..\Data received\$(vProgress1)\$(vFilename1).xlsx] (ooxml, embedded labels, table is [Data template]); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304406#M824635</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-07-13T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304407#M824636</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; font-size: 13px;"&gt;I'm getting the 'Execution of script failed' message (but no explanation why).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 06:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304407#M824636</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-07-14T06:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304408#M824637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you are using a reseved word "SET" in the data fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 08:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304408#M824637</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-14T08:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304409#M824638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing I saw is that in the cross table you have a 10 in the config (first line) and you only have 6 fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 08:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304409#M824638</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-14T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304410#M824639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original file itself has 10 fields, so that wouldn't be an issue. And the word 'Set' in a data field also shouldn't matter... &lt;/P&gt;&lt;P&gt;But thanks for the suggestions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304410#M824639</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-07-14T11:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304411#M824640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the file is used by another program, I had problems with this, but trying to save a QVD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304411#M824640</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-14T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304412#M824641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are loading the same data set twice one where you crosstable and one where you don't? what's the use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304412#M824641</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-14T12:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304413#M824642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, not being used anywhere else!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304413#M824642</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-07-14T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304414#M824643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, same data set being loaded twice. &lt;/P&gt;&lt;P&gt;The reason is,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; what I wanted from the original 'TABLE_DATA' is to keep 'Current' and 'Expected' as they are (i.e. two distinct fields). &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;But then I also want to add two new fields, one called 'Outcome' which would hold the values of Current and Expected, and and another called 'Cat' which would tell me whether the Outcome was from the Current or Expected field.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304414#M824643</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-07-14T12:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304415#M824644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do this first : Save in QVD&lt;/P&gt;&lt;P&gt;temp1: &lt;/P&gt;&lt;P&gt;CrossTable(Cat, Outcome, 10) &lt;/P&gt;&lt;P&gt;LOAD '$(vProgress1)' as Progress_point,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Long_map',Type) as Type_long,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set as Initial_Set,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expected &lt;/P&gt;&lt;P&gt;FROM [..\Data received\$(vProgress1)\$(vFilename1).xlsx] (ooxml, embedded labels, table is [Data template]); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Second: Save in QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use those QVD with the Original Table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304415#M824644</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2017-07-14T19:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304416#M824645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies Jose! You were absolutely right, it was the '10' qualifier fields that was the issue. Strange, as in a previous crosstable I refer to the full number of fields in the original datasource and it works ok (even though I don't load all of them). But in this case, changing the qualifier to '4' has fixed it! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, and apologies again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 07:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304416#M824645</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2017-07-17T07:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading data as cross table - script failure</title>
      <link>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304417#M824646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome Jessica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the cross tables I always use the wizard because I never remember the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 08:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reloading-data-as-cross-table-script-failure/m-p/1304417#M824646</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-17T08:17:00Z</dc:date>
    </item>
  </channel>
</rss>

