View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05155Bug reportsSurvey editingpublic2011-05-15 11:33
Reporteruser855Assigned Toc_schmitz  
PrioritylowSeverityminor 
Status closedResolutionunable to reproduce 
Product Version1.90+ 
Summary05155: Answer options are stripped from question export/import
Description

Answer options are not included in import of exported question.

Steps To Reproduce
  1. Export multi-lingual Dropdown list question with lots of answer options.
  2. Make new survey with the same languages.
  3. Import exported question (you can try with attached question export).
  4. Look at your newly imported question and note that none of your answer options have been imported!
Additional Information

The survey i exported from is attached to my former reported bugs.

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)9642
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)Debian Linux
Webserver software & version (if known)Apache
PHP Version5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

user855

2011-05-12 13:40

  ~14988

In the attached survey export the same problem manifests itself at least with question 1892 and 1895 when importing.

None of the subquestions to question 1892 are imported and only subquestion 16 and 15 are imported in question 1895.

user855

2011-05-12 14:50

  ~14991

Trying to import the attached exported survey to stable revision [about 1 hr ago] I get the following failure message which seems to imply what the problem might be:

Feil: Failed to insert data
INSERT INTO questions ( PARENT_QID, SID, GID, TYPE, TITLE, QUESTION, PREG, HELP, OTHER, MANDATORY, QUESTION_ORDER, LANGUAGE, SCALE_ID, SAME_DEFAULT ) VALUES ( 1847, 48418, null, 'A', '1', 'Die Beschilderung ist gut.', '', '', 'N', '', 1, 'de', 0, 0 )
Column 'gid' cannot be null

user855

2011-05-12 15:27

  ~14992

I solved the survey export problem by rebuilding the subquestions. That is, I deleted them, saved, wrote them in again, and saved, for both questions. I then exported and imported into svn stable without problem.

c_schmitz

c_schmitz

2011-05-15 11:33

administrator   ~15002

As you already notice this happened because the referred group did not exist for the answer options. I have no explanation how that could happen except for direct database editing or import of badly customized questions.

Issue History

Date Modified Username Field Change
2011-05-10 14:21 user855 New Issue
2011-05-10 14:21 user855 File Added: limesurvey_question_2173.lsq
2011-05-10 16:21 c_schmitz Assigned To => c_schmitz
2011-05-10 16:21 c_schmitz Status new => assigned
2011-05-12 13:32 user855 File Added: limesurvey_survey_48418.lss
2011-05-12 13:40 user855 Note Added: 14988
2011-05-12 14:50 user855 Note Added: 14991
2011-05-12 15:27 user855 Note Added: 14992
2011-05-15 11:33 c_schmitz Note Added: 15002
2011-05-15 11:33 c_schmitz Status assigned => closed
2011-05-15 11:33 c_schmitz Resolution open => unable to reproduce
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing