Results 1 to 5 of 5

Thread: How to use linefeeds in Import CSVs?

  1. #1
    facet is offline Junior Member
    Join Date
    Sep 2007
    Posts
    3

    Default How to use linefeeds in Import CSVs?

    Hi,
    I'm trying to Import some Product information from a CSV and some of the "note" fields have linefeeds in them to aid readability. This seems to confuse the import. Is there a way I can retain the linefeeds and still do the import?

    Thanks

  2. #2
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: How to use linefeeds in Import CSVs?

    Hi Facet,

    In general if your import data contains fields which may confuse the format (such as commas or line feeds) simply enclose the field in double quotes.

    You then have the option of telling Sugar at import time that fields are quote delimited. You only actually need to enclose the complex fields - not all of them.

    If you open in Excel and then save as CSV, it will normally do this for you anyway.

    Nick
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  3. #3
    mjchin is offline Member
    Join Date
    Jun 2009
    Posts
    9

    Default Re: How to use linefeeds in Import CSVs?

    Hi,

    Will this option work if I have a notes field with multiple quotes?

    For example my notes filed has five part numbers, when these were entered, they were entered on each line with a CR after each was entered. My CSV report has them displaying one line.

    Are you saying when I separate them, I should have each line in double quote?

    When I do this will they all appear in a mapped field type I have designated as "Text/Area"?

    Thanks

  4. #4
    naisan is offline Member
    Join Date
    Jul 2009
    Posts
    12

    Default Re: How to use linefeeds in Import CSVs?

    This works fine for me in the notes module - i.e. my file has multiple linefeeds inside a particular field's quotation marks, although I seem to get multiple line feeds, but otherwise fine. In a text editor, the file looks like this:

    subject,note,author
    "callback","I called this guy
    and he wanted to talk
    LVM for him","George"
    "email","this line has no linefeeds","George"


    the above would create two notes. ..

    Naisan
    Last edited by naisan; 2009-07-23 at 07:20 PM. Reason: clarification

  5. #5
    naisan is offline Member
    Join Date
    Jul 2009
    Posts
    12

    Default Re: How to use linefeeds in Import CSVs?

    saddest thing is that I seem to get 4 linefeeds for the price of 1!!!! Every time a line is imported with a linefeed, it turns into 4 linefeeds in the db field. . .weird.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2009-03-14, 08:34 PM
  2. Import Notes - Import Errros Occured
    By vrit in forum Help
    Replies: 1
    Last Post: 2008-12-29, 12:41 PM
  3. Replies: 0
    Last Post: 2007-06-21, 10:45 AM
  4. Replies: 1
    Last Post: 2005-06-30, 07:02 AM
  5. Replies: 0
    Last Post: 2005-06-29, 10:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •