Saving action "Set values to entity variable" returns error "Cannot load the "business_rules_variable" entity with NULL ID"

Created on 30 July 2021, over 3 years ago
Updated 26 March 2024, 8 months ago

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

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇳🇱Netherlands thomas.dutch

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024