EmicoEcommerce / Magento2TweakwiseExport-archived

Magento 2 module for Tweakwise export
Other
6 stars 16 forks source link

Duplicate product entries in feed #3

Closed mdubbelman closed 7 years ago

mdubbelman commented 7 years ago

We are getting duplicate entries in the tweakwise export feed.

-- When we are exporting the products via the tweakwise export module everything looks OK and the feed is generated. But when we try to import the feed in the Tweakwise Navigator we get an error because of dupicate ID's

Environment

Steps to reproduce

  1. Install Magento from develop branch.
  2. Export the products via the command php bin/magento tweakwise:export
  3. Feed is generated, but with duplicate entries

Actual result

Expected result

-- Maybe there must be a group by or DISTINCT in the product selection query?

Fgruntjes commented 7 years ago

Hello,

Unfortunately we could not reproduce the issue with the Magento test data. Could you send me the database (fgruntjes@emico.nl) or give access to the test environment so we can debug the issue there.

If thats an option please send the information to fgruntjes@emico.nl or give access using my public key.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3lL78eUCbw9cxooQICUtzIGBtJrh13rHaUuepQAHUZtFRFfWc1wxouqzTuixIBgdAxJk1tmexUUPzp4lZkCuRVqlK3pabKwBTSazGSB20+AdEfPmDt+E/yDWfRTfBdxEnRcpaTqiAs2ygYfjX+RvIFinOoovuI0HATVUnv3CbaQTR1QFAhG73GNxLaeI/R8rUMtStpiL0YiQgZzVUCFY6FnLvoMLcn+p9AN+lD1KH6caJ4PoCMyE83Rc/20fM3S/Q41mMgl8n/SkyleWN409e1EpmuMYx15rIliKXQoPYmpBsnzRW3IPgYXuW0oJsHg8fzYZosaP1HYaeqcl6X+3D fgruntjes@emico.nl
Fgruntjes commented 7 years ago

Thank you for your input.

The issue was caused because we forgot to clear the write batch in the product iterator.