YAML Parse Failure, Model Continues Processing
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3523818. -->
Reported by: [bdunphy](https://www.drupal.org/user/3786112)
Related to !542
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>This issue occurs when writing a <code>Expirable Key Value Store</code> with the format of the value is set to be YAML. If the supplied value fails YAML parsing, the model processing continues despite the failure. There is a message in the ECA log of: <em>Tried parsing a value as YAML format, but parsing failed.</em>. As this is executed in KeyValueStoreBase.php, the same issue occurs for <code>Key Value Store</code>.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Create a model with the following:</p>
<ul>
<li>Custom event to trigger on</li>
<li>Add the action of <code>EXPIRABLE KEY VALUE STORE: WRITE</code></li>
<li>Set <code>Interpret above value as YAML format</code> to yes
</li><li>Set the value to incorrectly formatted YAML
</li><li>Add an action to display a message (to show continued processing)
</li></ul>
<p>Trigger the event.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>As with other actions which cause failure and processing stops, the same should be true here.</p>
issue