Needs review
Project:
Group
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2026 at 14:03 UTC
Updated:
12 Nov 2026 at 11:08 UTC
Jump to comment: Most recent
Seeing this in kernel tests on 11.5 with Group 2. Not 100% sure that this isn't due to something in my project, but I think it does not hurt to be defensive about this and filter out empty values as there might be an empty target_id in the list, then it attempts to load [NULL].
TypeError: Drupal\Core\Entity\EntityStorageBase::buildNotFoundCacheId(): Argument #1 ($id) must be of type string|int, null given
Run the array_column() through an array_filter()
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
berdirComment #4
berdirThis turned out to be an inconsistent table mapping which failed to properly load the values, but it might still be beneficial to be defensive about this.