Score:0

Aggregation causes problems with a computed field

yt flag

I am running a Drupal 9.3.3 site and I have created a computed field in my custom module. After adding the computed field, I can no longer save a view if I also have aggregation turned on. I get this error when trying to load data or save the View.

Drupal\Core\Entity\Sql\SqlContentEntityStorageException: Column information not available for the field_computed_poc field. in Drupal\Core\Entity\Sql\DefaultTableMapping->getFieldColumnN

The computed field works correctly when aggregation (by entity ID on a hidden node ID field) is not turned on.

I applied the patch attached to comment #44 in Views does not support computed bundle fields.

Any help is greatly appreciated.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.