Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rene_welte
Contributor
Contributor

extract web information

Hi, Im new in qlikview and i need extract a table since this link of the Colombian Central Bank:

(if you click on the link an excel with the data will be downloaded)
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftotoro.banrep.gov.co%2Fanalytics%2...

when i access to "web files" to extract the information for the first time it works fine, but when i close qlikview and open it again, can not extract the table again.

what is wrong?

this is the script:

SET DecimalSep=',';
SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='$#.##0;$-#.##0';
SET TimeFormat='h:mm:ss';
SET DateFormat='DD-MM-YYYY';
SET TimestampFormat='DD-MM-YYYY h:mm:ss[.fff]';
SET MonthNames='ene.;feb.;mar.;abr.;may.;jun.;jul.;ago.;sept.;oct.;nov.;dic.';
SET DayNames='lun.;mar.;mié.;jue.;vie.;sáb.;dom.';[TC_ACO]:
LOAD DATE([Fecha (dd/mm/aaaa)],'DD-MM-YYYY') as Fecha,
round([Tasa representativa del mercado - TRM],0.01) as COP_USD
FROM
[https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftotoro.banrep.gov.co%2Fanalytics%2...]
(ooxml, embedded labels, table is Sheet1, filters(
Remove(Row, Pos(Top, 55)),
Remove(Row, Pos(Top, 54)),
Remove(Row, Pos(Top, 53)),
Remove(Row, Pos(Top, 52)),
Remove(Row, Pos(Top, 51)),
Remove(Row, Pos(Top, 50)),
Remove(Row, Pos(Top, 8)),
Remove(Row, Pos(Top, 7)),
Remove(Row, Pos(Top, 6)),
Remove(Row, Pos(Top, 5)),
Remove(Row, Pos(Top, 4)),
Remove(Row, Pos(Top, 3)),
Remove(Row, Pos(Top, 2)),
Remove(Row, Pos(Top, 1)),
Remove(Col, Pos(Top, 6)),
Remove(Col, Pos(Top, 5)),
Remove(Col, Pos(Top, 4)),
Remove(Col, Pos(Top, 3))
));

Store [TC_ACO] into file.txt (txt);

Labels (5)
1 Reply
Brett_Bleess
Former Employee
Former Employee

So the first thing is you did not mention the version of QlikView you are running, I would ensure you are on the latest SR (Service Release) of the major point release you are running, check the download site to be sure you have the most current SR for the major point release you are running.  Supported major point releases at this point are 11.20, 12.20, 12.30, 12.40 and 12.50.  

The only other workaround I have would be to use an EXECUTE statement in the script editor to run a .cmd or .bat file that would pull the file local to the machine and then you can run the load script against the local file.  ROBOCOPY might potentially be another avenue as far as command to use to pull the file via the EXECUTE statement.

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/Scrip...

Sorry I do not have anything better for you, if you review the documentation for the LOAD statement and things are not working per the documentation and you are on the most current SR etc., then I would suggest you open a support case, so we can look into things further to confirm if there may be a defect in play or not.

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.