- πΈπ°Slovakia coaston
Hi djween,
I tried to replicate your case #27 due to learning process, however I am getting following issue once I want to create a new node with User Agenda Parent
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null: INSERT INTO "node_field_data" ("nid", "vid", "type", "langcode", "status", "uid", "title", "created", "changed", "promote", "sticky", "default_langcode", "revision_translation_affected") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12); Array ( [:db_insert_placeholder_0] => 157630 [:db_insert_placeholder_1] => 219667 [:db_insert_placeholder_2] => user_agenda_children [:db_insert_placeholder_3] => en [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => 3 [:db_insert_placeholder_6] => [:db_insert_placeholder_7] => 1676649418 [:db_insert_placeholder_8] => 1676649418 [:db_insert_placeholder_9] => 0 [:db_insert_placeholder_10] => 0 [:db_insert_placeholder_11] => 1 [:db_insert_placeholder_12] => 1 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 811 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
I am not sure why the title is null - i have configured "set values to entity variable action" with {{setup_a_view_results_variable_->title}}
Also I am not sure about contextual filter , have you configured "provide the default value" ??
- πΊπΈUnited States djween
@coaston
--First check your view outside of business rules. As in create a page from your view and make sure there are actual results.
--yes, in my case I have provided default value in the contextual filter. I am using "content id from url" in my particular case to filter the view.
--And in BR in the views variable, for the argument I have: [node:nid].
--Also make sure you have patch #9 installed.