mc-magento2 icon indicating copy to clipboard operation
mc-magento2 copied to clipboard

[2.3] Group entities by id to prevent duplicate errors

Open barryvdh opened this issue 5 years ago • 3 comments

When 2 entries exists with the same ID, Magento will throw an Exception which errors the cronjob ebizmarts_ecommerce

Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "xx" already exists.

Grouping by id will only load the entity once. (Not sure why duplicate entries exist, but I ran into this with both products and customers)

barryvdh avatar Oct 24 '19 12:10 barryvdh

Hi @barryvdh

can you please open an issue about following the issue guidelines

Best

gonzaloebiz avatar Oct 24 '19 16:10 gonzaloebiz

What is not clear about the description? I don't think I have more information, it's a M2.3 store with just this error in the cron.

barryvdh avatar Oct 24 '19 16:10 barryvdh

I need your magento version, your mc-magento2 version, how to replicate the issue (you have all the data in the issue guidelines)

Best

gonzaloebiz avatar Oct 24 '19 16:10 gonzaloebiz