# Can not save template

**URL:** <https://community.hubspot.com/t/can-not-save-template/76431>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [March 3, 2023, 10:16am UTC](https://community.hubspot.com/t/can-not-save-template/76431 "2023-03-03T10:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viktar](https://avatars.discourse-cdn.com/v4/letter/v/3d9bf3/32.png) [@Viktar](https://community.hubspot.com/u/Viktar)\
**Post date:** [March 3, 2023, 10:16am UTC](https://community.hubspot.com/t/can-not-save-template/76431/1 "2023-03-03T10:16:55Z")

</div>

Hello!

I have an issue to save template.

```lia-code-sample
{% set queryParameters ='region=' + html_lang %}
{% set all_vacancies = hubdb_table_rows(5688447, queryParameters) %}

```

 ![11HdvTu.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/0/f0ba5cd0aa19b7399edd20858b8c43e12787493e.png)

![HL4txbQ.png](https://d2qpr2jzcazej7.cloudfront.net/optimized/3X/c/5/c532109ccbf6438936209568606c429501a524a4_2_690x55.png)

But in this case saving works well:

`{% set all_vacancies = hubdb_table_rows(5688447, 'region=lt') %}`

What is wrong?

UPD:

 ![Снимок экрана от 2023-03-03 13-40-52.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/7/279cd9c90353ca2ee79b514f645f8dd285caf798.png)

But it should return 0 rows instead the error.

It looks like a hubspot bug

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [March 3, 2023, 2:13pm UTC](https://community.hubspot.com/t/can-not-save-template/76431/2 "2023-03-03T14:13:23Z")

</div>

Does this work?

`{% set all_vacancies = hubdb_table_rows(5688447, 'region=en') %}`

Becuase it looks like the erorr is that there’s no region “en” in your HubDB table (in which case you can just add the option to the column).

* * *

**Stephanie O’Gay Garcia**

[Freelance HubSpot CMS Developer](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

---

<div class="post-metadata">

**Author:** ![Viktar](https://avatars.discourse-cdn.com/v4/letter/v/3d9bf3/32.png) [@Viktar](https://community.hubspot.com/u/Viktar)\
**Post date:** [March 3, 2023, 4:22pm UTC](https://community.hubspot.com/t/can-not-save-template/76431/3 "2023-03-03T16:22:46Z")

</div>

Becuase it looks like the erorr is that there’s no region “en” in your HubDB table (in which case you can just add the option to the column).

- it is a solution, but it is wrong. Template should not know about data structure. Database should return 0 rows instead of the error message
