Problem/Motivation

I receive the following error after attempting to save a new "Set values to entity variable" action:

The website encountered an unexpected error. Please try again later.
AssertionError: Cannot load the "business_rules_variable" entity with NULL ID. in assert() (line 249 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).

Steps to reproduce

Install Business Rules 2.0.0-beta1 on Drupal 8.9.17.

  1. Add new "Empty Entity variable" of type "User" and bundle "user".
  2. Add new action "Set values to entity variable" with "Target entity type" > "User" and "Target entity bundle" > "user".
  3. Save action.

This immediately results in a white page with the above error. The action is not saved.

Different entity types and bundles return the same error.

Drupal version: 8.9.17
Business rules: 2.0.0-beta1 / 2.x-dev (tried both)
PHP 7.3.15

Anyone else encountered this issue?

Kind regards,

Thomas

Command icon Show commands

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

thomas.dutch created an issue. See original summary.

thomas.dutch’s picture

Issue summary: View changes
thomas.dutch’s picture

Assigned: thomas.dutch » Unassigned
j.’s picture

Same here.
AssertionError: Cannot load the "business_rules_variable" entity with NULL ID. in assert() (line 244 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

delacosta456’s picture

hi i am facing this issue too

Any help please

delacosta456’s picture

Priority: Normal » Major
delacosta456’s picture

i am setting this to major because i am facing it on saving entity variable

The website encountered an unexpected error. Please try again later.
AssertionError: Cannot load the "business_rules_variable" entity with NULL ID. in assert() (line 249 of core/lib/Drupal/Core/Entity/EntityStorageBase.php). 

sabina.h made their first commit to this issue’s fork.

sabina.h’s picture

Version: 2.0.0-beta1 » 2.x-dev
Status: Active » Needs review
delacosta456’s picture

hi @sabina.h
please is there any reason the test fail ?
Is there any patch you can provide please ?

smith76’s picture

Hi,
Same problem with the latest version "3.0.0-beta1" and "Drupal 10.2.3"

rcodina’s picture

@Smith76 Does the patch work for you?

rcodina’s picture

Version: 2.x-dev » 3.x-dev
smith76’s picture

Hi,
Sorry but which patch are you talking about?