Call to a member function getPluginId() on null in Drupal\group\Entity\GroupRelationship->postCreate() (line 229 of /app/web/modules/contrib/group/src/Entity/GroupRelationship.php).

Created on 7 August 2025, about 1 month ago

Receiving this error upon attempting to migrate node relationships via a csv.

> drush migrate:import group_nodes

Error: Call to a member function getPluginId() on null in Drupal\group\Entity\GroupRelationship->postCreate() (line 229 of /app/web/modules/contrib/group/src/Entity/GroupRelationship.php) #0 /app/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(97): Drupal\group\Entity\GroupRelationship->postCreate(Object(Drupal\group\Entity\Storage\GroupRelationshipStorage))

process:
entity_id:
plugin: migration_lookup
migration: developments
source: id
gid:
plugin: migration_lookup
migration: groups
source: gid
type:
plugin: default_value
default_value: organization-group_node-development
destination:
plugin: 'entity:group_relationship'

An assist would be appreciated.

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

🇺🇸United States drupgirl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024