Duplicate Records from CSV Upload

This topic contains 10 replies, has 4 voices, and was last updated by  Paolo 9 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #17190

    sfamilia
    Buyer
    Post count: 82

    I need some advice and/or help from someone about a problem I’m having: I uploaded a CSV file and stupidly click the import button more than once causing a couple of hundred records to be duplicated. I began deleting the dupes as I found them but realized this would take a long time so I deleted everything and started over. When I uploaded a sample file with a few records I saw that the name of the place has a number appended to it in the permalink (-2, -3, etc. depending on number of duplicates entered previously). This is unacceptable but I don’t know how to avoid it. Any advice?

    Thanks,
    Sal

    #17200

    Guust
    Moderator
    Post count: 29970

    Hi Sal
    You will need to do some work in your database.
    When importing the data WP created slugs for the pages, and because there were duplicates, it has appended a number to it.
    When deleting the listings, that does not always delete everything else in some database tables.
    You can go into phpAdmin and start searching for the slugs you want to delete, but you can accidentally delete the wrong stuff, so do not attempt this if you are not familiar with phpMyAdmin and WP tables.

    Otherwise, post your control panel details, and I’ll alert Paolo.

    #17212

    sfamilia
    Buyer
    Post count: 82
    This reply has been marked as private.
    #17213

    sfamilia
    Buyer
    Post count: 82
    This reply has been marked as private.
    #17248

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Can you confirm the site you are talking about, i see one site you posted but it does not seem to be the db for it, i’m a little confused…

    Stiofan

    #17260

    sfamilia
    Buyer
    Post count: 82
    This reply has been marked as private.
    #17272

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    can you pass me wp-admin? If you say there are no important information, then i would just drop all tables and start again with a fresh install of WP? If not then i can look.

    Stiofan

    #17284

    sfamilia
    Buyer
    Post count: 82
    This reply has been marked as private.
    #17317

    Paolo
    Site Admin
    Post count: 31206

    Hi Sfamilia,

    there is a much easier solution for this.

    After deleting all posts, you have to also empty the trash. This will prevent the progressive numbers to be added to the slugs.

    Let us know,

    Thx

    #17321

    sfamilia
    Buyer
    Post count: 82

    Perfect solution Paolo, thank you!

    #17324

    Paolo
    Site Admin
    Post count: 31206

    You’re welcome!

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket