specify CSV delimeters

webchick - July 27, 2006 - 00:43
Project:User Import
Version:5.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

The data I'm importing has lots of "s as well as newlines, so it would be cool to be able to specify an arbitrary delimiter and enclosure for CSV files.

#1

Robert Castelo - July 27, 2006 - 16:18

Would be good yes.

In the long run it would be better to hand the whole task of data input to a dedicated module like this one:

http://drupal.org/node/67043

That way other Drupal modules can use the data input functions, and then just concentrating on processing the data.

#2

ontwerpwerk - April 20, 2007 - 08:56

Because http://drupal.org/project/profile_csv uses doubleqoute enclosures and semicolon delimiters and this module is the logical complement it would make much sense to at least support that format

#3

webchick - April 20, 2007 - 14:22
Title:specify CVS delimeters» specify CSV delimeters

Fixing the title... must've been tired. :)

#4

Robert Castelo - May 2, 2007 - 07:43

I would really like a API module that just handles CSV import.

#5

emdalton - November 13, 2007 - 20:47
Version:HEAD» 5.x-1.3

I need this -- I'm trying to rebuild my drupal system to avoid some data corruption that may have occurred. My user data has to include commas, as it includes LDAP information. Am I going to have to import directly to MySQL?

#6

gcassie - March 14, 2008 - 20:54

I've had to import fields with commas as well. I switched to a tab-delimited file and modified the module slightly. There are two calls to the function fgetcsv in user_import.module; if you make the third argument in each "\t", the module will break the file up by tabs instead of commas.

I've imported ~30,000 user records this way with no problems.

 
 

Drupal is a registered trademark of Dries Buytaert.