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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans