Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sanal_ELM
Partner - Contributor III
Partner - Contributor III

Loading multiple tables from one html file dynamically

Hi Team,

Actual requirement is here that loading multiple tables from one HTML file. The number of tables may change from file to file(No Static).So I tried with the loop and to fetch one by one tables from the HTML file. But if the particular  tablenot found then it is throwing some error and stop the execution. " would like to read all the available tables from the file without getting the error message .I want to exclude the unavailable tables from the file".

Ex:

HTML File Name:XYZ.HTML

Table name:@1,@2,@3,@4.......

i maximum value will be 25

Do while  i<25

 Load * From [...\path\XYZ.HTML]

(html.codepage is 1252,embedded labels,table is @$(i));

//Here doing some transformation and storing to qvds.

i=i+1;

loop

Note: I am getting an error "can not the locate the table in HTML File."

 

Regards,

Sanal

 

 

 

 

 

Labels (3)
1 Solution

Accepted Solutions
Gysbert_Wassenaar

Put this line at the start of the script: set ErrorMode=0;

It will ignore errors and keep executing the script;


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Put this line at the start of the script: set ErrorMode=0;

It will ignore errors and keep executing the script;


talk is cheap, supply exceeds demand
Brett_Bleess
Former Employee
Former Employee

The following may help as well, not certain:

https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.