Unexpected error on model re import
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3306003. -->
Reported by: [rkoller](https://www.drupal.org/user/3217695)
Related to !219
>>>
<p>when testing <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/eca/-/work_items/3305971" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/eca/-/work_items/3305971</a></span> i also tried to re import the model. that caused another unexpected error unrelated to the one in the linked issue according to @jurgenhaas </p>
<pre>The website encountered an unexpected error. Please try again later.<br>TypeError: Drupal\config\StorageReplaceDataWrapper::replaceData(): Argument #2 ($data) must be of type array, bool given, called in /var/www/html/web/modules/contrib/eca/modules/ui/src/Form/Import.php on line 325 in Drupal\config\StorageReplaceDataWrapper->replaceData() (line 198 of core/modules/config/src/StorageReplaceDataWrapper.php).<br>Drupal\config\StorageReplaceDataWrapper->replaceData('views.view.', ) (Line: 325)<br>Drupal\eca_ui\Form\Import->submitForm(Array, Object)<br>call_user_func_array(Array, Array) (Line: 114)<br>Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)<br>Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 592)<br>Drupal\Core\Form\FormBuilder->processForm('eca_import', Array, Object) (Line: 320)<br>Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)<br>Drupal\Core\Controller\FormController->getContentResult(Object, Object)<br>call_user_func_array(Array, Array) (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)<br>Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)<br>Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)<br>Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)<br>Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)<br>Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)<br>Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)<br>Drupal\Core\DrupalKernel->handle(Object) (Line: 19)</pre><p>i've added the model i tried to re import to the issue. as noted in the other issue the model is just a collection of all available events actions and conditions and not all fields are filled properly - the sole purpose was setting up a model to check its micro copy in context. </p>
issue