Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

export_responses is not returning all the fields/questions in result

  • ahtasham82
  • ahtasham82's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #209934 by ahtasham82
Hi Guys,

I am having a strange problem. I am creating survey via the API. Now I want to get the responses and analyse them. For that I am calling the following function.

$responses = $myJSONRPCClient->export_responses($sessionKey, $iSurveyId, 'json', 'de', 'all', 'code', 'short', null, null, null);
$decoded_responses = base64_decode($responses);
$aResponses = json_decode($decoded_responses, true);


The problem is that I dont get all the questions in response. For example if I have

Group1 => Question1, Question2, Question 3
Group2 => Question4, Question5


Then by calling the export_response function I get responses like this...

Group1 => Question1, Question2, Question 3
Group2 => Question5

so the Question4 is just missing. I have checked the Database of Limesurvey, the table for the survey is there and the field for each question is there, the answers given by the users for each question are there.

But the export_response call does not return all the questions.

Any Idea, why??
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209937 by tpartner
What LimeSurvey version?

What question types?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose