• Kyle

    (@kylebravotangoca)


    The importer is incorrectly flagging duplicates which is preventing a full import.

    Some posts (Course custom post type) contain the same title, same content, but are unique posts with unique URLs (slugs) and unique post IDs. For example we have 10 posts called Critical Reading and Writing II. After import successfully completes we only have 6 of our posts in the database and get the following warning on 4 other posts:

    Course “Critical Reading and Writing II” already exists.
    Course “Critical Reading and Writing II” already exists.
    Course “Critical Reading and Writing II” already exists.
    Course “Critical Reading and Writing II” already exists.

Viewing 1 replies (of 1 total)
  • Thread Starter Kyle

    (@kylebravotangoca)

    I figured out the cause of the issue. Despite the posts having a unique ID and slug, some of the posts shared the same pubDate, post_date, and post_date_gmt. The posts were originally created outside of WordPress via a 3rd party course management software. When these posts were imported into WordPress it caused some of the posts to have matching timestamps. So now when they are Exported from one WordPress site and imported into another the posts are incorrectly flagged as duplicates.

    <pubDate>Fri, 07 Mar 2025 20:39:33 +0000</pubDate>
    <wp:post_date><![CDATA[2025-03-07 20:39:33]]></wp:post_date>
    <wp:post_date_gmt><![CDATA[2025-03-07 20:39:33]]></wp:post_date_gmt>

    Luckily I only had about 100 duplicates so I was able to manually resolve the conflicts fairly quickly. Hopefully there is a simple resolution to prevent false duplicates; either some sort of double check to make sure that posts do have unique ID’s or some sort of manual approval/override before omitting posts.

    Thanks!
    – Kyle

Viewing 1 replies (of 1 total)

The topic ‘Incorrectly Flagging duplicates’ is closed to new replies.