This IfxTransaction has completed; it is no longer usable
Q: When I use the transactions ,I'll get the following error on about 1 out of every 100 record. This IfxTransaction has completed; it is no longer usable I can't expect when the error happen or what is the reason of this error. I try to insert about 607 record in the same transaction. My code: public static int InsertGroups(List<Group> groups) { DBConnectionForInformix con = new DBConnectionForInformix(""); con.Open_Connection(); con.Begin_Transaction(); int affectedRow = -1; Dictionary<string, string> groupsParameter = new Dictionary<string, string>(); try { foreach (Group a in groups) {