# Archetype Editor bug on save after translation **Category:** [Implementers (archive)](https://discourse.openehr.org/c/implementers-archive/158) **Created:** 2012-06-22 22:09 UTC **Views:** 1 **Replies:** 5 **URL:** https://discourse.openehr.org/t/archetype-editor-bug-on-save-after-translation/15188 --- ## Post #1 by @pablo Hi, Several students have experienced problems using the Archetype Editor. When they add a new language to translate an archetype, then save the changes, the changes are not saved. Anyone else is experiencing this problem? Thanks! --- ## Post #2 by @Peter_Gummer1 pablo pazos wrote: > Several students have experienced problems using the Archetype Editor\. When they add a new language to translate an archetype, then save the changes, the changes are not saved\. > > Anyone else is experiencing this problem? Which version of Archetype Editor are they using Pablo? There's a known problem that was introduced in the version 2\.2\.601 beta release\. The problem still exists in the latest 2\.2\.779 beta release\. Editing the comments field could cause an InvalidCastException if the user answered yes to the question whether to replace translations\. The problem has been fixed, so if this is the problem that you're running into we could do another beta release with the fix\. Are you seeing this, or a different problem? Peter --- ## Post #3 by @pablo Hi Peter, I'm using 2.2.779 (and all my students used the same). I don't receive an exception on the GUI (e.g. a dialog/alert windown). Steps: 1. open an ADL file (e.g. openEHR-EHR-EVALUATION.problem_diagnosis.v1.adl) 1. add a new language (e.g. es-UY) 1. change the current language to es-UY 1. change the first term in the terminology tab 1. click on "save" (the diskette button) 1. you will see the * in the title bar (the * appears when a change is made but should disappear when I do the save, this doesn't happen) 1. close the AE (it doesn't alert me of any unsaved changes) 1. open the changed ADL in a text editor 1. you'll see the new language added, but in the ontology part, the chaged text (translate to es-UY) doesn't appear. Hope that helps. --- ## Post #4 by @ian.mcnicoll Hi Pablo There is a "feature" in the [vb.net](http://vb.net) grid control used by the terminology pane that means that a changed text in one of the data grid rows fails to register as being changed until the row loses focus Unfortunately the save button does count as a focus control. The work around is to ensure that you change the terminology tab back to the details tab before saving the translated archetype. Also adding another terminology row or clicking on another row should trigger the changed data flag and force the save dialog. I did have a go at fixing this but it turns out to be a nontrivial problem. Ian Dr Ian McNicoll Clinical modelling consultant Ocean Informatics Mobile +44 (0) 775 209 7859 Skype imcnicoll --- ## Post #5 by @Peter_Gummer1 Ian McNicoll wrote: > I did have a go at fixing this but it turns out to be a nontrivial problem\. Actually you did fix a very similar problem, Ian, in July last year\. But it only fixed the primary language\. The problem is still happening in different languages, such as Pablo's example\. Pablo, I've created a problem report for Archetype Editor with the steps that you provided\. I may get a chance to look at it in a week or two … unless Ian beats me to it ;\-\) Peter --- ## Post #6 by @pablo Hi guys, thanks for the quick response! This bug fix will be very helpful to my students (I hope I can do a 3rd edition of the openEHR course), to engage them in archetype translation (in this course a lot of archetypes were translated to spanish using the CKM) and soon we'll have all the archetypes in the CKM translated to spanish, them I hope to engange more clinicians on clinical modelling :D BTW, I have a couple of improvement proposals to the AE that might be made with few changes. I'll start another thread for that. --- **Canonical:** https://discourse.openehr.org/t/archetype-editor-bug-on-save-after-translation/15188 **Original content:** https://discourse.openehr.org/t/archetype-editor-bug-on-save-after-translation/15188