archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
944 stars 269 forks source link

Profile reference corruption in 4.9.0 #753

Closed lavenderb closed 3 years ago

lavenderb commented 3 years ago

Version of Archi

4.9.0

Archi Plug-ins

Yes - jArchi, Lightbox, Excel, installed but not used - coArchi

Operating System

Windows

Expected Behaviour

Attempt to save a model after normal editing

Actual Behaviour

Twice now, the model has become corrupted and won't save.

Profile reference is orphaned: id-xxxxxxxx ....
Profile has wrong concept type: id-xxxxxxxx ....

..... repeats several times for different id refs. (see image)

Steps to Reproduce the Behaviour

Has happened twice now but not clear what's causing it. I am though creating a model by copy-pasting from previous models and using the new stereotype feature to denote the source. Archi Bug

Cannot investigate the source file further because of the binary format :-( Any chance it can it be salvaged?

jbsarrodie commented 3 years ago

Hi Steven,

Cannot investigate the source file further because of the binary format :-(

As soon as the model contains some images, the .archimate file becomes a zip, so simply rename it to something.zip, unzip it and you'll then be able to tweak the model.xml file (that's a file using the native Archi file format), then zip all again to open it in Archi.

But do you see any objection in sharing the file with me (I guess you have my email from a meeting we both joined recently) so that I have a chance to understand what happened ?

Phillipus commented 3 years ago

This problem can occur if you imported another model containing Profile/Specialization information into another model. Model Import for Profile/Specialization is not working in this alpha version.

Any chance it can it be salvaged?

As I tried to make clear on the download page:

"Please ensure you back up your data first before testing this version, and please use test data only."

lavenderb commented 3 years ago

Thanks for the tip - I'll try it. I'll send you the model by DM.

lavenderb commented 3 years ago

Though Phil's feedback is most likely what happened.

Phillipus commented 3 years ago

Though Phil's feedback is most likely what happened.

But thanks for testing and feeding back to us! Appreciated.

jbsarrodie commented 3 years ago

Model Import for Profile/Specialization is not working in this alpha version.

I forgot that I use a more recent version. You're right, the published alpha doesn't support model import.

lavenderb commented 3 years ago

The difficulty of making something idiot proof - they say - is that idiots are so very ingenious ;-)

Phillipus commented 3 years ago

Let's close this issue, assuming that the problem was importing from another model. I'm working on a new beta build which will have an initial version of model import that supports this. If it's a different bug, we can re-open this.