COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: AlexisMolina on 02 Jun 2016 05:03:21 PM

Title: Avoid deadlocks
Post by: AlexisMolina on 02 Jun 2016 05:03:21 PM
Hi everyone,

I have a report that is automatically updated every 3 minutes, sometimes appears a deadlock error. How can I avoid this? or how can I achieve the report's refresh although this happens (after the deadlocks finish)?

This is the error Cognos shows:

XQE-DAT-0001 Data source adapter error: com.microsoft.sqlserver.jdbc.SQLServerException: La transacción (id. de proceso 87) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction....

Thanks!
Title: Re: Avoid deadlocks
Post by: MFGF on 03 Jun 2016 03:38:10 AM
Quote from: AlexisMolina on 02 Jun 2016 05:03:21 PM
Hi everyone,

I have a report that is automatically updated every 3 minutes, sometimes appears a deadlock error. How can I avoid this? or how can I achieve the report's refresh although this happens (after the deadlocks finish)?

This is the error Cognos shows:

XQE-DAT-0001 Data source adapter error: com.microsoft.sqlserver.jdbc.SQLServerException: La transacción (id. de proceso 87) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction....

Thanks!

Hi,

You could try changing the transaction isolation level of the data source connection in Cognos? Try Read Committed or Read Uncommitted - this might avoid the deadlocks.

MF.