Results 1 to 8 of 8

Thread: Stopping Duplicate Import Entrys

  1. #1
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Stopping Duplicate Import Entrys

    I'm having a few problems with my import settings, for some strange reason it's not picking up duplicate entrys when I import leads with the same Account name.

    I have selected to pick up on all the avalialbe duplicate entry fields by adding them into the left hand box.

    Any suggestions?

    One thuing that might be worth mentioning is I have re-named the Account Name label to Company name through Studio.


    .
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

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

    Default Re: Stopping Duplicate Import Entrys

    I don't think the label change makes a difference, however, if you take a look at the index keys for the Accounts table, you'll notice that none of them reference the Name column (at least on my install).

    Seems a bit unusual to me, but that's another story.

    Hopefully someone else that knows for sure will chime in, but I think the import dupe checking requires the comparison column to be indexed.
    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
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Stopping Duplicate Import Entrys

    Still having problems importing leads. Sugar isnt picking up any duplicate entrys.

    I have found a few different leads with similar company names which are for the same company

    My question is does sugar only pick up exact match of an account name, or will it do a best fit.

    So as an example if I had a company called Arko & I try to import a company called Arko Ltd or Arko Limited. Should pick up the duplicate?

    Also whats the difference in an Account Name & An Account ID?


    I tried adding a collumn to my import csv file called Account ID & adding the company name to this but it still didnt pick up the duplicates?
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

  4. #4
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Stopping Duplicate Import Entrys

    Ok so I did some testing and here are my disappointing findings.

    I set up a fresh install if sugar 4.5.0h on a development site.
    I created a Lead in Sugar with an Account name & a Last Name only
    I then set up a few different csv files to import as a test.



    My results were:
    After importing the csv files, sugar only spots duplicate records if at least one of the fields contain the exact same information. I was under the impression if you had x2 companies with similar names

    e.g. Tower Ltd & Tower Limited or Tower Ltd & Tower L


    Sugar would pull these up as duplicates. This appears NOT to be the case. I also noticed you need to create another column on your CSV file called Account ID for each record & copy the contents of the Account Name into here. When you add the look for "Duplicate Index" options at the bottom of your import there isn’t an entry for Account Name, only Account ID. So if you want to look for duplicates on the company name fields ONLY, you will need to add the Account ID column on your CSV import and just add the “Account ID, Deleted” duplicate index.

    Hope this helps
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

  5. #5
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Default Re: Stopping Duplicate Import Entrys

    Quote Originally Posted by Deland01
    S
    Also whats the difference in an Account Name & An Account ID?


    I tried adding a collumn to my import csv file called Account ID & adding the company name to this but it still didnt pick up the duplicates?
    account id - 9e1ce695-1b9b-998a-ddb7-465a73c8c505

    account_name - ' Test Account'
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  6. #6
    Deland01 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    66

    Default Re: Stopping Duplicate Import Entrys

    Cheers for that,

    Please excuse my lack of knowledge but would 'Test Account' always equal the same sql ID, or would you get another one each time you imported it?



    Does SQL work things out on a random algorithm or is it a logical one where a certain word would always equate to the same key value?
    Sugar Version - 4.5.0h
    Sugar Edition - SugarSuite
    OS - Win 2003 Server Std
    PHP Version - 5.2.0
    Database - MySQL Server 5
    Web Server - Apache 2.0.59

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

    Default Re: Stopping Duplicate Import Entrys

    The ID is a unique time based value generated by a PHP function that is called by Sugar everytime a record is inserted into one of its tables.

    The name of the account or contact (or case, etc.) has no bearing on the ID.

    As for the matching. It does have to be exact, as it does not have a soundex engine.
    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)
    ______________________________________________

  8. #8
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Stopping Duplicate Import Entrys

    Correct, exact matches are used.

    I'd advise you to create a Feature Request to push for this change.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HELP - Act import (field mapping)
    By smelamed in forum Help
    Replies: 32
    Last Post: 2010-12-15, 05:39 PM
  2. Duplicate Accounts after Import
    By David May in forum Help
    Replies: 7
    Last Post: 2006-07-26, 07:13 PM
  3. Replies: 1
    Last Post: 2005-08-06, 06:38 PM
  4. Primary Key ID field duplicate entry upon import
    By andrewstuart in forum Help
    Replies: 1
    Last Post: 2005-04-04, 07:45 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
  •