Unhelpful message for missing "Rendered item" configuration during indexing

Created on 27 February 2020, over 4 years ago
Updated 21 February 2024, 4 months ago

We are doing a batch addition of a bunch of migrated data, so we get flooded with this message:
Warning: While indexing items on search index Default content index, 1 item(s) did not have a view mode configured for one or more "Rendered item" fields.

There is nothing in that message that helps me solve it; no entity type, no entity id, or even a "View entity" link.

Messages with no data are unhelpful and might as well not happen.

✨ Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States NancyDru Boston

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.

  • πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area

    Today I got this (Drupal 10.1.5 Search Api 8.x-1.30):

    Workflow:
    I install theme (for new node type), install module (with content for node type):
    Now this is correct:
    [warning] The field Rendered item (rendered_item) on index Default content index is missing view mode configuration for some datasources or bundles. Please review (and re-save) the field settings.

    Then I do:
    drush cex, drush cim, drush cr (workflow see https://www.drupal.org/project/search_api/issues/3393946 πŸ› Highlight excerpts in frontend only works with twig files with an initial activation of option excerpt_always Closed: works as designed )

     [success] Configuration successfully exported to sites/default/files/config_sync.
    sites/default/files/config_sync
     [notice] There are no changes to import.
     [warning] The field %field_label (rendered_item) on index Default content index is missing view mode configuration for some datasources or bundles. Please review (and re-save) the field settings.
     [success] Cache rebuild complete.
    

    The string with %field_label was not solved with a value. Maybe no fallback?

  • πŸ‡ΊπŸ‡ΈUnited States justclint

    Thanks @SomebodySysop. Your suggestion worked. We were seeing this error in our logs which didnt have any links so for anyone else in the same situation, these are the 2 pages to save:

    /admin/config/search/search-api/index/content/fields/edit/rendered
    /admin/config/search/search-api/index/content/fields

  • πŸ‡ΊπŸ‡ΈUnited States jhuebsch

    Thanks @SomebodySysop and @justclint. The TWO pages that had to be re-saved is what kept me up. I kept re-saving the "field settings" form not realizing I had to also save the "Fields" page form until I came across this issue.

Production build 0.69.0 2024