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-&gt;getDocumentation() (line 145 of modules/contrib/bpmn_io/src/Service/Parser.php).<br><br>Drupal\bpmn_io\Service\Parser-&gt;getDocumentation() (Line: 376)<br>Drupal\bpmn_io\Plugin\modeler_api_modeler\BpmnIo-&gt;getDocumentation() (Line: 311)<br>Drupal\modeler_api\Api-&gt;prepareModelFromData() (Line: 145)<br>Drupal\modeler_api\Api-&gt;validateEmbed()<br>call_user_func_array() (Line: 82)<br>Drupal\Core\Form\FormValidator-&gt;executeValidateHandlers() (Line: 275)<br>Drupal\Core\Form\FormValidator-&gt;doValidateForm() (Line: 118)<br>Drupal\Core\Form\FormValidator-&gt;validateForm() (Line: 585)<br>Drupal\Core\Form\FormBuilder-&gt;processForm() (Line: 321)<br>Drupal\Core\Form\FormBuilder-&gt;buildForm() (Line: 73)<br>Drupal\Core\Controller\FormController-&gt;getContentResult()<br>call_user_func_array() (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 622)<br>Drupal\Core\Render\Renderer-&gt;executeInRenderContext() (Line: 121)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;wrapControllerExecutionInRenderContext() (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-&gt;Drupal\Core\EventSubscriber\{closure}() (Line: 183)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw() (Line: 76)<br>Symfony\Component\HttpKernel\HttpKernel-&gt;handle() (Line: 53)<br>Drupal\Core\StackMiddleware\Session-&gt;handle() (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle() (Line: 28)<br>Drupal\Core\StackMiddleware\ContentLength-&gt;handle() (Line: 116)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;pass() (Line: 90)<br>Drupal\page_cache\StackMiddleware\PageCache-&gt;handle() (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle() (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle() (Line: 53)<br>Drupal\Core\StackMiddleware\AjaxPageState-&gt;handle() (Line: 51)<br>Drupal\Core\StackMiddleware\StackedHttpKernel-&gt;handle() (Line: 715)<br>Drupal\Core\DrupalKernel-&gt;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