# Invalid variable name error/ Failing to render image

**URL:** <https://community.mindstudio.ai/t/invalid-variable-name-error-failing-to-render-image/1947>\
**Category:** Bug Reports\
**Created:** [February 5, 2026, 4:24pm UTC](https://community.mindstudio.ai/t/invalid-variable-name-error-failing-to-render-image/1947 "2026-02-05T16:24:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![suzanne](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@suzanne](https://community.mindstudio.ai/u/suzanne)\
**Post date:** [February 5, 2026, 4:24pm UTC](https://community.mindstudio.ai/t/invalid-variable-name-error-failing-to-render-image/1947/1 "2026-02-05T16:24:49Z")

</div>

1. What happens: Followed the step by step on the video “Build Your First AI Agent in MINUTES”. This was to edit an image. Unfortunately, when I go to run the prompt, it is giving me an error saying the variable name is not valid. The {{change description}} variable popped up as an option so I had selected that. However, I went back in and removed the space as it looks like that may have been the issue but when I republish, it is still not working. I used the debugger to try and resolve it that way and used the suggested edit, that also did not work and produces the same error, despite me republishing and everything looking (as far as I can see) the same in the video. It continues to say “Processing” and does not ever process the image.
2. Describe the intended behavior: the intended behavior is for the agent to generate an image
3. link to AI Agent where this bug occurs: [https://app.mindstudio.ai/agents/profile-picture-transformer-21095a98/run/ea1f6cce-1952-400c-a50d-668ad47ede5d](https://app.mindstudio.ai/agents/profile-picture-transformer-21095a98/run/ea1f6cce-1952-400c-a50d-668ad47ede5d)
4. ![Screenshot 2026-02-05 at 10.55.07 AM](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/2X/4/4d70a8eaa1bb2750cc4ad8d0ddd2e7cdca6b15ad.png)

 ![Screenshot 2026-02-05 at 11.23.54 AM](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/2X/6/636f51d47c764617967f99419c45dedaafa2591e.png)

---

<div class="post-metadata">

**Author:** ![Alex\_MindStudio](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/alex_mindstudio/32/27_2.png) [@Alex\_MindStudio](https://community.mindstudio.ai/u/Alex_MindStudio)\
**Post date:** [February 5, 2026, 5:39pm UTC](https://community.mindstudio.ai/t/invalid-variable-name-error-failing-to-render-image/1947/2 "2026-02-05T17:39:53Z")

</div>

Hi @suzanne,

Thanks for the post!

Could you share a remix link to your agent? That’ll let me create a copy in my workspace to review the setup.  
You can find the remix link by following these steps:

1. Click the agent name
2. Go to Remixing
3. Make sure it’s enabled and click Copy Remix Link

Please publish the agent before sharing the remix link so I can copy the latest version.

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/2X/1/11ff2a1914a374fcc7249010334a9d673b968257.png)

Looking forward to your reply.

---

<div class="post-metadata">

**Author:** ![suzanne](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@suzanne](https://community.mindstudio.ai/u/suzanne)\
**Post date:** [February 5, 2026, 5:53pm UTC](https://community.mindstudio.ai/t/invalid-variable-name-error-failing-to-render-image/1947/3 "2026-02-05T17:53:27Z")

</div>

Thank you so much for the reply! Here is the Remix link: [https://app.mindstudio.ai/agents/profile-picture-transformer-21095a98/remix](https://app.mindstudio.ai/agents/profile-picture-transformer-21095a98/remix)

---

<div class="post-metadata">

**Author:** ![Alex\_MindStudio](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/alex_mindstudio/32/27_2.png) [@Alex\_MindStudio](https://community.mindstudio.ai/u/Alex_MindStudio)\
**Post date:** [February 5, 2026, 6:24pm UTC](https://community.mindstudio.ai/t/invalid-variable-name-error-failing-to-render-image/1947/4 "2026-02-05T18:24:13Z")

</div>

Thanks for the link!

It looks like the Custom Interface is causing this issue. You’ve updated the User Input variable, but the code in the Custom Interface of the User Input block stayed the same.

Here’s how you can fix this:

1. Open the Interface Designer in the User Input block  

2. Paste the prompt below:  
`Please update the user input variables to {{refimg}} and {{ChangeDescription}} in code`

3. Once the code is updated, click Compile, and then Publish the Agent  

Let me know how it goes!
