Articles in this section

Multiple Categories on a Product not Syncing in the Magento 2 Integration App

Issue/Error: The customer is trying to pass a product with more than one category selected.  When doing so, they are getting the following error: 
 
"We found a duplicate website, tier price, customer group, and quantity."
 
When running the saved search, it appears four times:  Two times for each price level and each category.  The category does not group the product as expected and sends a single call. 
Cause:
Magento rejects the product because its tier prices list the same website, customer group, and quantity more than once. This happens when:
Earlier versions of the integration app (before 2018) built category IDs by comparing category names, so a category name that contained a comma also caused this error. Current versions don’t read category names from the saved search.
How the export reads categories
With the integration app’s standard item saved search, the export doesn’t read the search’s category column. It looks up each item’s categories and websites from the item’s eTail > Magento2 fields, using the Magento ID on each Celigo Magento 2 Product Category record that belongs to the same Magento 2 instance as the store. If an item’s categories arrive empty, check that:
  • The item’s categories are selected under eTail > Magento2.
  • The selected category records belong to the store’s Magento 2 instance and have a Magento ID. The Magento Category to NetSuite flow fills in the ID.
  • The item has a price at the default price level configured in the integration app.
The steps below switch the export to reading categories from the saved search. When the search has any of the Category Id, Website Id, Pricing Level, Pricing Qty, or Pricing Price columns, the export reads categories, websites, and pricing only from the search, so add these columns at the same time:
  • Category Id
  • Website Id, containing the Magento website names. Without it, every item fails with “Please select at least one website for this item.”
  • Pricing Level, Pricing Qty, and Pricing Price, if you use tier pricing.
Resolution: 
  1. Create a new column in the saved search for the category fields with the custom label: "Category Id".
  2. Delete the original one with "Category Ids".   
  3. The Integration App will get the category ID directly from the saved search. Even though we are getting a different row for each category, the Integration App will combine those rows internally.
For example, if the customer has selected A, B categories which are having 1, 2 as ids, there will be a separate row for each one but eventually, we will combine it to [1,2].