# Problem with Template import

**URL:** <https://discourse.openehr.org/t/problem-with-template-import/6310>\
**Category:** Archetype Designer\
**Created:** [10 February 2025 09:32 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310 "2025-02-10T09:32:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brice](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Brice](https://discourse.openehr.org/u/Brice)\
**Post date:** [10 February 2025 09:32 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/1 "2025-02-10T09:32:33Z")

</div>

Hi, we are facing a big problem with Archetype Designer that prevents us from working normally with Templates.

AD is not able to import the parent archetypes type Composition, reporting that they are not present in the imported file, although we have checked that this is not the case. As a result, we can neither import Templates nor work with them.

The error is shown both when importing templates from a file and from another repository.

 ![image](https://discourse.openehr.org/uploads/default/original/2X/f/fad1a6263eb54fd483e4cf693cd19ba2a9ae2f8d.png)  
 ![image](https://discourse.openehr.org/uploads/default/original/2X/b/b57d44a9c40ffc7c8b86113643ea726d9196d210.png)

For the time being, we have found a workaround, it is possible to import the archetypes on the one hand, and the templates later, but it still shows some error and we do not know if it is reliable.

Another alternative, faster, is to import the templates without validation, “as is”.

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

---

<div class="post-metadata">

**Author:** ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)\
**Post date:** [10 February 2025 09:48 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/2 "2025-02-10T09:48:03Z")

</div>

Can you share the .zip file somewhere? Also - what is the source of the .zip file - AD or CKM or ???

---

<div class="post-metadata">

**Author:** ![Brice](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Brice](https://discourse.openehr.org/u/Brice)\
**Post date:** [10 February 2025 10:05 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/3 "2025-02-10T10:05:14Z")

</div>

Sure [AD/Alta UCI (1).zip at main · hugobriceno/AD · GitHub](https://github.com/hugobriceno/AD/blob/main/Alta%20UCI%20(1).zip)

The source of the zip file is AD

AD does not find the Composition Report archetype.

 ![image](https://discourse.openehr.org/uploads/default/original/2X/0/03b05ee6f068725cea6ec4363bf831ed374dd572.png)

But the archetype is present in the zip file

 ![image](https://discourse.openehr.org/uploads/default/original/2X/9/93e0ff24f63be0d361879d65b2b0c309a1d02622.png)

Importing the Fileset without validation shows no errors… but is it reliable?

---

<div class="post-metadata">

**Author:** ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)\
**Post date:** [10 February 2025 11:18 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/4 "2025-02-10T11:18:57Z")

</div>

I can reproduce the error and can’t see any obvious reason. There are sometimes issues with resolving parents of specialised archetype but none I can see here.

I would be fairly comfortable that it is ok to ignore the error - I can load the template into clean repo and the template loads without any issues.

You should report the error to Better though.

@borut.fabjan ?

---

<div class="post-metadata">

**Author:** ![Brice](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Brice](https://discourse.openehr.org/u/Brice)\
**Post date:** [10 February 2025 12:12 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/5 "2025-02-10T12:12:49Z")

</div>

Thank you for your help. This error did not occur a few days ago, maybe it is a version change.

Right now, we have some templates pending to go into production, much more extensive than the example shown, and it would be literally impossible to manually check that the import is correct.

We will report this issue to Better too.

---

<div class="post-metadata">

**Author:** ![borut.fabjan](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@borut.fabjan](https://discourse.openehr.org/u/borut.fabjan)\
**Post date:** [11 February 2025 11:12 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/6 "2025-02-11T11:12:48Z")

</div>

Hi,

we updated AD to 1.24.15 on Friday. Adding some improvements for .OET template handling. Unfortunately we overlooked one case when handling native format 😉

The error looks terrible, I agree, but it can be ignored since template is imported correctly.

Will fix the issue and update AD ASAP (ETA today).

---

<div class="post-metadata">

**Author:** ![Brice](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Brice](https://discourse.openehr.org/u/Brice)\
**Post date:** [11 February 2025 13:08 UTC](https://discourse.openehr.org/t/problem-with-template-import/6310/7 "2025-02-11T13:08:18Z")

</div>

It’s fixed in version 1.24.16. Thanks a lot!
