Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 64797

“Can not create a record in Audit trail (transactionLog). Dynamics Ax 2012 R3

$
0
0

Today I face an error while confirm sales order

“Can not create a record in Audit trail (transactionLog).

AuditTrail

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

http://pavanidupulapati.blogspot.com/


Viewing all articles
Browse latest Browse all 64797

Trending Articles



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