1. Håvard Heide
  2. PowerServer
  3. Friday, 21 January 2022 11:40 AM UTC

I wonder where and how to catch that "lost/timeout connection".

I guess transaction timeout is the important one - because it will be shorter than the others?

I  have tried both dberror and error event in u_dw and also tried error event i n_tr  (dberror) or  application (systemerror)

I guess the error arises because of a transaction object no longer valid or maybe NULL ?

Another Question/answer suggested testing error 08051
 
Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 21 January 2022 12:40 PM UTC
  2. PowerServer
  3. # Permalink

Maybe the error is happening on some Embedded SQL statement?

regards

Comment
  1. Miguel Leeuwe
  2. Friday, 21 January 2022 13:23 PM UTC
If you want to disconnect after an hour of inactivity, use the Idle event of the application object. See: https://community.appeon.com/index.php/qna/q-a/code-for-application-close-after-x-minutens-of-no-activity?limitstart=0#reply-31773
  1. Helpful 1
  1. Håvard Heide
  2. Monday, 24 January 2022 10:28 AM UTC
Ok - will use Idle() event instead of catching timeout error from Powerserver, but I guess at some point users should be able to catch those errors ?
  1. Helpful
  1. Logan Liu @Appeon
  2. Monday, 24 January 2022 16:17 PM UTC
Hi Håvard,

If the "Predefined message not found -1" message on the screenshot is not generated by custom code and you are unable to catch this error, I suggest that you submit a ticket via our support portal at https://www.appeon.com/standardsupport/newbug and send a code sample there.

Regards, Logan
  1. Helpful 2
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.