Hi All,
I'm currently running Stata 18.5 and am using the qualtricsload command from SSC (posted by Nicholas Winter 3/4/19). This command is incredibly helpful and I have been able to successfully download survey responses from Qualtrics using the API documentation in the help file.
My issue is that I am trying to download survey responses from multiple surveys, and then later aggregate them into a single file. However, every single time I have tried to run the commands, Stata is able to download and save responses to two surveys fine, but then freezes and locks up when attempting the third. I've never actually gotten an error message; Stata simply becomes unresponsive after the second survey, and remains unresponsive even after letting it sit for several hours.
Here's the code I am running:
Here's a brief summary of the first 4 surveys, none of which have complicated flows or display logic:
Survey 1: 17 questions, 429 total responses
Survey 2: 17 questions, 10 total questions
Survey 3: 21 questions, 67 total responses
Survey 4: 8 questions, 24 total responses
I have been able to successfully run commands for all 4 surveys individually (i.e., I can run the first 2 qualtricsload lines, have Stata lock up, force quit, reopen Stata, run the last 2 qualtricsload lines), so the code appears to be working fine. I checked Qualtrics, and I am not close to the API call limits, so I don't think that's the issue. I have also tried adding code to pause for 60 seconds between each qualtricsload command, which did successfully pause after downloading responses for the first two surveys, but did not help with the download issue. Finally, I have also tried saving the qualtricsload commands in separate do files (each ending with exit, clear) and then calling them from a master do file, but the outcome is still the same.
Ultimately, I have between 25-30 surveys I'd like to download, and so having the program lock up after the second is making this process take a lot longer. Has anyone else experienced this or have suggestions for troubleshooting?
Thank you!
Ally Williams
I'm currently running Stata 18.5 and am using the qualtricsload command from SSC (posted by Nicholas Winter 3/4/19). This command is incredibly helpful and I have been able to successfully download survey responses from Qualtrics using the API documentation in the help file.
My issue is that I am trying to download survey responses from multiple surveys, and then later aggregate them into a single file. However, every single time I have tried to run the commands, Stata is able to download and save responses to two surveys fine, but then freezes and locks up when attempting the third. I've never actually gotten an error message; Stata simply becomes unresponsive after the second survey, and remains unresponsive even after letting it sit for several hours.
Here's the code I am running:
Code:
cd "[file path for working directory]" qualtricsload SURVEYID1, apitoken(APITOKEN) datacenterid(DATACENTERID), format(csv) saving(FILENAME1,replace) qualtricsload SURVEYID2, apitoken(APITOKEN) datacenterid(DATACENTERID), format(csv) saving(FILENAME2,replace) qualtricsload SURVEYID3, apitoken(APITOKEN) datacenterid(DATACENTERID), format(csv) saving(FILENAME3,replace) qualtricsload SURVEYID4, apitoken(APITOKEN) datacenterid(DATACENTERID), format(csv) saving(FILENAME4,replace)
Survey 1: 17 questions, 429 total responses
Survey 2: 17 questions, 10 total questions
Survey 3: 21 questions, 67 total responses
Survey 4: 8 questions, 24 total responses
I have been able to successfully run commands for all 4 surveys individually (i.e., I can run the first 2 qualtricsload lines, have Stata lock up, force quit, reopen Stata, run the last 2 qualtricsload lines), so the code appears to be working fine. I checked Qualtrics, and I am not close to the API call limits, so I don't think that's the issue. I have also tried adding code to pause for 60 seconds between each qualtricsload command, which did successfully pause after downloading responses for the first two surveys, but did not help with the download issue. Finally, I have also tried saving the qualtricsload commands in separate do files (each ending with exit, clear) and then calling them from a master do file, but the outcome is still the same.
Ultimately, I have between 25-30 surveys I'd like to download, and so having the program lock up after the second is making this process take a lot longer. Has anyone else experienced this or have suggestions for troubleshooting?
Thank you!
Ally Williams
Comment