Conflict with Canvas and Rename filename Automator
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3561693. -->
Reported by: [heyyo](https://www.drupal.org/user/474388)
Related to !1288 !1287
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Renaming an image filename with AI automator in a website where Drupal Canvas is present produces an error.</p>
<p><code>InvalidArgumentException: Property value is unknown. in Drupal\Core\TypedData\TypedDataManager->getPropertyInstance() (line 204 of /var/www/html/web/core/lib/Drupal/Core/TypedData/TypedDataManager.php).</code></p>
<pre>#0 /var/www/html/web/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php(123): Drupal\Core\TypedData\TypedDataManager->getPropertyInstance(Object(Drupal\canvas\Plugin\Field\FieldTypeOverride\ImageItemOverride), 'value', NULL)<br>#1 /var/www/html/web/modules/contrib/ai/modules/ai_automators/src/Plugin/FieldWidgetAction/AutomatorBaseAction.php(308): Drupal\Core\TypedData\Plugin\DataType\Map->get('value')<br>#2 /var/www/html/web/modules/contrib/ai/modules/ai_automators/src/Plugin/FieldWidgetAction/AutomatorBaseAction.php(270): Drupal\ai_automators\Plugin\FieldWidgetAction\AutomatorBaseAction->saveFormValues(Array, 'field_media_ima...', Object(Drupal\media\Entity\Media), 0)<br>#3 /var/www/html/web/modules/contrib/ai/modules/ai_automators/src/Plugin/FieldWidgetAction/ImageFilename.php(52): Drupal\ai_automators\Plugin\FieldWidgetAction\AutomatorBaseAction->populateAutomatorValues(Array, Object(Drupal\Core\Form\FormState), 'field_media_ima...', 0)<br>#4 /var/www/html/web/modules/contrib/ai/modules/ai_automators/src/Plugin/FieldWidgetAction/ImageFilename.php(45): Drupal\ai_automators\Plugin\FieldWidgetAction\ImageFilename->populateAutomatorValues(Array, Object(Drupal\Core\Form\FormState), 'field_media_ima...', 0)<br>#5 [internal function]: Drupal\ai_automators\Plugin\FieldWidgetAction\ImageFilename->aiAutomatorsAjax(Array, Object(Drupal\Core\Form\FormState), Object(Symfony\Component\HttpFoundation\Request))<br>#6 /var/www/html/web/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array(Array, Array)</pre><h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>Enable Media<br>
Enable Canvas<br>
Enable Ai Automator<br>
Adding an automator to rename filename in the image field inside Media Image type with Field Widget<br>
When clicking the button to renamem we see an error</p>
<p><img src="https://www.drupal.org/files/issues/2025-12-05/image%20%287%29.png" width="600" alt="Config automator rename file part 1"><br>
<img src="https://www.drupal.org/files/issues/2025-12-05/image%20%288%29.png" width="600" alt="Config automator rename file part 1"></p>
<p><img src="https://www.drupal.org/files/issues/2025-12-05/2025-12-05_15-56.png" width="600" alt="error when renaming filename"></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
issue