File Exception Error Element Groups

My Seamly2d crashed while editing a pattern and I can’t reopen it because this error shows up: Exception: element ‘groups’ is not allowed for content model ‘(calculation+,modeling+,pieces+,groups?,images?)’

Is there any way to fix that file?

BauchtascheInforama.sm2d (37,8 KB)

Thanks in advance for any help

2 Líbí se

Yes.

Here’s your file fixed.

BauchtascheInforama._fixed.sm2d (37.8 KB)

2 things…

  1. You probably need to update Seamly to the latest release which will fix the issue with writing any new files with groups.

  2. If it happens again you can fix the issues by manually editing the file by switching the order of any <images/> and </groups> tags. The images have to come after the groups.

This:

neesds to be here:

3 Líbí se

Wow that was fast! Thank you soooo much.

When I check for updates it says there aren’t any new updates. I’m on Version 2026.4.13.215 I will kee checking and update as soon as I can.

Thanks again

2 Líbí se

OK - Good. The new release though won’t fix broken patterns made with the bad version of Seamly2D.

2 Líbí se

I’ve had this issue tonight as well. Hope it can be fixed in future updates. I’ll try the editor option, but not sure I can do it by myself.

2 Líbí se

This error is still happening. It’s occurred for me a few times in the last month, despite having updated to the latest version each time. This time, I asked chat GPT to fix it for me, which worked. Hopefully this issue could be fixed in new updates? FYI, here’s the report from ChatGPT: Fixed. I moved the misplaced:


<images/>

from before the <groups> block to after </groups>, so the draft block now follows Seamly’s required order:


<calculation>
<modeling/>
<pieces/>
<groups>...</groups>
<images/>

I also checked that the repaired file is well-formed XML.

1 Líbí se

Hello and welcome to the forum, @Lisilu_au

If you have problems, send your pattern and measurements files and we’ll have a look for you.

1 Líbí se

Welcome @Lisilu_au

The issue has been fixed for some time now as far as writing the correct order of the groups and images tags. but the app currently can’t fix existing patterns that are broken. While I could probably write in a fix, as time goes on it will just become useless code as by then most patterns would have been manually fixed.

As @Grace pointed out we would be more than happy to fix any broken patterns for you.

2 Líbí se