Today I face an error while confirm sales order
“Can not create a record in Audit trail (transactionLog).
While searching I found solution already posted by “PavanKumar Idupulapati” at http://pavanidupulapati.blogspot.com/
That’s work for me, with link reference I update the transactionlog table’s create method with following statement
if (appl.lastTransactionIdCreated() != appl.curTransactionId())
{
if (!TransactionLog::find(appl.curTransactionId()))
{
transactionLog.Type = _type;
transactionLog.Txt = _txt;
transactionLog.insert();
appl.lastTransactionIdCreated(transactionLog.CreatedTransactionId);
}
appl.transactionlogUpdateTTSControl().revoke();
}
References I used
http://axfaq.blogspot.com/2013/09/transaction-log-ax-2012-cannot-create.html