Unable to debug service containing the operation pub.art.transaction:commitTransaction

When running a service having start and commit transactions in the flow we are able to get the result. the service is working fine.

When we are debugging the same service we are getting an error at pub.art.transaction:commitTransaction - unable to commit transaction.

What is the reason for this. Any alternative to debug a service having pub.art.transaction:commitTransaction in the flow

Unfortunately you cannot debug a transaction as it closely related to the thread that started it. Debugging initiates a unique thread for each step and so your transaction is getting lost.

The only work around is to avoid stepping into code that has transactions, and use debugLog instead to follow what is happening. You should try and isolate this type of code as much as possible i.e. place it in a child service/sequence.



Thanks for the reply.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.