UseMethod("xmlAttrs", node) object class "NULL" | EUROSTAT web-service data size limit
schipfer opened this issue · 3 comments
Dear rsdmx team
I did use your package regularly in the last years, but now it generates an error. The decisive part is as follows:
dataURL[1]
[1] "http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/DS-016893/M.AT..440131.1.QUANTITY_IN_100KG?startperiod=2012"
sdmx <- readSDMX(dataURL[1])
Fehler in UseMethod("xmlAttrs", node) :
nicht anwendbare Methode für 'xmlAttrs' auf Objekt der Klasse "NULL" angewendet
I am running the lines in RStudio v 1.2.5019 and R version 3.6.1 (64bit) on my Windows 10 Pro machine.
Can you help me? This used to work like a charme, but my knowledge on the xml and the algorithms behind this method is NULL, so I cannot apply the iinfo I get from similar problems on the web.
@schipfer It seems EUROSTAT changed its data download policy, depending on the size of the file you are requesting, you are requested to download data elsewhere than with the web-service.
If you download the SDMX-ML file, you will get something like Due to the large query the response will be written to a file which will be located under URL: ....
You will have to download manually the data at the URL they indicate, and then read the SDMX file locally, specifying isURL = FALSE
when calling readSDMX
.
If you can, liaise with Eurostat data support to know more about this web-service limitation.
@eblondel Thank you very much for your quick response!
The issue was exactly the size, which exceeds the limits now with the fresh data since >February (when I did run the code the last time successfully).
Some extra lines in my loop, slicing the time steps will do.
Thanks again for your help and this great time saving package!
you're welcome, feel free to come back here in case you need further support