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?
- You are here:
- Home
- Q&A
- Q&A
- PowerServer
- PowerServer Application getting transaction timeout errors
- Bernie Rivera
- PowerServer
- Monday, 30 September 2024 17:50 PM UTC
- Monday, 30 September 2024 18:08 PM UTC
- PowerServer
- # 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
- Bernie Rivera
- 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.
-
Helpful Loading... Helpful 0
There are no comments made yet.
- Monday, 30 September 2024 18:11 PM UTC
- PowerServer
- # 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
- Bernie Rivera
- 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.
-
Helpful Loading... Helpful 0
- mike S
- 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.
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.
-
Helpful Loading... Helpful 0
- mike S
- Friday, 4 October 2024 15:13 PM UTC
you should also post the PS build
-
Helpful Loading... Helpful 0
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.
However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »