Skip to main content
Participant
February 14, 2017
Question

Validation Error Messages Not Logged In Console Window (FM12)

  • February 14, 2017
  • 1 reply
  • 2010 views

When I save a structured documents as XML (File -> Save As – XML), messages and errors appear in a Console Pod but are not reflected in the Console Window or in consfile.txt

Any help appreciated.

This topic has been closed for replies.

1 reply

Known Participant
March 11, 2017

I have this problem also -- I need to capture the validation errors somewhere, but they are not logged to consfile.txt.  Is there a setting somewhere that controls what is written to consfile?

I am using FrameScript also, and have not yet found a way to capture these validation errors from the console pod and copy them to a file somewhere.

This seems like a serious bug or issue in Frame, that errors just disappear and are not logged anywhere, unless there is a workaround.

I'm now on FM 2015.

Thanks much,

Shelley

Inspiring
March 14, 2017

I'm never used the console.txt file for error handling in all the years.

XML messages that appear are validation issues mostly. So you can check the root element if structure is valid after document is opened or before it is saved.

Other issues are due to an inconsistent environment, XML application. So once your Setup is correct, there is no need anymore to check console.txt.

Markus

Inspiring
March 15, 2017

With ExtendScript, you can get the contents of the pod with:

var consoleText = app.FMConsoleString;

...Then you could write it to your own file or whatever. You could tie it to a "save" notification for best results. I did this in a previous release because the pod popped up every time you saved XML, successful or not, and the intrusion was way too intrusive. So I wrote this little script that monitored the contents of the pod for errors only, then I manually hid the pod in the corner of my window so I never had to look at it.

Russ


Nice approach Russ, wasn't aware about this property.

Thanks for pointing that way.