Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen_val (and others?) does not find all codes #19

Open
dakilian opened this issue Aug 4, 2023 · 1 comment
Open

gen_val (and others?) does not find all codes #19

dakilian opened this issue Aug 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dakilian
Copy link

dakilian commented Aug 4, 2023

In a query with gen_val2var(), some codes are missing or the error message "No object found for your request" is displayed, although values are available (I have observed this for the variables WAM8 and WAM 4. ). For example: gen_val2var("WAM8", selection = "WA22082018") returns an error, and gen_val2var("WAM8", selection = "WA2208201*") returns only two entries, although five are available (This is also the case for some other codes, e.g. "WA22082016", "WA22082018", "WA22082019", "WA22082028", "WA22082066", "WA22082069", "WA22082088", "WA05080010", "WA05080090", "WA19019095", "WA04032011", "WA04032013", "WA04032019", "WA04032031", ...).
The query works when "area = "all" is added., e.g. gen_val2var("WAM8", selection = "WA22082018", area = "all").
I did not find a default value for area in the API documentation of DESTATIS. However, in the sample queries in the API documentation, the paramerter parameter "area=all" is always included. To fix the issue, it might make sense to implement the parameter "area=all" as a default value in the functions.

@KovaZo
Copy link
Collaborator

KovaZo commented Jan 8, 2024

Hi @dakilian,

Thank you for pinpointing this male behavior. We will fix the issue in the new release of the package.
For now, the easiest solution is - as you mentioned - to specify the "area"-parameter.

Best,
Zoran

@yannikbuhl yannikbuhl added the bug Something isn't working label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants