Results 1 to 5 of 5

Thread: Import creating duplicate listview entries

  1. #1
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Import creating duplicate listview entries

    Hello,

    I'm trying to do a mass import with a few records that need to get updated. I'm using the "Import and Update records" option, and I have all the correct IDs, etc. The import is working (mostly) as it should, its updating the records that need to be updated and its importing those that don't already exist, but a peculiar thing is happening. For the records that are being updated, they're showing up twice in my listview. The duplicates are the same record after you click through them, but in the list view one of them is missing an account name. Essentially my list view is showing more records than those that exist in the database. I've found a few old bugs dealing with duplicate team memberships, but that's not the case here.

    Any ideas?
    Robert Beckman
    Software Engineer
    Mirth Corporation

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Import creating duplicate listview entries

    Update: Well, I haven't found the solution, but I've found a little bit more information. The problem seems to be stemming from the accounts_contacts table in the sugarcrm database. When I do the import, this table gets filled with a lot of entries that have an "Inactive" entry for the account_id - these rows seem to directly correlate with the blank entries in the listview. When I delete these entries (on a dev instance, with a mysqldump of the database) the problem goes away for the most part (there seem to be a few that linger, but if I delete everything in the table, I get the right number). The problem is, I don't know what's creating these entries, and as I'm running the production in an OnDemand instance, I can't go in and delete these entries, nor would I feel comfortable solving the problem this way if I could.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  3. #3
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Import creating duplicate listview entries

    So I've currently found a way to get around this problem, but it doesn't seem like the best way. What I'm doing is creating a .csv with two account records, one with an ID of "Inactive" and one with an ID of "New" and importing those two records. This serves the purpose of "relating" the contacts to one of these two accounts. Once that relationship occurs, I can delete the two accounts and the entries in the database will be flagged as deleted. I can then do my import as normal and everything runs well, as far as I can tell. I'm just cautious of doing the import this way as I don't know what these entries do, or if having an account with a "reserved word" as an ID lying around in my database. Anyone able to calm my qualms?
    Robert Beckman
    Software Engineer
    Mirth Corporation

  4. #4
    eitrix's Avatar
    eitrix is offline Sugar Community Member
    Join Date
    Aug 2010
    Location
    Serbia
    Posts
    396

    Default Re: Import creating duplicate listview entries

    this sounds like a interesting dilema. Please post more if you get any further into the problem.
    CRM Software Engineer
    Eontek - www.eontek.rs

  5. #5
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Import creating duplicate listview entries

    As I solved (or think I solved) the problem with the delete, I'm putting the more theoretical questions in a new thread: http://www.sugarcrm.com/forums/showthread.php?t=65421
    Robert Beckman
    Software Engineer
    Mirth Corporation

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to duplicate entries?
    By EDUCASTREAM in forum Developer Help
    Replies: 0
    Last Post: 2010-04-14, 01:20 PM
  2. Import and duplicate entries
    By morphism in forum Developer Help
    Replies: 0
    Last Post: 2009-10-27, 10:31 AM
  3. check for duplicate entries while import
    By k.divya in forum Developer Help
    Replies: 7
    Last Post: 2009-07-14, 06:35 PM
  4. duplicate entries
    By igivello in forum Developer Help
    Replies: 0
    Last Post: 2009-04-28, 12:03 PM
  5. Avoiding Duplicate Entries
    By Debbie in forum Help
    Replies: 1
    Last Post: 2006-01-12, 05:03 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
  •