Next, we need to know what your environment looks like.
Describe the problem you have been experiencing in more detail. Include as much information as you think is relevant. Keep in mind that transactions can fail for many reasons; context is key here.
Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.
insert short code snippets here