# Server error when generating example composition **Category:** [Resources](https://discourse.openehr.org/c/resources/71) **Created:** 2023-10-12 09:51 UTC **Views:** 493 **Replies:** 1 **URL:** https://discourse.openehr.org/t/server-error-when-generating-example-composition/4534 --- ## Post #1 by @Meelzak Hi, I recently implemented an EHRBase instance and I added templates to it. I'm using the openEHR Rest API and I was trying to generate example compositions using the following endpoint: **/rest/openehr/v1/definition/template/adl1.4/{template_id}/example** The problem that I'm running into is that, some templates work and generate a proper composition but many templates return an **HTTP: 500 internal server error**. I have no clue why this happens and the templates seem to be succesfully stored, so I don't see any problem. Does anyone have experienced a similar issue and could know the cause of it? --- ## Post #2 by @birger.haarbrandt Hi @Meelzak , would you mind creating an issue in the ehrbase Github including said template(s)? Best, Birger --- **Canonical:** https://discourse.openehr.org/t/server-error-when-generating-example-composition/4534 **Original content:** https://discourse.openehr.org/t/server-error-when-generating-example-composition/4534