Results 1 to 7 of 7

Thread: Export Contacts to CSV - line break issue

  1. #1
    jabhawk's Avatar
    jabhawk is offline Senior Member
    Join Date
    Dec 2008
    Location
    New Jersey - Morris County
    Posts
    25

    Default Export Contacts to CSV - line break issue

    CE 4.5

    I have a problem with Exporting Contacts, Accounts, etc where there are fields containing embedded line breaks. The export to CSV makes it impossible to open in Excel directly without editing the resulting file first. This is seen in the Address and Description fields.

    Is there an add-on or other utility that would strip or replace these characters from the output before the user gets the file?

    I have to be able to dump the selection into pre-written imports with little or no user interaction. We do not have direct access to the database so ODBC is out.

    Jon Black
    Hawk Services, Landing NJ

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Export Contacts to CSV - line break issue

    Take a look at using something like Talend Open Studio, SnapLogic or Jitterbit.

    The other danger with these types of exports is that someone could actually type a comma into one of the fields and that too would throw off the export. The description (and other large text areas) are especially prone to that problem.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    Greetal is offline Senior Member
    Join Date
    Feb 2009
    Posts
    62

    Default Re: Export Contacts to CSV - line break issue

    Quote Originally Posted by Angel View Post
    Take a look at using something like Talend Open Studio, SnapLogic or Jitterbit.
    As Angel says, you can use an ETL tool like Talend Open Studio. It is an open source ETL tool for data integration and migration experts. It's easy to learn for a non-technical user.

    What distinguishes Talend, when it comes to business users, is the tMap component. It allows the user to get a graphical and functional view of integration processes. For more information: http://www.talend.com/

  4. #4
    jabhawk's Avatar
    jabhawk is offline Senior Member
    Join Date
    Dec 2008
    Location
    New Jersey - Morris County
    Posts
    25

    Default Re: Export Contacts to CSV - line break issue

    I will be looking at the tools discussed.

    As a stopgap measure is there any good examples of php scripts to create a csv or XML file from the Sugar tables? I would want to pull only selected columns and include custom fields.

    This is me being lazy, i'm just so swamped I am hoping to short-cut developing these custom extracts. Our live database is on an external server that we do not have direct access to with ODBC or other tools.

    I am actually looking to setup a mirror database on a server inside our firewall so that we can pull directly from the Sugar data. Not the best solution but may be the only one for now. I have not tried doing a full SQL dump load yet but will try this weekend.

    Jon

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Export Contacts to CSV - line break issue

    I don't know about the other products, but I know that with SQLyog, you can run ad-hoc queries and then export the results to CSV, XML, HTML and other formats.

    You wouldn't need to do any programming at that point.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Export Contacts to CSV - line break issue

    If you import the csv-files to access, you can define the separator char and the quotes.
    From access you export them to any other file fomat.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  7. #7
    Greetal is offline Senior Member
    Join Date
    Feb 2009
    Posts
    62

    Default Re: Export Contacts to CSV - line break issue

    With Talend Open Studio, you can cut the programming and only go through the software's "jobs". Very useful and usable by most people, even with not much tech background, you can select columns and export them into csv with Talend.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Issue in Export All Records
    By dinudanial in forum Developer Help
    Replies: 26
    Last Post: 2009-10-22, 04:01 PM
  2. Replies: 4
    Last Post: 2008-04-20, 04:24 AM
  3. Replies: 0
    Last Post: 2007-10-21, 10:13 PM
  4. Replies: 0
    Last Post: 2006-12-01, 09:09 PM
  5. line break in note field of notes module?
    By schipman in forum General Discussion
    Replies: 1
    Last Post: 2005-10-19, 05:56 PM

Tags for this Thread

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
  •