Open mrk-dzie opened 11 months ago
The same issue
@krasii Check out the solution here https://github.com/akeneo/magento2-connector-community/pull/669
Same problem here! @mrk-dzie Thanks for the solution. We have applied this in composer patch.
https://patch-diff.githubusercontent.com/raw/akeneo/magento2-connector-community/pull/669.patch
@magentix Also this is breaking for a lot of people so can you have a look at this also?
same issue for our clients. it is not practical to tell users to re-sku all of their products. hopefully sense will prevail soon ;)
Hi @mrk-dzie we are also facing the same issue. As per description I understand this patch will help us to skip to create duplicate items in Magento, could you please confirm the following questions regarding patch:
Thanks in advance.
Potentially as an addition to prevent this in the future creating another unique index for import + code
db_schema.xml
...
<table name="akeneo_connector_entities" resource="default" engine="innodb" comment="Akeneo Connector Entities Relation">
...
<constraint xsi:type="unique" referenceId="AKENEO_CONNECTOR_ENTITIES_IMPORT_CODE">
<column name="import"/>
<column name="code"/>
</constraint>
....
</table>
...
If it will attempt to create more duplicate values the import will break immediately instead of next time you try to run it.
Environment and configuration
"akeneo/module-magento2-connector-community": "^104.0"
Serenity
|Growth
|7.0
) usinguuid
for entity mappingSteps to reproduce
sku
attribute for the entity that already existed in Magento before import.Cardinality violation
on theMatch code with Magento/Adobe Commerce ID
step.Expected result
Existing products are not duplicated and are correctly mapped with Akeneo UUID code.
Actual result
Products are duplicated during the initial mapping and subsequent imports encounter errors due to multiple mappings for the same UUID in
akeneo_connector_entities