Corrupted liml files

Hi, it happened to me several time that the liml file get corrupted (worst thing is that this happen when results are hugh). Is there a way to recover such files at least without results?

Regards

Comments

  • The overall structure of the file is like this:

    <liml version="6">
      [ ... model definition ...]
      <solution>
    [ ... model definition that was used for the solution ... ]
        <results>
     [ ... results data ...]
        </results>
      </solution>
    </liml>

    so if the end of the file is truncated or corrupted, delete the <solution> element and add a closing </liml> tag at the end leaving just this:

    <liml version="6">
      [ ... model definition ...]
    </liml>


  • Thanks, my liml file is about 500 Mb... will take a little to load on Notepad.
  • You can copy the first 10000 lines of a large file quickly in PowerShell with:

    gc -TotalCount 10000 InputFileName.liml > OutputFileName.liml

    The number of lines for the model will be more than the number of nodes plus the number of elements. Maybe multiply that by 2 or 3 and see if it's enough.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!