Four Js Development Tools Forum

Discussions by product => Reporting tools (GRW, GRE) => Topic started by: Harmesh S. on November 24, 2010, 01:23:17 pm



Title: Trapping RW errors
Post by: Harmesh S. on November 24, 2010, 01:23:17 pm
We are having a problem with a RW report occasionally failing - when we go back and redo the report it works.  I need to know how to trap the RW errors and write them to a file so that we can work out why it is failing.



Title: Re: Trapping RW errors
Post by: Alex G. on November 25, 2010, 08:53:25 am
Due to an error in the DVM (bug 19054), errors in GRE currently cannot be trapped in the 4GL program. We hope to fix the issue for the 2.31 maintenance release. What you can do is to redirect standard error to a log file to find out what kind of errors are causing the problem. To do that you have to modify the file gre/bin/greportwriter and apend a " 2>>/tmp/grelogfile.txt" to the last line. Be sure to redirect stderr only. as redirecting stdout will cause all reports to fail.