SQLSTATE[23000]: Integrity constraint violation I am using Commerce Kickstart 2 to build a store. I have several Feeds importers working well. I duplicated a working importer and updated the mapping for the "product variation" and "product display". 

When trying to import, I now receive the following error:


  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
  'commerce_product-236' for key 'PRIMARY' SQLSTATE[23000]: Integrity
  constraint violation: 1062 Duplicate entry 'commerce_product-237' for
  key 'PRIMARY' SQLSTATE[23000]: Integrity constraint violation: 1062
  Duplicate entry 'commerce_product-238' for key 'PRIMARY'


I have re-run the working importers and do not have this problem. Reading other posts, it sounds like the importer is trying to import the same item twice, but I don't see why. 

I checked the log and see that it isn't grabbing "SKU" from my csv and is assigning it something else. How do I deal with this?


  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
  'commerce_product-236' for key 'PRIMARY'
  Original item

array(
  'title' =&gt; 'model',
  'brand' =&gt; 'brand',
  'product category' =&gt; 'prod',
  'primary use' =&gt; 'MTB',
  'intended use -alt' =&gt; '29+',
  'frame material' =&gt; 'Steel',
  'brake type' =&gt; 'Disc',
  'rohloff' =&gt; 'Yes',
  'rohloff axle plate' =&gt; 'OEM',
  'belt compatible' =&gt; 'Yes',
  'tensioning method' =&gt; 'Pivoting Dropouts',
  'build kit img' =&gt; '',
  'body' =&gt; 'Customized for Cycle Monkey: Rohloff-optimized designed for trail riding and versatile enough for...',
  'sku' =&gt; 'VN001',
  'price' =&gt; '738000',
  'dealer price' =&gt; '627300',
  'color' =&gt; 'Orange',
  'frame size' =&gt; 'XS',
  'wheel size' =&gt; '29+',
  'build kit' =&gt; 'Signature',
  'images' =&gt; '',
)

  
  Entity

(object) array(
  'type' =&gt; 'bikes',
  'product_id' =&gt; '236',
  'sku' =&gt; 'Bikes-236',
  'revision_id' =&gt; '233',
  'title' =&gt; 'model',
  'uid' =&gt; '1',
  'status' =&gt; 1,
  'created' =&gt; 1463278774,
  'changed' =&gt; 1463278774,
  'log' =&gt; 'Created by FeedsCommerceProductProcessor',
  'revision_timestamp' =&gt; 1463278774,
  'revision_uid' =&gt; '1',
  'language' =&gt; '',
  'is_new' =&gt; TRUE,
)
When setting up this product variation, I selected for the SKU to be automatically generated. In doing so, it was tripping up the feeds importer. Not sure if this was a timing issue, but I reviewed the importer set up and product variation fields for the importers that were working vs. not.

This SKU setting was the only difference. Since this field is unique ID, this seemed like the most likely culprit. 

I would appreciate an explanation of why this was triggering an issue, but am happy to be able to move on.