Method .qx_list does not export all questionnaires and versions

Hello!

I have an ongoing survey where I use susoapi to automatically export the data from the server with the following Stata commands:

clear all

global server = “XXX“

global apiUserUsername = “XXX“

global apiUserPassword = “XXX“

image

capture frame drop questionnaires
.sv.qx_list, frame(questionnaires)

As as result, I get the code 200 which means that the client sucessfully accessed the server and I can see the list of the questionnaires and their different versions.

However, I noticed that the four latest questionnaires-versions which were imported to the server are missing in the dataset in the memory (questionnaires list). Specifically, I have only 40 observations in the dataset whereas I was expecting 44. I tried different API users credentials but the result did not change. Is there any reason why this might be limited to 40 observations (questionnaires-versions)? I suspect an issue with the .qx_list method.

Any thoughts to sort this out?

Thank you in advance!

Please update and retry:

  ado update susoapi

Then execute the suggested update command when offered.

Let me know if the updated version (should introduce itself as v1.54) retrieves all questionnaire items or if you still have a problem.

Best, Sergiy Radyakin

I tried to reinstall the package with the command:

ssc install susoapi, replace

and run the update as recommended above but I now have only v1.40. The package was installed from Index of /repec/bocode/s which doesn’t seem to be the right website to install the package from (at least the latest versions). So, I’ve downloaded the code from the Github and installed the package from the directory on my computer. As you can see in the screenshot below, it worked. I have v1.54 and all my questionnaire items.

Thank you so much!

Great!
Thank you very much for reporting the issue and confirming the fix has worked!
I’ll post the current GitHub version as an update to the SSC soon.

All the best with the survey!