Could not retrieve data definition for field

Created on 1 March 2019, almost 6 years ago
Updated 5 September 2023, over 1 year ago

I have problem with installation. I get this message, after search api module is enabled:

[Fri, 03/01/2019 - 15:34] [Error] [search_api] [client: 127.0.0.1, ] Drupal\search_api\SearchApiException while adding Views handlers for field Revisions: Content ยป Categories on index Requests: Could not retrieve data definition for field 'Categories' on index 'Articles'. in Drupal\search_api\Item\Field->getDataDefinition().

I try resave index and resave Views, which use this index, but it hasn't any effect. Do you have some idea, how I can fix it?

PS: It return same error, If I am using content without revision.

๐Ÿ’ฌ Support request
Status

Fixed

Version

1.11

Component

Views integration

Created by

๐Ÿ‡จ๐Ÿ‡ฟCzech Republic siva01

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

Comments & Activities

Not all content is available!

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

  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands Martijn Houtman

    I know this is a very old ticket, but I ran into this message this week, and found out it was due to a field that was added to the index, while the bundle that the field belongs to was excluded from being indexed. I think this happened to us due to a faulty git merge, but I think it might also happen if you add the field first, and then after exclude the bundle that the field belongs to. Saving the field list again will remove the field, as it should, but as long as you do not re-save the field list, the error seems to pop up.

    Related ticket: https://www.drupal.org/project/search_api/issues/2769759#comment-15217836 ๐Ÿ› Could not retrieve data definition for field / Column 'server_id' cannot be null Closed: cannot reproduce

Production build 0.71.5 2024