- Palle Agermark has posted an interesting article about the audit trail and when records will be created depending on the TTS level of the application. You can read it here: http://blogs.msdn.com/palle_agermark/
- We recently ran into the problem that we got error messages in Axapta saying "Cannot create a record in Audit Trail. The record already exists." We are running Axapta 3.0 SP3 (upgraded some years ago from 2.5). Unfortunately, the error is repaired in SP4, but you can actually repair it also in SP3.
Go to the class "ReleaseUpdateDB_V30toV30SP" and copy the method "RepairTransactioIdPerTableV30toV30SP" into a new job. (NB: The method will only exist in a SP4 or SP5, of course).
In the job, you have to comment the first line after the variable declaration, that is this.tableProgress(tablename2id('dataArea'));
You can run the job and all your entries in the SystemSequences table will be corrected.
Please also check the table SQLSYSTEMVARIABLES in your database. Check the value for the parm "Index". If it is below 256, you also have a second problem -> please write a comment and will explain further what to do.
vor 2 Jahren
4 Kommentare:
Hi,
our value for parm "Index" in SQLSYSTEMVARIABLES is only 41 Iparm is 13.
What is the problem, and what can we do?
Best regards
Michael
Hi, I am finding the same problem for other tables in Ax 4 SP1. I need your help in this regard.
Even if we try to reset the Number Seq for which we receive comment... next time it display another table with such error.
HI,
our sqlsystemvariables PARM column size is 30 , IPARM is 4, what should we do to fix that problem? Thanks
Regards,
Bryan
I have resolved the same issue in AX 2012,
To over come this issue, please find the below code modifications in Tables-->TransactionLog-->Methods-->create.
The existing Code:
if (appl.lastTransactionIdCreated() != appl.curTransactionId())
{
transactionLog.Type = _type;
transactionLog.Txt = _txt;
transactionLog.insert();
appl.lastTransactionIdCreated(transactionLog.CreatedTransactionId);
appl.transactionlogUpdateTTSControl().revoke();
}
The changes to make:
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();
}
Regards
Pavan
Kommentar veröffentlichen