Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Trapping RW errors  (Read 3302 times)
Harmesh S.
Posts: 4


« 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.

Alex G.
Four Js
Posts: 124


« Reply #1 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.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines