Created on 19 January 2022, almost 3 years ago
Updated 13 July 2024, 4 months ago

Problem/Motivation

When performing the import, I get the following error:

Notice: Undefined index: title in Drupal\entities_import\FieldDetails::getFieldType() (line 60 of modules\contrib\entities_import\src\FieldDetails.php).
Drupal\entities_import\FieldDetails::getFieldType('taxonomy_term', NULL, 'title') (Line: 24)
Drupal\entities_import\GenerateExcelData::getExcelArrayIndex(Array, Array, Array, 'taxonomy_term', NULL, Array) (Line: 183)
Drupal\entities_import\Form\FileUploadForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 592)
Drupal\Core\Form\FormBuilder->processForm('entities_file_upload', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Not a single line is imported.

Steps to reproduce

The configuration looks like this (see screenshot 2022-01-19 175226).
The first rows of the Excel file look like this (see screenshot 2022-01-19 175420)
The columns field_sichtbarkeit and field_terminkategorie are taxonomy fields. The columns field_anwesende and field_lieder are multi-valued fields. They are separated by |. Since the field title can contain any non-unique values, I added the column field_datum to the entries for "fields with unique values".
The field field_anwesende is an entity reference to the users. Is it possible that this entity reference is not supported?

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany uwe_mue

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.

  • 🇮🇳India Elavarasan R

    Updated in new release. Please check the sample excel for both content and taxonomy in the doc folder.
    From the above error report, I can see taxonomy should only support "name" instead of title.

    Drupal\entities_import\FieldDetails::getFieldType('taxonomy_term', NULL, 'title') (Line: 24).

  • Status changed to Fixed 4 months ago
Production build 0.71.5 2024