<?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: For Loop - Table does not exist! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771606#M717495</link>
    <description>&lt;P&gt;exactly!&lt;/P&gt;&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Set ErrorMode=1;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 09:48:51 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2021-01-04T09:48:51Z</dc:date>
    <item>
      <title>For Loop - Table does not exist!</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771539#M717492</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm trying to run this code,&amp;nbsp; but sometimes I'm getting the following error message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Compondo o grupo das empresas
SET NomeEmpresas= 'AALR3', 'ABEV3', 'AFLT3', 'AGRO3', 'AHEB3', 'AHEB5', 'ALPA3', 'ALPA4', 'ALSO3';


For each Ticker in $(NomeEmpresas)

LOAD 
	'$(Ticker)'  as STCK,
	Holder, 
     Shares, 
     [Date Reported], 
     [% Out], 
     Value
FROM
[https://finance.yahoo.com/quote/$(Ticker).SA/holders?p=$(Ticker).SA]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @2);

Next Ticker&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table not found error

Table '@2' not found

LOAD 
	'AFLT3'  as STCK,
	Holder, 
     Shares, 
     [Date Reported], 
     [% Out], 
     Value
FROM
[https://finance.yahoo.com/quote/AFLT3.SA/holders?p=AFLT3.SA]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is ***)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is absolutely correct, once there is no Table 2 (@2) available on ...AFLT3.SA website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I create a code to check if the table exists or not, and in negative cases, just move to the next Ticker!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 23:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771539#M717492</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2021-01-03T23:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop - Table does not exist!</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771541#M717493</link>
      <description>&lt;P&gt;set ErrorMode=0;&lt;BR /&gt;// Compondo o grupo das empresas&lt;BR /&gt;SET NomeEmpresas= 'AALR3', 'ABEV3', 'AFLT3', 'AGRO3', 'AHEB3', 'AHEB5', 'ALPA3', 'ALPA4', 'ALSO3';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For each Ticker in $(NomeEmpresas)&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;'$(Ticker)' as STCK,&lt;BR /&gt;Holder,&lt;BR /&gt;Shares,&lt;BR /&gt;[Date Reported],&lt;BR /&gt;[% Out],&lt;BR /&gt;Value&lt;BR /&gt;FROM&lt;BR /&gt;[&lt;A href="https://finance.yahoo.com/quote/$(Ticker).SA/holders?p=$(Ticker).SA" target="_blank"&gt;https://finance.yahoo.com/quote/$(Ticker).SA/holders?p=$(Ticker).SA&lt;/A&gt;]&lt;BR /&gt;(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @2);&lt;/P&gt;&lt;P&gt;Next Ticker&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 23:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771541#M717493</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-01-03T23:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop - Table does not exist!</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771542#M717494</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Your solution really worked very well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, considering my whole project, can I use this "Set ErrorMode=0" just for a specific part of my code, and then, set it back to 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 23:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771542#M717494</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2021-01-03T23:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop - Table does not exist!</title>
      <link>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771606#M717495</link>
      <description>&lt;P&gt;exactly!&lt;/P&gt;&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Set ErrorMode=1;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 09:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Loop-Table-does-not-exist/m-p/1771606#M717495</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-01-04T09:48:51Z</dc:date>
    </item>
  </channel>
</rss>

