Problem/Motivation

Getting the following warning during migrations using the entity_lookup plugin on a non-bundlable entity:

[warning] Undefined array key "target_bundles" EntityLookup.php:177

Steps to reproduce

Create and run a node migration with the following user field process definition:

  uid:
    -
      plugin: entity_lookup
      source: email
      value_key: mail
      entity_type: user
      access_check: false
      ignore_case: true
    -
      plugin: default_value
      default_value: 1

Proposed resolution

TBD

CommentFileSizeAuthor
#2 undefined_array_key-3464743.patch789 bytessarwan_verma

Comments

jcandan created an issue. See original summary.

sarwan_verma’s picture

Status: Active » Needs review
StatusFileSize
new789 bytes

Hi,

I have resolved the 'undefined array key target bundles' issue and attached a patch.
Please review and verify.
Thanks.

jcandan’s picture

Version: 6.0.2 » 6.0.4
Status: Needs review » Reviewed & tested by the community

One thing I noticed prior to the patch, this warning only appeared for 1 of 3 of our migrations with the above uid field process configurations. Not sure why that is.

Either way, patch #2 applied successfully on 6.0.4 and warnings have stopped. Thanks!

heddn’s picture

Version: 6.0.4 » 6.0.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks for your contributions.

  • heddn committed b273092d on 6.0.x
    Issue #3464743 by sarwan_verma, jcandan, heddn: Fix undefined array key...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.