# Error in insert fragment function

**URL:** <https://discuss.avogadro.cc/t/error-in-insert-fragment-function/3419>\
**Category:** Support\
**Created:** [February 16, 2021, 9:31am UTC](https://discuss.avogadro.cc/t/error-in-insert-fragment-function/3419 "2021-02-16T09:31:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekenson](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/e/ce7236/32.png) [@ekenson](https://discuss.avogadro.cc/u/ekenson)\
**Post date:** [February 16, 2021, 9:31am UTC](https://discuss.avogadro.cc/t/error-in-insert-fragment-function/3419/1 "2021-02-16T09:31:21Z")

</div>

I believe this to be a bug with Avogadro

## Environment Information

Avogadro version: 1.2.0  
Operating system and version: MacOS 11.12.1

## Expected Behavior

Expect fragment inserted when using the build-\>insert-\>fragment

## Actual Behavior

Fragment not inserted. Receiving the following error message.

Cannot read molecular file /Applications/Avogadro.app/Contents/share/avogadro/fragments/aromatics/benzene.cml.

## Steps to Reproduce

1. Open Avogadro
2. Build -\> Insert -\> Fragment
3. Search for benzene
4. Choose the benzene fragment.

Error is sometimes not reproducible. Occasionally it works only to produce the same error message when trying to add another fragment.

Regards  
Johan
