abort tx: error 1301 : FailNoExistingTx

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
luigi
Posts: 4
Joined: Wed Feb 25, 2015 10:39 am

abort tx: error 1301 : FailNoExistingTx

Post by luigi » Thu Feb 26, 2015 2:44 am

Hi,
I want begin a tx and end tx immediately but an exception
"1301 : FailNoExistingTx" is throw.
Why?
Thank You.

VaultRequestItem[] requests = obliteraterequests.ToArray();
string txid = null;
connection.BeginTx(repid, ref requests, ref txid, string.Empty);
long newrevision = 0;
VaultResponseItem[] response = null;
VaultDateTime datetimenow = VaultDateTime.Now;
connection.EndTx(txid, ref newrevision, ref response, 0, ref datetimenow);

luigi
Posts: 4
Joined: Wed Feb 25, 2015 10:39 am

Re: abort tx: error 1301 : FailNoExistingTx

Post by luigi » Thu Feb 26, 2015 3:52 am

i've discover the cause:
if at leat one response in the tx has status not = 0x0, the tx is rollbacked automatically

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: abort tx: error 1301 : FailNoExistingTx

Post by Beth » Thu Feb 26, 2015 11:42 am

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Post Reply