mattroumaya / surveymonkey

Access your SurveyMonkey data directly from R!
https://mattroumaya.github.io/surveymonkey/
Other
42 stars 10 forks source link

Error with parse_survey id = 152868972 #38

Closed dpashouwer closed 5 years ago

dpashouwer commented 5 years ago

Old survey from 2018 that I'm trying to access. Keep running into the error: "Error: Argument 2 must be length 1, not 0"

image

sfirke commented 5 years ago

It was caused by this, the presence of an empty tag_data answer. I isolated a case on recipient 1, page 4, question 2, answer 1. image

I'm unfamiliar with "tag_data" and it isn't mentioned in the API documentation. But it appears SM now has tagging of open-response items so this may be related to that. I don't know if we'd want to try to pull the tag info in, and how we'd do that; for now I'd just say let's not engage with that.

sfirke commented 5 years ago

I tried to stay minimal in addressing this, by dropping the zero-length tag_data above. Now I can fetch the survey ID that was failing, so I'm closing this.

Not sure what would happen if there was data in the tag_data sublist. Do you know if tagging was used for this survey?

sfirke commented 4 years ago

Survey id 188182243 has actual tag_data, which caused breakage. I am now intentionally dropping the tag data for now. Specifically it's on page 4, Q5 of that survey.