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

Schools CCD Directory filter not working some years #87

Open
jakedwinfield opened this issue Jun 9, 2021 · 1 comment
Open

Schools CCD Directory filter not working some years #87

jakedwinfield opened this issue Jun 9, 2021 · 1 comment

Comments

@jakedwinfield
Copy link

When running get_education_data for ccd data at the school level, I can't get the filter to run for 2017 or 2018, but it will work for other years (like 2015)

This code runs:
df <- get_education_data(level = 'schools',
source = 'ccd',
topic = 'directory',
filters = list(year = 2015))

This code returns an error:
df<- get_education_data(level = 'schools',
source = 'ccd',
topic = 'directory',
filters = list(year = 2017))

Error Message:
Error: Query page not found.
Please double-check your arguments (especially filters).
Consider filing an issue with the development team if this issue persists

@khueyama
Copy link
Contributor

khueyama commented Jun 9, 2021

@jakedwinfield sorry that you are having issues accessing the API data. We're trying to track down the root cause, which is a bit tricky since it seems to occur somewhat at random. If you are trying to pull all the ccd directory data, you can try using the csv option, which should be faster and not run into the same issues:

df<- get_education_data(level = 'schools',
                        source = 'ccd',
                        topic = 'directory',
                        csv = TRUE)

Hope this helps in the interim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants