View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06113Bug reportsImport/Exportpublic2012-08-03 13:48
ReporterFred Assigned Tojcleeland  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00RC1 
Fixed in Version2.00RC5 
Summary06113: Import participants from CSV does not work
Description

After selecting a file for import, it reports that the data values are additional field values and asks me to map them to attributes. See attached screen shot. When I try to continue it says zero participants were imported. I tried it with several csv files, including with and without quotes, different delimiters, etc.

In addition, I tried importing attributes but found that the interface for dragging and dropping them to be virtually unusable. You have to pick an attribute and drag it down while scrolling to a small target at the bottom of the page. Tested this on both webkit (chrome/safari) and Firefox. See the attached screen shot (the browser is zoomed out to show 2 pages long)

Steps To Reproduce

Sample CSV contents:
firstname,lastname,email,language
barack,obama,barack@gmail.com,en
george,bush,george@aol.com,en

Go to Participants and select import from CSV

Additional Information

Select which fields to import as attributes with your 0 participants.
CSV field names
The following additional fields were found in your CSV file.
language barack
george@aol.com
obama
barack@gmail.com
en george
en
bush

TagsNo tags attached.
Attached Files
screen shot.png (41,016 bytes)   
screen shot.png (41,016 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)00000
I will donate to the project if issue is resolvedNo
BrowserChrome, Safari, Firefox
Database type & versionMySQL 5.5.9
Server OS (if known)Mac OS Lion
Webserver software & version (if known)Apache 2.2.17
PHP Version5.3.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

jcleeland

jcleeland

2012-07-10 14:56

reporter   ~19689

The biggest problem here was the new admin template, which didn't have the style sheets for these pages. I've updated them now and spent quite a bit of time cleaning out and fixing the CPDB files. My tests show a standard import working now, and although there are still some improvements in the UI that need to be made, it's far more usable now!

Fred

Fred

2012-07-15 16:50

reporter   ~19738

Great thanks. Looking forward to checking it out in the next build

c_schmitz

c_schmitz

2012-07-19 23:34

administrator   ~19822

2.00RC6 released.

Fred

Fred

2012-07-28 17:05

reporter   ~20046

I installed RC7 and tried again. The attribute mapping screen looks far more usable now.

I still can't get an import to work.

1) After starting the import a dialog appears with a missing image and an "ok" button but no other feedback. It's looking for this: images/ajax-loader.gif. If I click ok it returns to the participant panel but the records aren't imported

2) When I try an import on a file with new attributes and select one to be created in the attributes list, it DOES create the new attribute but doesn't import any participants

jcleeland

jcleeland

2012-07-29 01:42

reporter   ~20052

Fred, something looks wrong with your CSV file - it appears as though it can't tell that "barack" is the beginning of the second line. Could you attach the file to this report and I'll have a play with it, but I suspect it's to do with Apple and line-endings.

jcleeland

jcleeland

2012-07-30 06:46

reporter   ~20066

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

jcleeland

jcleeland

2012-07-30 06:48

reporter   ~20067

@Fred, if you get a chance could you apply the attached diff and see if that fixes the problem? It looks like the setting to allow PHP to automatically detect unusual file endings (like MAC ones) was applied AFTER the script read the file, so that could explain the problem!

Fred

Fred

2012-07-30 20:11

reporter   ~20083

Hi @Jason, the new participantsaction.php file solved the problem. The file I was using was from a Mac, but I was using UTF-8 with LF line endings, which usually works for me. Although as you said, it's a finicky thing. Thanks for resolving this.

Related Changesets

LimeSurvey: Yii 39b50895

2012-07-29 21:46:25

jcleeland

Details Diff
Fixed issue 06113 Import participants from CSV does not work. Adjusted system settings to cope with mac file endings
Dev note: (check the diff and have a laugh at why this wasn't working before!)
Affected Issues
06113
mod - application/controllers/admin/participantsaction.php Diff File

Issue History

Date Modified Username Field Change
2012-05-17 16:50 Fred New Issue
2012-05-17 16:50 Fred File Added: screen shot.png
2012-05-17 17:43 c_schmitz Assigned To => jcleeland
2012-05-17 17:43 c_schmitz Status new => assigned
2012-07-10 14:56 jcleeland Note Added: 19689
2012-07-10 14:56 jcleeland Status assigned => resolved
2012-07-10 14:56 jcleeland Fixed in Version => 2.00RC5
2012-07-10 14:56 jcleeland Resolution open => fixed
2012-07-15 16:50 Fred Note Added: 19738
2012-07-19 23:34 c_schmitz Note Added: 19822
2012-07-19 23:34 c_schmitz Status resolved => closed
2012-07-28 17:05 Fred Note Added: 20046
2012-07-28 17:05 Fred Status closed => feedback
2012-07-28 17:05 Fred Resolution fixed => reopened
2012-07-29 01:42 jcleeland Note Added: 20052
2012-07-30 06:46 jcleeland Changeset attached => LimeSurvey Yii 39b50895
2012-07-30 06:46 jcleeland Note Added: 20066
2012-07-30 06:48 jcleeland Note Added: 20067
2012-07-30 20:11 Fred Note Added: 20083
2012-07-30 20:11 Fred Status feedback => assigned
2012-07-31 02:51 jcleeland Status assigned => resolved
2012-07-31 02:51 jcleeland Resolution reopened => fixed
2012-08-03 13:48 c_schmitz Status resolved => closed