Welcome, Guest
Username: Password: Remember me

TOPIC: Copy of assessed surveys in the same platform

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

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1067
  • Thank you received: 235
  • Karma: 74
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-TWICE_56682-1.lss
File Size: 13 KB
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 3 years 1 month ago by Ben_V.
The administrator has disabled public write access.

Re: Copy of assessed surveys in the same platform 3 years 1 month ago #63081

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 467
  • Thank you received: 52
  • Karma: 16
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.116 seconds
Donation Image