<?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 Load Script Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185458#M49936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;Thanks for oyur reply. There's no problem for the app to find the *.xls file. This has worked in the past from the server. I think it has something to do with me using REPLACE LOAD on the same data twice.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2010 13:22:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-02T13:22:53Z</dc:date>
    <item>
      <title>Load Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185456#M49934</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 have written a script that works on a stand-alone unit but it doesn't work on a Qlikview server (see script below). I get a ErrorCount = 3 which means there's something wrong with the script.&lt;/P&gt;&lt;P&gt;The function of the application is that a buyer can enter a status for a Purchase Order. The user selects a purchase order in a Qlikview Table and enters the status. The status is saved to an SQL database. The status i updated on the Qlikview app using partial reload via EDX call.&lt;/P&gt;&lt;P&gt;The first LOAD returns the &lt;B&gt;status&lt;/B&gt; and the &lt;B&gt;timestamp&lt;/B&gt; when it was entered from an SQL database.&lt;/P&gt;&lt;P&gt;The second LOAD sorts the status (to get the latest entered status) and only fetches status entered during the current week.&lt;/P&gt;&lt;P&gt;The third LOAD uploads the purchase order data from a text file.&lt;/P&gt;&lt;P&gt;The purchase order data is the joined with the &lt;B&gt;status&lt;/B&gt; from the SQL database.&lt;/P&gt;&lt;P&gt;The fourth LOAD reloads the joined purchase order table and and sets the status to "Open" if the purchase order doesn't have a entered status in the SQL database&lt;/P&gt;&lt;P&gt;Can someone see what's wrong? Something to do with the REPLACE LOAD?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;tmp_sqlPO_1:&lt;BR /&gt;CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=True;User ID=qlikview;Initial Catalog=qlikview;Data Source=OER1EUWEBW01;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=OER1EUNB136926;Use Encryption for Data=False;Tag with column collation when possible=False] (XPassword is WeVWYAJMDLMETZQK);&lt;BR /&gt;REPLACE LOAD po_key,&lt;BR /&gt; "d_timestamp" as POtimestamp,&lt;BR /&gt; status as tmp_POstatus;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM qlikview.dbo."purchase_comment";&lt;BR /&gt;&lt;BR /&gt;tmp_sqlPO:&lt;BR /&gt;REPLACE LOAD po_key,&lt;BR /&gt; FirstSortedValue(tmp_POstatus,-POtimestamp) as tmp_POstatus&lt;BR /&gt; resident tmp_sqlPO_1&lt;BR /&gt;where week(today())=week(POtimestamp)&lt;BR /&gt;group by po_key;&lt;BR /&gt;&lt;BR /&gt;drop table tmp_sqlPO_1;&lt;BR /&gt;&lt;BR /&gt;tmp_PO:&lt;BR /&gt;REPLACE LOAD ([PO Num] &amp;amp; [Release Line Schedule]) as po_key,&lt;BR /&gt; [Orig Action] as [PO Action],&lt;BR /&gt; [PO Num] as [PO Number],&lt;BR /&gt; [Release Line Schedule] as [PO Line],&lt;BR /&gt; [Aging Ct] as [PO Aging],&lt;BR /&gt; Buyer as [PO Buyer],&lt;BR /&gt; [Item Number] as [PO Item],&lt;BR /&gt; Description as [PO Description],&lt;BR /&gt; [Orig Qty] as [PO Qty],&lt;BR /&gt; [Buyer Cancel Qty] as [PO Cancel Qty],&lt;BR /&gt; [Current Dock Date] as [PO Promise Date],&lt;BR /&gt; [Orig Buyer Dock Date] as [PO Need Date],&lt;BR /&gt; [Supplier Name] as [PO Supplier],&lt;BR /&gt; [PO Amt (USD)] as [PO Amount],&lt;BR /&gt; RecNo() AS CounterPO&lt;BR /&gt;FROM _indata\AllAction_thisweek.xls (biff, embedded labels, table is [All Actions Detail$]);&lt;BR /&gt;&lt;BR /&gt;join load * resident tmp_sqlPO;&lt;BR /&gt;drop table tmp_sqlPO;&lt;BR /&gt;&lt;BR /&gt;PO:&lt;BR /&gt;REPLACE LOAD po_key,&lt;BR /&gt; [PO Action],&lt;BR /&gt; [PO Number],&lt;BR /&gt; [PO Line],&lt;BR /&gt; [PO Aging],&lt;BR /&gt; [PO Buyer],&lt;BR /&gt; [PO Item],&lt;BR /&gt; [PO Description],&lt;BR /&gt; [PO Qty],&lt;BR /&gt; [PO Cancel Qty],&lt;BR /&gt; [PO Promise Date],&lt;BR /&gt; [PO Need Date],&lt;BR /&gt; [PO Supplier],&lt;BR /&gt; [PO Amount],&lt;BR /&gt; if(isnull(tmp_POstatus),'Open',tmp_POstatus) as POstatus,&lt;BR /&gt; CounterPO&lt;BR /&gt;resident tmp_PO;&lt;BR /&gt;&lt;BR /&gt;drop table tmp_PO;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 11:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185456#M49934</guid>
      <dc:creator />
      <dc:date>2010-09-02T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Load Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185457#M49935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need a directory command to tell the server where to find _indata\AllAction_thisweek.xls?&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 12:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185457#M49935</guid>
      <dc:creator />
      <dc:date>2010-09-02T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Load Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185458#M49936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;Thanks for oyur reply. There's no problem for the app to find the *.xls file. This has worked in the past from the server. I think it has something to do with me using REPLACE LOAD on the same data twice.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 13:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Error/m-p/185458#M49936</guid>
      <dc:creator />
      <dc:date>2010-09-02T13:22:53Z</dc:date>
    </item>
  </channel>
</rss>

