# Bad Request message: Supplied template has nil or empty description

**URL:** <https://discourse.openehr.org/t/bad-request-message-supplied-template-has-nil-or-empty-description/5728>\
**Category:** Archetype Designer\
**Tags:** template\
**Created:** [18 September 2024 02:13 UTC](https://discourse.openehr.org/t/bad-request-message-supplied-template-has-nil-or-empty-description/5728 "2024-09-18T02:13:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)\
**Post date:** [18 September 2024 02:13 UTC](https://discourse.openehr.org/t/bad-request-message-supplied-template-has-nil-or-empty-description/5728/1 "2024-09-18T02:13:41Z")

</div>

When trying POST an OPT template to EHRBase via the [openEHR-tool](https://discourse.openehr.org/t/openehr-tool), I got an error message (Bad Request): _Supplied template has nil or empty description_.

```auto
Results

failure 400
{'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '0', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Wed, 18 Sep 2024 02:02:03 GMT', 'Connection': 'close'}
{"error":"Bad Request","message":"Supplied template has nil or empty description"}

```

The OPT template is an export file from the [Archetype Designer](https://tools.openehr.org/designer). The template passes the default validation.

 ![image](https://discourse.openehr.org/uploads/default/original/2X/6/69669869b6c045e177f3613a050b102da3718a9e.png)

Why such an error message? Just because **the fields of the template description** , such as **keywords** , **purpose** , **use** and **misuse** , are empty? I checked this potential reason. All these fields have been populated. But I still got the same error message.

Thanks.

---

<div class="post-metadata">

**Author:** ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)\
**Post date:** [18 September 2024 03:06 UTC](https://discourse.openehr.org/t/bad-request-message-supplied-template-has-nil-or-empty-description/5728/2 "2024-09-18T03:06:07Z")

</div>

**Solution** :  
It seems that the fileds for _Original Author/Publisher_ on the tab _Attribution_ should also be populated **at least**.

![image](https://discourse.openehr.org/uploads/default/original/2X/5/5e569d4c6712425a3c4d5793d8fd4761cb1efaa9.png)
