# Error when updating template

**URL:** <https://community.hubspot.com/t/error-when-updating-template/118878>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [October 22, 2024, 9:38am UTC](https://community.hubspot.com/t/error-when-updating-template/118878 "2024-10-22T09:38:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DNovosel](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@DNovosel](https://community.hubspot.com/u/DNovosel)\
**Post date:** [October 22, 2024, 9:38am UTC](https://community.hubspot.com/t/error-when-updating-template/118878/1 "2024-10-22T09:38:28Z")

</div>

I have an existing e-mail template in Content/Design section. I have created transactional e-mail out of this template and have been sending it for a few months.

I wanted to update template, by changing some text, and I am getting this errors when I click on “Publish changes” button:

1. Error:Cannot resolve property

2. Warning:0:-1The template does not contain the module email\_body, it will not work for blog/rss emails

Changes in the template do not get reflected in e-mail anymore, and I am effectively blocked.

How do I fix this problem?

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/41969_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [October 22, 2024, 9:45am UTC](https://community.hubspot.com/t/error-when-updating-template/118878/2 "2024-10-22T09:45:26Z")

</div>

Hi @DNovosel,

The error specifically indicates that your template is missing the required “email\_body” module. If you accidentally removed the module, you must add it back to the template.

---

<div class="post-metadata">

**Author:** ![DNovosel](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@DNovosel](https://community.hubspot.com/u/DNovosel)\
**Post date:** [October 22, 2024, 10:39am UTC](https://community.hubspot.com/t/error-when-updating-template/118878/3 "2024-10-22T10:39:11Z")

</div>

No, I did not remove it, I created template without it maybe a year ago. Seems that Hubspot changed some requirement in the meantime.  
I could not figure out from the documentation where to add that tag. Can you point me to a specific example of template having that tag set?  
Where

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [October 23, 2024, 1:58pm UTC](https://community.hubspot.com/t/error-when-updating-template/118878/4 "2024-10-23T13:58:39Z")

</div>

Hi @DNovosel,

When you edit your template in the design manager, you will need to add this module for the email body in your email template:

`{% module "email_template_main_email_body" path="@hubspot/email_body" label="Main Email Body" %}`

You can see an example of this is used when you create a new email template: first select HTML & HubL, then select “Email” as the Template type

 ![evaldas_0-1729691866283.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/1X/168cd70e723eb016b8c41cd11e2ed935a1f47fb7.jpeg)
