1. Bernie Rivera
  2. PowerServer
  3. Monday, 30 September 2024 17:50 PM UTC

Recently, our PowerServer Application seems to be getting transaction timeout errors.  Once you get one of these errors, connection to the database is totally lost.  Not sure what changed in our Azure environment that could have cause this.  Does anyone have experienced with this issue? 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 30 September 2024 18:08 PM UTC
  2. PowerServer
  3. # 1

Hi Bernie;

  My guess is because of some added "involuntary network / DBMS" delays that have cropped in. The best suggestion I have is to add a "heartbeat" feature in your App(s) that pings the PS / DB on a regular basis to prevent timeouts - hence disconnects. Food for thought. HTH 

Regards ... Chris 

Comment
  1. Bernie Rivera
  2. Friday, 4 October 2024 15:01 PM UTC
Thanks for the responses, I appreciate it. The difficulty is that there doesn't seem to be any long running database process. I think the problem is we are using the LongConection parameter. A persistent transaction object is expected and was working fine until recently. Nothing has changed related to code or transactions calls that I know of. And it doesn't matter if there is consistent activity or a lull in activity, after about a minute or so, the Transaction Object will fail, and the application can no longer connect to the database.
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 30 September 2024 18:11 PM UTC
  2. PowerServer
  3. # 2

check for long running processes that keep a transaction open.  then adjust the timeout settings, or better yet, change the process to have it complete the transaction faster.  That may require changing the process to be an api called process on the server.

Comment
  1. Bernie Rivera
  2. Friday, 4 October 2024 15:04 PM UTC
Thanks for the response. There isn't any long running database process. Problem started recently and is difficult to determine what changed. Code is basically the same. Wondering if someone changed something in the environment. Deployment settings should be the same. Just not sure.
  1. Helpful
  1. mike S
  2. Friday, 4 October 2024 15:13 PM UTC
"using the LongConection parameter. ... doesn't matter if there is consistent activity or a lull in activity, after about a minute or so, the Transaction Object will fail, and the application can no longer connect to the database."



almost sounds like network connection issues between the database and the web apis. are they both on azure? are they in the same region? Do you have a local connection between them? firewalls?



what does the event viewer say (or whatever logging is used by the PS web apis?)



I have no idea how or if a reconnect will occur automatically in the web apis, but it sounds like no. we use the regular (not long connection) and have seen none of this.





  1. Helpful
  1. mike S
  2. Friday, 4 October 2024 15:13 PM UTC
you should also post the PS build
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.