1

The field "field_erp_code" has multiple values, but it seems that migrate only looks at delta 0 of that field. Can this be done by with the entity_lookup plugin?

 field_product_category:
    plugin: entity_lookup
    source: Product category
    entity_type: taxonomy_term
    bundle_key: vid
    bundle: product_category
    value_key: field_erp_code
0

1 Answer 1

2

The entity_lookup plugin from the migrate_plus module already supports multi-valued fields. But you can specify manually the operator: IN if necessary.

See \Drupal\migrate_plus\Plugin\migrate\process\EntityLookup.

Try to debug this plugin and see what comes as the value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.