Hi there,
What's the recommended approach to import stock across multiple languages? I have products in 5 languages but they should all share the same stock level. My source data looks like this:
<item table="EcomProducts"> <column columnName="ProductID"><![CDATA[5008]]></column> <column columnName="ProductVariantID"><![CDATA[0633]]></column> <column columnName="ProductNumber"><![CDATA[5008063]]></column> <column columnName="ProductStock"><![CDATA[144]]></column> </item>
When I set up a job with the EcomProvider and map either ID and VariantID or Number, I get the following error:
Exception: Violation of PRIMARY KEY constraint 'DW_PK_EcomProducts'. Cannot insert duplicate key in object 'dbo.EcomProducts'. The duplicate key value is (5008, ENU, 50008063).
This confuses me for a few reasons:
1. Why is it using my English language (ENU)? I set up the job to Default language: None (but that seems to reset itself when I reopen the job). I don't want to use any specific language here; I want to update all products across all languages when the IDs or Number match
2. Why the duplicate key exception? I am updating rows, not inserting. I enabled "Update existing rows only" on the job.
I tried hard coding the language to my default language of ENU and then it works. However, that then only updates the product with that language. Under Settings | Ecommerce | Advanced | Fields I set my stock fields to be changeable across languages but that doesn't seem to make a difference.
Finally, if I use the Dynamicweb provider, it seems to work OK and updates all products across all languages.
Any guidance on the best setup would be highly appreciated.
Imar