Page 1 of 1

abort tx: error 1301 : FailNoExistingTx

Posted: Thu Feb 26, 2015 2:44 am
by luigi
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);

Re: abort tx: error 1301 : FailNoExistingTx

Posted: Thu Feb 26, 2015 3:52 am
by luigi
i've discover the cause:
if at leat one response in the tx has status not = 0x0, the tx is rollbacked automatically

Re: abort tx: error 1301 : FailNoExistingTx

Posted: Thu Feb 26, 2015 11:42 am
by Beth
Thanks for the update.