Posted on 16/10/2023 13:04:39
Hello.
I am trying to do a simple export/import using ECom Provider as export source (have tried both name and ID options), and CSV provider as destination.
As part of this process, I have to delete the 3-byte headerless CSV's created for empty ecom tables. (this is a seperate issue though)
When re-importing the same tables (CSV, folder, correct delimiter and seperator etc), I get error messages about duplicate keys.
I have tried the "Discard dupe key" option. The update only existing records or update only existing products option. No matter what I do, there is an error.
The error comes from a temp table created to support the import of variants.
Basically tons of these lines
2023-10-16 13:03:03.075 |
The statement has been terminated.Row data: [VariantOptionsProductRelationProductId: "11238"] (System.String), [VariantOptionsProductRelationVariantId: "VARGRP48_872588"] (System.String), [VariantOptionsProductRelationAutoId: "149"] (System.Int32) |
|
|
2023-10-16 13:03:03.075 |
Error: Cannot insert duplicate key row in object 'dbo.EcomVariantOptionsProductRelationTempTableForBulkImport7' with unique index 'DW_PK_EcomVariantOptionsProductRelation'. The duplicate key value is (VARGRP48_872588, 11238). |
|
|
2023-10-16 13:03:03.075 |
The statement has been terminated.Row data: [VariantOptionsProductRelationProductId: "11238"] (System.String), [VariantOptionsProductRelationVariantId: "VARGRP48_872587"] (System.String), [VariantOptionsProductRelationAutoId: "148"] (System.Int32) |
|
|
2023-10-16 13:03:03.075 |
Error: Cannot insert duplicate key row in object 'dbo.EcomVariantOptionsProductRelationTempTableForBulkImport7' with unique index 'DW_PK_EcomVariantOptionsProductRelation'. The duplicate key value is (VARGRP48_872587, 11238). |
|
|
2023-10-16 13:03:03.075 |
The statement has been terminated.Row data: [VariantOptionsProductRelationProductId: "11238"] (System.String), [VariantOptionsProductRelationVariantId: "VARGRP48_11238"] (System.String), [VariantOptionsProductRelationAutoId: "147"] (System.Int32) |
|
|
2023-10-16 13:03:03.075 |
Error: Cannot insert duplicate key row in object 'dbo.EcomVariantOptionsProductRelationTempTableForBulkImport7' with unique index 'DW_PK_EcomVariantOptionsProductRelation'. The duplicate key value is (VARGRP48_11238, 11238). |