Welcome to the LimeSurvey Community Forum

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

Ghost question preventing from activating questionnaire

  • OlivierRov
  • OlivierRov's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #192439 by OlivierRov
Hi,

When I try to activate my questionnaire, it tells me that a question doesn't have any subquestion nor answer, thus prevents me from activating.
What's problematic is that the question actually doesn't exist. As a consequence, I can't edit it and my questionnaire is blocked.

How can I solve this error, please ?

Have a good day,
Olivier

version 2.05+ Build 131209
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #192440 by tpartner
We cannot debug a 6 year old version, I strongly advise you to update.

Regarding your problem - try exporting and re-importing the survey (.lss format).

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • OlivierRov
  • OlivierRov's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #192442 by OlivierRov
Thank you for your response Tony.
Exporting and re-importing the survey only changes the bugging question's id.

I'll try and update my version.
Best regards,
Olivier
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #192443 by tpartner
Can you attach the export here?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • OlivierRov
  • OlivierRov's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #192444 by OlivierRov
Yes, here it is :)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #192445 by tpartner
As far as I can see, the IDs for some questions differ between French and English which would cause conflicts.

All I can suggest is that you create a new survey and import the questions from this survey one-by-one, checking for errors as you go.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #192447 by Joffm
Hi,
I tried to import into version 2.06
During the import I got the following warnings:
Question code G1_Q0001 was updated to G1Q0001.
Question code G1_Q0001 was updated to G1Q0001.
Question code G1_Q0002 was updated to G1Q0002.
...
Question code G5_Q0001 was updated to G5Q0001.

Having a look into the lss file I saw that there are really underscores in the question codes.
Code:
<row>
    <qid><![CDATA[2786]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[477443]]></sid>
    <gid><![CDATA[226]]></gid>
    <type><![CDATA[L]]></type>
    <title><![CDATA[G1_Q0004]]></title>
    <question><![CDATA[Les manuels sont simples d'utilisation.]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory/>
    <question_order><![CDATA[3]]></question_order>
    <language><![CDATA[fr]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[1]]></same_default>
    <relevance><![CDATA[((G1_Q0001.NAOK == "Y"))]]></relevance>
   </row>

But underscores are not allowed in question codes.



Well, the question codes were updated, but not your relevance equations.
There is still the underscore.

Next, in the logic file there was an error saying that
((G2_Q0001_SQ003.NAOK == "Y")) is undefined, even if I remove the first underscore.
And , really, the subquestion codes of this questions are "SQ1", "SQ2", "SQ3", ... (not "SQ003")
as you see here:
Code:
<row>
    <qid><![CDATA[2955]]></qid>
    <parent_qid><![CDATA[2790]]></parent_qid>
    <sid><![CDATA[477443]]></sid>
    <gid><![CDATA[227]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ3]]></title>
    <question><![CDATA[DirectCGF-TDL]]></question>

In "ProdSNR" there are english answer options missing.

So, please remove the errors and follow Tony's advice.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • OlivierRov
  • OlivierRov's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #192455 by OlivierRov
Hi,
Thank you both for your responses.
I've fixed the subquestion's IDs. And I've deleted the english translation (I'll just write it again).
The questionnaire can be activated ! I believe there was indeed a disfunction due to translated questions not having the same ID as french ones.

Thank you for your help.
Olivier
The topic has been locked.
More
4 years 2 months ago #192678 by thompsonmax
Hi everybody. I am new here. Interesting thread, thanks for the information.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose