Modeler API: Warning: Undefined array key "bpmn2:documentation" after saving a model
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3530123. -->
Reported by: [thejimbirch](https://www.drupal.org/user/2507260)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The warning appears twice.</p>
<pre>Warning: Undefined array key "bpmn2:documentation" in Drupal\bpmn_io\Service\Parser->getDocumentation() (line 145 of modules/contrib/bpmn_io/src/Service/Parser.php).<br><br>Drupal\bpmn_io\Service\Parser->getDocumentation() (Line: 376)<br>Drupal\bpmn_io\Plugin\modeler_api_modeler\BpmnIo->getDocumentation() (Line: 311)<br>Drupal\modeler_api\Api->prepareModelFromData() (Line: 145)<br>Drupal\modeler_api\Api->validateEmbed()<br>call_user_func_array() (Line: 82)<br>Drupal\Core\Form\FormValidator->executeValidateHandlers() (Line: 275)<br>Drupal\Core\Form\FormValidator->doValidateForm() (Line: 118)<br>Drupal\Core\Form\FormValidator->validateForm() (Line: 585)<br>Drupal\Core\Form\FormBuilder->processForm() (Line: 321)<br>Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)<br>Drupal\Core\Controller\FormController->getContentResult()<br>call_user_func_array() (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 622)<br>Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)<br>Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)<br>Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)<br>Drupal\Core\StackMiddleware\Session->handle() (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)<br>Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 116)<br>Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)<br>Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)<br>Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)<br>Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)<br>Drupal\Core\DrupalKernel->handle() (Line: 19)</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Create an agent using the modeller<br>
Save it<br>
See 2 warnings</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>TBD</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>TBD</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>TBD</p>
<h3 id="summary-api-changes">API changes</h3>
<p>TBD</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>TBD</p>
issue