Hi
Have 3 PP Connect 2019.1 servers running in production.
All 3 servers access the same MS SQL Database. Sometimes the workflows SQL updates done by the Database Query fails.
All with this error:
Error running SQL: [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 222) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction
This means that data are not written into the database correct.
Had the same issue in the PlanetPRESS suite, when the customer was running on that version.
I have never seen the deadlock when using INSERT statements or SELECT statements - only when I’m using the UPDATE statement.
I’m beginning to think that the database query plugin is not good enough for so many transactions around 4000 a day for this process and every day 2-5 updates end up in a deadlock.
Anybody have a hint on how I can move this simple update statement to a vb script ?
%{global.DSN}
UPDATE dbo.Docs
SET
EboksEnabled=‘True’,
EboksTjecked=‘True’,
Production=‘eboks’
Where (Filename = ‘%{Filename_PDF}’)