Check out the LimeSurvey source code on GitHub!

Copy of assessed surveys in the same platform

More
5 years 7 months ago - 5 years 7 months ago #63036 by Ben_V
A couple of month ago i did a bug report about an 'Failed to insert data' error when I tried to copy or import an assessed survey.
A this moment it was difficult to reproduce the problem because I was using several installations and missunderstood what was going wrong.

Now it looks moor evident:
You can't copy an assessed survey on the same LS platform without loosing all the assessment settings du to duplicated IDs. (to reproduce the problem try to import 2 times the attached sample survey)
Example for a survey.lss with:
<id><![CDATA[1312]]></id>

You w'll get after copy:
Error: Failed to insert data
$query
Duplicate entry '1312-en' for key 'PRIMARY'


Is it a bug to fix or a known limitation of LS ?

File Attachment:

File Name: IMPORT-ME-...82-1.lss
File Size:13 KB

BenoƮt

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Attachments:
Last Edit: 5 years 7 months ago by Ben_V.

Please Log in to join the conversation.

More
5 years 7 months ago #63081 by jelo
You should submit that as a bug.

I am not fully aware of the assessments concept but the duplicate id is a bug to me. If such variables are used in the imported survey only they need to be recreated with a different id. If they are used in a global manner the import/copy routine needs to ask if existing assessments should be used or overwritten or recreated.
The following user(s) said Thank You: Ben_V

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form