title: Fetching data from OECD into R via SDMX(XML)
body: <p>I want to extract data from the <a href="https://stats.oecd.org/" rel="nofollow noreferrer">OECD</a> website particularily the dataset "REGION_ECONOM" with the dimensions "GDP" (GDP of the respective regions) and "POP_AVG" (the average population of the respective region).</p>
  
  <p>This is the first time I am doing this: 
  I picked all the required dimensions on the OECD website and copied the SDMX (XML) link. </p>
  
  <p>I tried to load them into R and convert them to a data frame with the following code:
  (in the link I replaced the list of all regions with "ALL" as otherwise the link would have been six pages long)</p>
  
  <pre><code>if (!require(rsdmx)) install.packages('rsdmx') + library(rsdmx)
  
      url2 &lt;- "https://stats.oecd.org/restsdmx/sdmx.ashx/GetData/REGION_ECONOM/1+2.ALL.SNA_2008.GDP+POP_AVG.REAL_PPP.ALL.1990+1991+1992+1993+1994+1995+1996+1997+1998+1999+2000+2001+2002+2003+2004+2005+2006+2007+2008+2009+2010+2011+2012+2013+2014+2015+2016+2017+2018/all?"
      sdmx2 &lt;- readSDMX(url2)
      stats2 &lt;- as.data.frame(sdmx2)
      head(stats2)
  </code></pre>
  
  <p>Unfortunately, this returns a "400 Bad request" error.</p>
  
  <p>When just selecting a couple of regions the error does not appear:</p>
  
  <pre><code>if (!require(rsdmx)) install.packages('rsdmx') + library(rsdmx)
  
      url1 &lt;- "https://stats.oecd.org/restsdmx/sdmx.ashx/GetData/REGION_ECONOM/1+2.AUS+AU1+AU101+AU103+AU104+AU105.SNA_2008.GDP+POP_AVG.REAL_PPP.ALL.1990+1991+1992+1993+1994+1995+1996+1997+1998+1999+2000+2001+2002+2003+2004+2005+2006+2007+2008+2009+2010+2011+2012+2013+2014+2015+2016+2017+2018/all?"
      sdmx1 &lt;- readSDMX(url1)
      stats1 &lt;- as.data.frame(sdmx1)
      head(stats1)
  </code></pre>
  
  <p>I also tried to use the "OECD" package to get the data. There I had the same problem. ("400 Bad Request")</p>
  
  <pre><code>if (!require(OECD)) install.packages('OECD') + library(OECD)
  
  df1&lt;-get_dataset("REGION_ECONOM", filter = "GDP+POP_AVG", 
               start_time = 2008, end_time = 2009, pre_formatted = TRUE) 
  </code></pre>
  
  <p>However, when I use the package for other data sets it does work:</p>
  
  <pre><code>df &lt;- get_dataset("FTPTC_D", filter = "FRA+USA", pre_formatted = TRUE)
  </code></pre>
  
  <p>Does anyone know where my mistake could lie?</p>