web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Cannot create a record in Tax engine tax journal (TaxEngineTaxJournal). Journal batch number The record already exists in ax 2012

(0) ShareShare
ReportReport
Posted on by 1,318

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 have the same question (0)
  • Sathish_Chinnappan Profile Picture
    1,318 on at

  • Sathish_Chinnappan Profile Picture
    1,318 on at

    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.

  • Verified answer
    Sathish_Chinnappan Profile Picture
    1,318 on at

    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.

  • Ajit Profile Picture
    8,755 on at

    As you have resolved your problem, you can mark this questions as answered.

  • Community Member Profile Picture
    on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans