Server error when generating example composition

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?

Hi @Meelzak ,

would you mind creating an issue in the ehrbase Github including said template(s)?