# Creating and retrieving flat composition

**URL:** https://discourse.openehr.org/t/creating-and-retrieving-flat-composition/1135
**Category:** Tools
**Created:** [2 December 2020 08:54 UTC](https://discourse.openehr.org/t/creating-and-retrieving-flat-composition/1135 "2020-12-02T08:54:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Raksha\_R](https://discourse.openehr.org/user_avatar/discourse.openehr.org/raksha_r/32/777_2.png) [@Raksha\_R](https://discourse.openehr.org/u/Raksha_R)
#### Post date: [2 December 2020 08:54 UTC](https://discourse.openehr.org/t/creating-and-retrieving-flat-composition/1135/1 "2020-12-02T08:54:39Z")

</div>

Hi,

I’m trying to create flat composition of a template using docker container. I’m facing issues mentioned below after restarting docker composer.

1. During first try I’m able to create a composition, But after restarting, If I commit a composition I will get an error as mentioned below:

{  
“error”: “java.lang.IllegalArgumentException: Composition missing mandatory attribute: language”,  
“status”: “Internal Server Error”  
}

1. Secondly, I’m able to retrieve a composition using compositionId which is fetched after committing a composition. But after restarting, If I try to retrieve a same composition I can see different path coming up in the link attached below:

[compositionBody.odt](https://discourse.openehr.org/uploads/short-url/jSHoR5xju2Kmn72XxqI9l5EA3DT.odt) (19.3 KB)

Please find the attached template for your reference.

[EHRN Diagnosis.v1.oet](https://discourse.openehr.org/uploads/short-url/1MdeLy3zR1h8ibrmuAtfEFXCkTQ.oet) (3.0 KB)

Thanks,  
Raksha R

---

<div class="post-metadata">

### Author: ![birger.haarbrandt](https://discourse.openehr.org/user_avatar/discourse.openehr.org/birger.haarbrandt/32/24_2.png) [@birger.haarbrandt](https://discourse.openehr.org/u/birger.haarbrandt)
#### Post date: [2 December 2020 09:03 UTC](https://discourse.openehr.org/t/creating-and-retrieving-flat-composition/1135/2 "2020-12-02T09:03:41Z")

</div>

Hi Raksha,

flat format is in a beta status at the moment and we highly appreciate all issues reported. Would you mind creating an issue in github with the content provided here?

> **[ehrbase/ehrbase](https://github.com/ehrbase/ehrbase)**
>
> Contribute to ehrbase/ehrbase development by creating an account on GitHub.

Best,

Birger
