Invalid or Duplicated SKU

Updated on May 29, 2024

Full error name: “Invalid or Duplicate SKU; Invalid or Duplicate ID

Cause

The “Invalid or Duplicate SKU” error in WooCommerce typically arises when a product is given an SKU that is already in use by another product in the system. 

This error often occurs during product imports, when adding new products manually, or while updating existing products.

Solution

Here are some steps you can take to troubleshoot and resolve this error:

  1. Check your product data: Make sure that all the products you’re attempting to list or edit have unique SKUs. If you find any duplicates, make them unique before trying the publication again.
  2. Check on your WooCommerce: SKUs have to be unique, and not already in use by other products in your store. When the error is returned, copy the SKU code of the product in error, and check on your WooCommerce store if there is the product already associated with that SKU.
  3. Check for variations: If you’re using product variations, make sure that the SKUs for each variation are also unique.