Announcements
No record found.
Hi All,
While doing Vendor settlement got below error:
Cannot create a record in Tax engine tax journal (TaxEngineTaxJournal). Journal batch number The record already exists in ax 2012
*This post is locked for comments
I tried deleted the Status list of that number sequence and deleted the payment journal and created new payment journal it got posted, but again for next payment settlement same error is coming.
And i tried to uncheck continuous in number seq. and tried ..still error occurs.
Got the solution
In Debugger, in Classes\TaxEngineTaxSettlement\createTaxJournal :
taxEngineTaxJournal.initValue();
taxEngineTaxJournal.CurrencyCode = CompanyInfo::standardCurrency();
taxEngineTaxJournal.JournalNum = TaxEngineTaxJournalUtil::getTaxJournalNum();
taxEngineTaxJournal.TransDate = transactionDate;
taxEngineTaxJournal.JournalType = journalType;
taxEngineTaxJournal.insert();
in this line taxEngineTaxJournal.JournalNum = TaxEngineTaxJournalUtil::getTaxJournalNum(); \\from this method it returns values as 'JV-02-0028156' , but the value assigned to taxEngineTaxJournal.JournalNum is only taking 'JV-02-0028' only, journal number already created already so error is throwing. the String size of the journal number is 10, but actual value is 13 characters.
As you have resolved your problem, you can mark this questions as answered.
Sathish I am also facing the same issue in AX 2009,
I am sure solution must be the same....
Can you brief me little what steps you have taken to overcome this problem?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Pratik Bhosle 2
Giorgio Bonacorsi 1