Results 1 to 4 of 4

Thread: Importing 274K records for contacts (another CRM) - help!

  1. #1
    sugarhoney is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    20

    Default Importing 274K records for contacts (another CRM) - help!

    I'm trying to import a CSV contact file from another CRM - it doesn't have an account at this moment.

    The CRM I'm using has a table that's almost identical to the "contacts" table in

    sugarcrm. I am able to use SQL to query the top 100 rows, export those result to a CSV file, and then import the contacts using Sugarcrm with the mapping feature just fine - as doing also

    creates one-to-one matching account for that contact.

    However, only 57 contacts are imported. I'm guessing it's because some of them have a blank account name or contact/firstname/lastname?

    Anyways, when I export 274,000 rows from my old CRM to a CSV and then to import using

    sugarcrm, I get a timeout error. I believe the file was too big. What's the import file to change so I can add a "set_time_limit(0); // No time limit for this script"?

    SO, I figure, why not import 20,000 rows at a time? This would require having 14 seperate CSV files to be imported.

    Another thought was to connect to my old CRM on SQL Server 2000 using a PHP script. This PHP script would open a connection to Goldmine on SQL Server and also a MySQL connection to connect to sugarcrm. Then it would query the "contact" table in Goldmine SQL Server to copy the data to the "contacts" table in sugarcrm. Thus far, I know the "contacts", "accounts", and "accounts_contacts" tables are should be affected. In that case, what files do I need to look up? I know the "id" field is given a unique id in "contacts", so I'll like to know how that ID is generated? What import files should I go and edit in sugarcrm?
    Last edited by sugarhoney; 2008-03-11 at 08:52 PM.

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

    Default Re: Importing 274K records for contacts (another CRM) - help!

    That's a pretty good size GM database.

    To answer your question, the ID is generated by the function create_guid() in <sugar root>/include/utils.php
    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
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Importing 274K records for contacts (another CRM) - help!

    You can use the mysql standard function uuid() to create unique Sugar Ids.
    You can even take any unique string of maximal 36 chars

  4. #4
    urosslak is offline Junior Member
    Join Date
    Feb 2007
    Posts
    3

    Default Re: Importing 274K records for contacts (another CRM) - help!

    I had the same problem importing big cvs files.
    I solved it by increasing php memory size and time to execute parameters in php.ini.:
    max_execution_time = 3000 ; Maximum execution time of each script, in second
    s
    max_input_time = 6000 ; Maximum amount of time each script may spend parsing r
    equest data
    memory_limit = 768M ; Maximum amount of memory a script may consume

    I hope it helps

    Uros

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Crm rules read about it
    By zerocost in forum General Discussion
    Replies: 5
    Last Post: 2011-12-06, 10:49 AM
  2. Sugar CRM 5.0b Not Importing Leads 2
    By jurycom in forum Help
    Replies: 1
    Last Post: 2008-03-04, 04:40 PM
  3. Replies: 5
    Last Post: 2007-07-18, 02:59 PM
  4. Help: Importing Records from 4.0 to 4.5
    By RChapek in forum Help
    Replies: 0
    Last Post: 2006-11-30, 02:29 PM
  5. Records Skipped from importing
    By snue in forum Feature Requests
    Replies: 0
    Last Post: 2006-05-04, 12:36 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
  •