View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
20020Bug reportsImport/Exportpublic2025-06-02 16:12
ReporterSueStL Assigned Totibor.pacalat  
PrioritynoneSeveritypartial_block 
Status resolvedResolutionfixed 
Product Version6.5.x 
Summary20020: SPSS export - multiple answers question
Description

We have been using “Export answers to SPSS” to export data for many years. After upgrading to version 6.5, we now have a problem with this type of export. When exporting to SPSS (via “.sps” and “.dat” file), multiple answer questions are actually automatically recoded into 1=“selected”, 0=“not selected” and empty fields “” become SYSMIS - unfortunately, this automatic recoding no longer happens with us. Only the “1” is exported for selected answer options; the 0 becomes the SYSMIS.

I have already asked in the forum. the error could already be reproduced with version 6.10.5. There the data file is not filled correctly.

The xls-export shows that the data is available with “0” and “1” and “”). Only the spss export (via “.sps” and “.dat” file) causes problems.

Steps To Reproduce

Export to SPSS (via “.sps” and “.dat” file)
Run the .sps file

Tagsexport, spss
Attached Files
a1.PNG (3,008 bytes)   
a1.PNG (3,008 bytes)   
Bug heat10
Complete LimeSurvey version number (& build)Version 6.5.17+240715
I will donate to the project if issue is resolvedNo
Browser
Database type & versiondon´t know yet - i will add asap
Server OS (if known)
Webserver software & version (if known)
PHP Versiondon´t know yet - i will add asap

Users monitoring this issue

There are no users monitoring this issue.

Activities

SueStL

SueStL

2025-03-19 10:07

reporter   ~82284

Betriebssystem: Ubuntu (Linux) 22.04.4 LTS
PHP Version: 8.1.2-1ubuntu2.19
MySQL (Datenbank): 8.0.41-0ubuntu0.22.04.1

gabrieljenik

gabrieljenik

2025-04-22 18:26

manager   ~82463

Can you please provide an lsa file we can use to reproduce the issue?
Also, some screenshots, as you did before, highlighting where the error appears.

After upgrading to version 6.5

From which version?
We have not been able to reproduce the issue with 6.0 nor 5.6.

Thanks

gabrieljenik

gabrieljenik

2025-05-02 18:58

manager   ~82560

Thanks for the information. I am sorry, what I wasn't able to reproduce is the original behaviour you described.

When exporting to SPSS (via “.sps” and “.dat” file), multiple answer questions are actually automatically recoded into 1=“selected”, 0=“not selected” and empty fields “” become SYSMIS - unfortunately

Do you recall a version when this was actually happening?
Which version have you upgraded from?

gabrieljenik

gabrieljenik

2025-05-09 21:08

manager   ~82639

So you were having the expected behaviour on 3.23.1+200825 , right?

SueStL

SueStL

2025-05-12 08:23

reporter   ~82643

Exactly! Before the update (in version 3.23.1+200825) “1”, “0” and "" SYSMIS were used for coding.

In version 6.5.17 there is only “1” and “” SYSMIS (with the exception of the Excel export. The data is still coded with “1”, “0” and SYSMIS via Excel)

gabrieljenik

gabrieljenik

2025-05-27 16:03

manager   ~82779

https://github.com/LimeSurvey/LimeSurvey/pull/4297

@tibor.pacalat I recommend testing with different values on the answers, just in case.

DenisChenu

DenisChenu

2025-06-02 10:42

developer   ~82798

@tibor.pacalat I recommend testing with different values on the answers, just in case.

It's only related to M and P , and not other or comments.
I don't think you can have other value than Y, '' and NULL , except broken question theme or plugin

guest

guest

2025-06-02 14:14

viewer   ~82799

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=38856

tibor.pacalat

tibor.pacalat

2025-06-02 16:12

administrator   ~82804

This will be resolved in the next release.

Related Changesets

LimeSurvey: master 2c7f4ffd

2025-06-02 14:14

Gabriel Jenik

Committer: GitHub


Details Diff
Fixed issue 20020: SPSS export - multiple answers question (04297)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
20020
mod - application/helpers/export_helper.php Diff File

Issue History

Date Modified Username Field Change
2025-03-19 09:21 SueStL New Issue
2025-03-19 09:21 SueStL File Added: a1.PNG
2025-03-19 10:07 SueStL Note Added: 82284
2025-03-19 10:07 SueStL Bug heat 0 => 2
2025-03-28 08:39 SueStL Tag Attached: export
2025-03-28 08:39 SueStL Tag Attached: spss
2025-04-07 16:53 tibor.pacalat Assigned To => gabrieljenik
2025-04-07 16:53 tibor.pacalat Status new => assigned
2025-04-22 18:26 gabrieljenik Note Added: 82463
2025-04-22 18:26 gabrieljenik Bug heat 2 => 4
2025-05-02 18:58 gabrieljenik Note Added: 82560
2025-05-09 21:08 gabrieljenik Note Added: 82639
2025-05-12 08:14 SueStL File Deleted: grafik.png
2025-05-12 08:23 SueStL Note Added: 82643
2025-05-27 16:03 gabrieljenik Assigned To gabrieljenik => DenisChenu
2025-05-27 16:03 gabrieljenik Status assigned => ready for code review
2025-05-27 16:03 gabrieljenik Note Added: 82779
2025-06-02 10:42 DenisChenu Status ready for code review => ready for testing
2025-06-02 10:42 DenisChenu Note Added: 82798
2025-06-02 10:42 DenisChenu Bug heat 4 => 6
2025-06-02 10:42 DenisChenu Assigned To DenisChenu => tibor.pacalat
2025-06-02 14:14 Changeset attached => LimeSurvey master 2c7f4ffd
2025-06-02 14:14 guest Note Added: 82799
2025-06-02 14:14 guest Bug heat 6 => 8
2025-06-02 14:14 tibor.pacalat Status ready for testing => resolved
2025-06-02 14:14 tibor.pacalat Resolution open => fixed
2025-06-02 16:12 tibor.pacalat Note Added: 82804
2025-06-02 16:12 tibor.pacalat Bug heat 8 => 10