Invalid or Duplicated SKU

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

May 4, 2023

Cause

The “Invalid or Duplicate SKU” error in WooCommerce is typically caused by a product being assigned an SKU (stock keeping unit) that already exists in the system and that is assigned to another product.

Error typically occurs when you attempt to import products, add new products manually, or make changes to the 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 of 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.