<?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 Problem with LOAD statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176714#M713997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I have wrote my script:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Libelle:&lt;BR /&gt;LOAD Réf.,&lt;BR /&gt; ACTIF&lt;BR /&gt;FROM&lt;BR /&gt;Datasources\DSF01.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Feuil1);&lt;/P&gt;&lt;P&gt;/*****************/&lt;/P&gt;&lt;P&gt;&lt;B&gt;Chiffre:&lt;BR /&gt;LOAD BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST,&lt;BR /&gt; NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST;&lt;BR /&gt;&lt;BR /&gt; SQL SELECT distinct NULL BRUTTEST, NULL AMOR_PROVTEST, NULL NETTEST, NULL NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN egt&lt;BR /&gt;&lt;BR /&gt;WHERE egt.cdos = '01'&lt;BR /&gt;&lt;BR /&gt;UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(egi.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN egi&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN DELTAERP.COMECR ei ON (ei.cdos = egi.cdos) AND (egi.numsai = ei.numsai)&lt;BR /&gt;&lt;BR /&gt;WHERE egi.cdos = '01' AND ((egi.numcpt LIKE '201%') OR (egi.numcpt LIKE '202%') OR (egi.numcpt LIKE '206%'))&lt;BR /&gt;&lt;BR /&gt;UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(eg.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN eg&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN DELTAERP.COMECR e ON e.cdos = eg.cdos AND eg.numsai = e.numsai&lt;BR /&gt;&lt;BR /&gt;WHERE (eg.cdos = '01') AND (eg.numcpt LIKE '201%')&lt;BR /&gt;&lt;BR /&gt; UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(eg1.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN eg1&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN DELTAERP.COMECR e1 ON e1.cdos = eg1.cdos AND eg1.numsai = e1.numsai&lt;BR /&gt;&lt;BR /&gt;WHERE eg1.cdos = '01' AND eg1.numcpt LIKE '202%'&lt;BR /&gt;&lt;BR /&gt; UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(eg2.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN eg2&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN DELTAERP.COMECR e2 ON e2.cdos = eg2.cdos AND eg2.numsai = e2.numsai&lt;BR /&gt;&lt;BR /&gt;WHERE eg2.cdos = '01' AND eg2.numcpt LIKE '206%';&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;/*****************/&lt;/P&gt;&lt;P&gt;&lt;B&gt;Libelle_Chiffre:&lt;BR /&gt;LOAD Réf. AS Réf.,&lt;BR /&gt; ACTIF AS ACTIF&lt;BR /&gt;FROM Libelle;&lt;BR /&gt;JOIN&lt;BR /&gt; LOAD BRUTTEST AS BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST AS AMOR_PROVTEST,&lt;BR /&gt; NETTEST AS NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST AS NET_MOINS_UNTEST&lt;BR /&gt;FROM Chiffre;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;When i launche the reloading, the first two LOAD statement execute well.&lt;/P&gt;&lt;P&gt;At the moment, to run the third LOAD statement, the following error message appears.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Impossible d'ouvrir le fichier'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Libelle'&lt;BR /&gt;Libelle_Chiffre:&lt;BR /&gt;LOAD Réf. AS Réf.,&lt;BR /&gt; ACTIF AS ACTIF&lt;BR /&gt;FROM Libelle&lt;/P&gt;&lt;P&gt;&lt;B&gt;Unable to open the file&lt;/B&gt; &lt;B&gt;'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Libelle'&lt;BR /&gt;Libelle_Chiffre:&lt;BR /&gt;LOAD Réf. AS Réf.,&lt;BR /&gt; ACTIF AS ACTIF&lt;BR /&gt;FROM Libelle&lt;/B&gt;&lt;/P&gt;&lt;P&gt;When i press the OK button of the Dialog box of error message&lt;/P&gt;&lt;P&gt;The following second message appears:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Impossible d'ouvrir le fichier'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Chiffre'&lt;BR /&gt;JOIN&lt;BR /&gt; LOAD BRUTTEST AS BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST AS AMOR_PROVTEST,&lt;BR /&gt; NETTEST AS NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST AS NET_MOINS_UNTEST&lt;BR /&gt;FROM Chiffre&lt;/P&gt;&lt;P&gt;&lt;B&gt;Unable to open file&lt;/B&gt; &lt;B&gt;'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Chiffre'&lt;BR /&gt;JOIN&lt;BR /&gt; LOAD BRUTTEST AS BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST AS AMOR_PROVTEST,&lt;BR /&gt; NETTEST AS NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST AS NET_MOINS_UNTEST&lt;BR /&gt;FROM Chiffre&lt;/B&gt;&lt;/P&gt;&lt;P&gt;But after running the first two LOAD Statement, the tables called 'Libelle' and 'Chiffre' are already created.&lt;/P&gt;&lt;P&gt;Please i want an help. it's so urgent.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 16:37:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-26T16:37:46Z</dc:date>
    <item>
      <title>Problem with LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176714#M713997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I have wrote my script:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Libelle:&lt;BR /&gt;LOAD Réf.,&lt;BR /&gt; ACTIF&lt;BR /&gt;FROM&lt;BR /&gt;Datasources\DSF01.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Feuil1);&lt;/P&gt;&lt;P&gt;/*****************/&lt;/P&gt;&lt;P&gt;&lt;B&gt;Chiffre:&lt;BR /&gt;LOAD BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST,&lt;BR /&gt; NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST;&lt;BR /&gt;&lt;BR /&gt; SQL SELECT distinct NULL BRUTTEST, NULL AMOR_PROVTEST, NULL NETTEST, NULL NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN egt&lt;BR /&gt;&lt;BR /&gt;WHERE egt.cdos = '01'&lt;BR /&gt;&lt;BR /&gt;UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(egi.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN egi&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN DELTAERP.COMECR ei ON (ei.cdos = egi.cdos) AND (egi.numsai = ei.numsai)&lt;BR /&gt;&lt;BR /&gt;WHERE egi.cdos = '01' AND ((egi.numcpt LIKE '201%') OR (egi.numcpt LIKE '202%') OR (egi.numcpt LIKE '206%'))&lt;BR /&gt;&lt;BR /&gt;UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(eg.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN eg&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN DELTAERP.COMECR e ON e.cdos = eg.cdos AND eg.numsai = e.numsai&lt;BR /&gt;&lt;BR /&gt;WHERE (eg.cdos = '01') AND (eg.numcpt LIKE '201%')&lt;BR /&gt;&lt;BR /&gt; UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(eg1.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN eg1&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN DELTAERP.COMECR e1 ON e1.cdos = eg1.cdos AND eg1.numsai = e1.numsai&lt;BR /&gt;&lt;BR /&gt;WHERE eg1.cdos = '01' AND eg1.numcpt LIKE '202%'&lt;BR /&gt;&lt;BR /&gt; UNION ALL&lt;BR /&gt;&lt;BR /&gt;SELECT nvl(SUM(eg2.cpt_mtdb),0) BRUTTEST, NULL AMOR_PROVTEST, 0 NETTEST, 0 NET_MOINS_UNTEST&lt;BR /&gt;&lt;BR /&gt;FROM DELTAERP.COMECRGEN eg2&lt;BR /&gt;&lt;BR /&gt; LEFT JOIN DELTAERP.COMECR e2 ON e2.cdos = eg2.cdos AND eg2.numsai = e2.numsai&lt;BR /&gt;&lt;BR /&gt;WHERE eg2.cdos = '01' AND eg2.numcpt LIKE '206%';&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;/*****************/&lt;/P&gt;&lt;P&gt;&lt;B&gt;Libelle_Chiffre:&lt;BR /&gt;LOAD Réf. AS Réf.,&lt;BR /&gt; ACTIF AS ACTIF&lt;BR /&gt;FROM Libelle;&lt;BR /&gt;JOIN&lt;BR /&gt; LOAD BRUTTEST AS BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST AS AMOR_PROVTEST,&lt;BR /&gt; NETTEST AS NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST AS NET_MOINS_UNTEST&lt;BR /&gt;FROM Chiffre;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;When i launche the reloading, the first two LOAD statement execute well.&lt;/P&gt;&lt;P&gt;At the moment, to run the third LOAD statement, the following error message appears.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Impossible d'ouvrir le fichier'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Libelle'&lt;BR /&gt;Libelle_Chiffre:&lt;BR /&gt;LOAD Réf. AS Réf.,&lt;BR /&gt; ACTIF AS ACTIF&lt;BR /&gt;FROM Libelle&lt;/P&gt;&lt;P&gt;&lt;B&gt;Unable to open the file&lt;/B&gt; &lt;B&gt;'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Libelle'&lt;BR /&gt;Libelle_Chiffre:&lt;BR /&gt;LOAD Réf. AS Réf.,&lt;BR /&gt; ACTIF AS ACTIF&lt;BR /&gt;FROM Libelle&lt;/B&gt;&lt;/P&gt;&lt;P&gt;When i press the OK button of the Dialog box of error message&lt;/P&gt;&lt;P&gt;The following second message appears:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Impossible d'ouvrir le fichier'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Chiffre'&lt;BR /&gt;JOIN&lt;BR /&gt; LOAD BRUTTEST AS BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST AS AMOR_PROVTEST,&lt;BR /&gt; NETTEST AS NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST AS NET_MOINS_UNTEST&lt;BR /&gt;FROM Chiffre&lt;/P&gt;&lt;P&gt;&lt;B&gt;Unable to open file&lt;/B&gt; &lt;B&gt;'I:\CAMEROUN DELTA INFORMATIQUE\Projet BGFI\Chiffre'&lt;BR /&gt;JOIN&lt;BR /&gt; LOAD BRUTTEST AS BRUTTEST,&lt;BR /&gt; AMOR_PROVTEST AS AMOR_PROVTEST,&lt;BR /&gt; NETTEST AS NETTEST,&lt;BR /&gt; NET_MOINS_UNTEST AS NET_MOINS_UNTEST&lt;BR /&gt;FROM Chiffre&lt;/B&gt;&lt;/P&gt;&lt;P&gt;But after running the first two LOAD Statement, the tables called 'Libelle' and 'Chiffre' are already created.&lt;/P&gt;&lt;P&gt;Please i want an help. it's so urgent.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 16:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176714#M713997</guid>
      <dc:creator />
      <dc:date>2010-08-26T16:37:46Z</dc:date>
    </item>
    <item>
      <title>Problem with LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176715#M713999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yimen,&lt;/P&gt;&lt;P&gt;When you load from an already existing table, you need to use RESIDENT keyword instead of FROM, to get something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;JOINLOAD BRUTTEST ... &lt;B&gt;RESIDENT Chiffre;&lt;/B&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 17:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176715#M713999</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-08-26T17:33:07Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Problem with LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176716#M714000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, when i use the key word RESIDENT, there is no errors but the Result Table is not created. Because when i want to map Objet Table to this table, it not appears in the list of residents tables&lt;/P&gt;&lt;P&gt;What must i do??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 17:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176716#M714000</guid>
      <dc:creator />
      <dc:date>2010-08-26T17:39:55Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Problem with LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176717#M714001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, i remark that, JOIN and RESIDENT do the combination of element, and then the CONCATENATE add the records of the second table at the end of first table.&lt;/P&gt;&lt;P&gt;But i want to join end to end the tables TAB1 and TAB2 with theirs data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 17:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176717#M714001</guid>
      <dc:creator />
      <dc:date>2010-08-26T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Problem with LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176718#M714002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course it depends on your data model and what do you want to achieve. Take into account the following&lt;/P&gt;&lt;P&gt;1.- When you create a new table using tables that already exist, you may probably rename the fields of the new table, as it can result on joins or synthetic keys your probably don't need&lt;/P&gt;&lt;P&gt;2.- You can use the JOIN statement instead of the RESIDENT as in my sample above, just remember that JOINing in QlikView requires that both tables share one field (same fieldname in both tables)&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;EDIT: The error message that says that Chiffre table does not exist doesn't mean actually a table, but a file, because you don't have stored your tables into files, you you have to retrieve information from them using the RESIDENT clause. With that, you will avoid the error you are getting.&lt;/P&gt;&lt;P&gt;On the other hand, if the new table consist of the same fields with same names that any of the already loaded tables, you should use NOCONCATENATE keyword before the LOAD, as QlikView implicitly concatenates two tables when they are loaded one just after the other and contain the same number of fields and those are named alike.&lt;/P&gt;&lt;P&gt;I see that you are joining two tables. You need to one field to be renamed equally in both tables. Apart from that, you don't need to rename fields if the right part of the AS clause is identical to the left part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 21:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-LOAD-statement/m-p/176718#M714002</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-08-26T21:12:28Z</dc:date>
    </item>
  </channel>
</rss>

