I've been getting behavior where my app some time stops responding. When I look in the server Application event log I'm seeing these in pairs. Not sure if they are actually related to my issue but wondering if anyone can shed some like on how to debug them or what they mean.
Category: PowerServer
EventId: 0
SpanId: 3ca5b593f70a4ced
TraceId: 9d81a781ff406f01c50764e3e81c5ab8
ParentId: 0000000000000000
RequestId: 40000077-0000-f100-b63f-84710c7967bb
RequestPath: /api/ServerApi/CommitAndCreateTransaction
ActionId: 51038dd0-f961-4494-9f2d-ca0efba444a0
ActionName: PowerServer.Api.ServerApiController.CommitAndCreateTransaction (PowerServer.Api)
Failed to commit because there is no available database connection or transaction at ..MoveNext()
--- End of stack trace from previous location ---
at ..MoveNext()
--- End of stack trace from previous location ---
at ..MoveNext()
Category: PowerServer.Api.ServerApiController
EventId: 0
SpanId: 3ca5b593f70a4ced
TraceId: 9d81a781ff406f01c50764e3e81c5ab8
ParentId: 0000000000000000
RequestId: 40000077-0000-f100-b63f-84710c7967bb
RequestPath: /api/ServerApi/CommitAndCreateTransaction
ActionId: 51038dd0-f961-4494-9f2d-ca0efba444a0
ActionName: PowerServer.Api.ServerApiController.CommitAndCreateTransaction (PowerServer.Api)
'PowerServer.Api.ServerApiController.CommitAndCreateTransaction (PowerServer.Api)' get result (
{
"IsSuccess": false,
"RequestId": null,
"AppName": "LongbowCMSv2",
"NameSpace": "LongbowCMSv2",
"ErrorCode": 0,
"ErrorMessage": "Failed to commit because there is no available database connection or transaction"
}).
Thanks!
If the transaction has been timeout or not exists before "commit" in PowerScript, you may see this error.
There is a KB about "Transaction does not exist" for your reference: https://www.appeon.com/developers/get-help/knowledgebase/transaction-does-not-exist
You can debug the PowerServer project to see whether the SQLCA.SQLCODE is already -1 before "commit".
Please submit a support ticket as Chris suggested if still not solved.
Regards, Logan
FYI: https://www.appeon.com/standardsupport