Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Copy of assessed surveys in the same platform

Copy of assessed surveys in the same platform 5 years 1 month ago #63036

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1805
  • Thank you received: 445
  • Karma: 111
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
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
Last Edit: 5 years 1 month ago by Ben_V.
The administrator has disabled public write access.

Copy of assessed surveys in the same platform 5 years 1 month ago #63081

  • jelo
  • jelo's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1216
  • Thank you received: 150
  • Karma: 44
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 administrator has disabled public write access.
The following user(s) said Thank You: Ben_V
Moderators: ITEd
Time to create page: 0.252 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form