Import attempt via Configuration Synchronization UI fails with a fatal error
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3507815. --> Reported by: [mxh](https://www.drupal.org/user/1124384) Related to !471 !472 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When trying to import a single ECA configuration via configuration synchronization UI, a fatal error occurs and the import does not succeed.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ul> <li>Standard Drupal installation profile, install bpmn_io, eca_base, eca_user</li> <li>Create a simple ECA configuration with at least one action and save it.</li> <li>Manually export that ECA config item at <code>/admin/config/development/configuration/single/export</code> by just copying its contents</li> <li>Change a label of one of the actions contained in the ECA configuration so that the UI will detect a change and will try to import it</li> <li>Try to import it via <code>/admin/config/development/configuration/single/import</code></li> </ul> <p>The import attempt will fail with the following error message:</p> <pre>The website encountered an unexpected error. Try again later.<br><br>Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "private__...". in Drupal\Component\DependencyInjection\Container-&gt;get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).<br>Drupal\Core\Entity\EntityBase-&gt;__wakeup()</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Reason that this error occurs is the action plugin manager being attached to the ECA object or entity. That service is a decorated instance provided by the decorator, i.e. that's not a service directly provided by the service container. Thus case needs special handling during de-serialization.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue