akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

csv_product_model_import error: A new entity was found through the relationship #11494

Closed Jens-Bourgeois closed 4 years ago

Jens-Bourgeois commented 4 years ago

expected behavior

Running the "csv_product_model_import" import profile succesfully.

the encountered behavior

Getting an error:

FAILED A new entity was found through the relationship 'Akeneo\Pim\Enrichment\Component\Product\Model\ProductModelAssociation#productModels' that was not configured to cascade persist operations for entity: 120-goldie-141-0020. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}).

steps to reproduce

Running the import profile.

extra information

This first occurred when adding "related products" through a custom association we created in Akeneo. As a workaround I removed the related columns in the CSV and this has worked before, but now we are getting the same error for the ProductModelAssociation as well.

We are running the latest version CE 3.2.34

Jens-Bourgeois commented 4 years ago

UPDATE:

Disabling "Compare values" seems to fix the problem!! It slows down the import, but at least it's able to complete...