3 Replies Latest reply: May 4, 2017 10:52 AM by Dirk Schulze RSS

    How to get rid of edit history in model file? (Monarch Pro 11)

    Schorschi _

      I noticed a design flaw in an existing model file, so I created a new model file from scratch. However, the new model file is 200KB in size, whereas the old file is only 17KB.

       

      I understand that there is an edit history kept in a model file, but when looking at the model (xml) file in a text editor I noticed edit events by a completely different Windows account from six years ago. I can't figure out how that edit history by another user could have made it into the new model file.

       

      Is there an explanation for this? Prior to creating the new model file, I had a sample report with the old model file open and then merely closed the model file rather than closing the application.

       

      Also, is there a way from the application itself to delete the edit history contained in a model file, rather than editing the file directly in a text editor?

       

      I'm always a little leery when editing files whose format I'm not familiar with for fear of breaking something. So, I took an educated guess when purging the edit history, keeping the <audit> tags intact and nested inside them leaving one <save> row behind.

       

      So, that's why I'm asking whether there is a way to purge all edit history from a model file through the application.

       

      After removing the edit history the model file shrunk to just 14KB.

       

      So, that's why I'm asking whether there is a way to purge all edit history from a model file through the application.

       

      This is with Monarch Pro 11.0.2.55.

        • Re: How to get rid of edit history in model file? (Monarch Pro 11)
          Steve Caiels

          Hi,

           

          Is it possible the model was originally created by another user and copied at some stage?

           

          You should have "Monarch Utility" available in the start menu.  One of the options is to purge audit trails.

           

          Regards,

          Steve.

            • Re: How to get rid of edit history in model file? (Monarch Pro 11)
              Schorschi _

              I created the model brand new from scratch. I just can't imagine where those other edit records came from.

               

              Interesting thing, this Monarch Utility.

               

              I tried it, it doesn't seem to work right.

               

              Specified folder, file name and date before which to purge entries. I tried several variants. Today's date, yesterday's date, unchecked date (in which case it should purge all records).

               

              It did seem to take out those old records from 2010 (which reduced the model file size to 92KB, from formerly 200KB), but the records from myself from today are still in the file. The file should get reduced to 14KB, which is what I got when I manually removed all edit entries.

               

              What am I doing wrong?

                • Re: How to get rid of edit history in model file? (Monarch Pro 11)
                  Dirk Schulze

                  One thing I found is if you have a model open and then open another model without fully closing the first model (basically you allow Monarch to close it for you) the size of second model will greatly increase if you save it.  It is as if the history from the prior model is appended to the history of the subsequent model.  I did not have much success with the utility either.  In the end I recreated my models and now don't open another model until I have closed the first one.