soubhikbarari / svmkR

R package for "full-stack" survey research with SurveyMonkey.
http://soubhikbarari.com/svmkR/
Other
5 stars 4 forks source link

Parse Survey Issue #29

Open libbyseline opened 4 months ago

libbyseline commented 4 months ago

Hello! I am trying to grab my survey object like so

fetch_survey_obj(surveyid) %>%
  parse_survey()

But when I do such I get this error:

You have 494 requests left today before you hit the limit
+ Parsing questions πŸ“‹
=======Getting responses 🎣
You have 493 requests left today before you hit the limit
Time difference of 0.852349 secs
Parsing responses ⛏
  |                                                  | 0 % ~calculating  
Error in surv_obj$answers[[answer$row_id]] : 
  attempt to select less than one element in get1index

To my understanding, this is a package issue but please let me know if I am misunderstanding the documentation somehow.

oiles commented 4 months ago

I am receiving the same error. Is there a fix for this?

soubhikbarari commented 4 months ago

@libbyseline and @oiles , thanks for reporting. Unfortunately this package is no longer being actively maintained as I am no longer involved with SurveyMonkey. There was, however, a recent patch issued which might be related / solve this bug - the details of which you can see here. You can try to pull the most recent version and see if the issue has been resolved.

oiles commented 4 months ago

@soubhikbarari thanks! I did pull the most recent version and still get the error. I have gotten it for matrix and menu question types, and looks like it occurs when there are answers with NULL row_ids. @felippelazar if you have ideas for the fix, would be welcome! I unfortunately can't share the survey I am working with.

felippelazar commented 4 months ago

@oiles I can’t get how an answer you have a NULL row-id. Can you provide an example? Not necessarily in code.