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“
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.
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.
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.