Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION

$
0
0

I have a foreach loop (1) followed by a SQL task (2). This SQL task (2) begins a named transaction. In the for each loop(1), I load data into a target table with execute sql task(3). After that I commit or rollback. That is , my execute sql task (3)is connected to 2 sql tasks - commit (4) and rollback (5). I use RetainSameConnection = true for the OLEDB connection which is used to load data into target table.

When the data loads successfully for an iteration, commit goes green and then it goes red. After that, I am getting this error -

[Execute SQL Task] Error: Executing the query "COMMIT TRAN MyTran" failed with the following error: "The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

What could be the reason for that and how do I fix it ?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>