Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

(0) ShareShare
ReportReport
Posted on by 117

"Cannot create a record in Ledger journal table (LedgerJournalTable). Name: Vend_p, Vendor Payments. The record already exists"
Getting above error when create payments.

This look like the issue is with the duplicate journal num. 

Can you please give any solution to set the journal num?

*This post is locked for comments

  • Suggested answer
    adityo purnomo Profile Picture
    adityo purnomo 10 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    This issue is very simple, you can Delete Number Sequence list. And Try again.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    Yes, that's right. Since I provided the suggested answer. If it was helpful, please mark it as verified.

    You're supposed to mark the answer(s) as verified, not your own question. The idea is that others can see which answers / suggestions were helpful.

    Also, you are not supposed to mark your own questions / messages as "Make post a suggested answer" when you post them. Since they are not suggested answers to the problem.

  • Bhavesh Gohel Profile Picture
    Bhavesh Gohel 117 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    It is showing only in your responses. There is no link shown in my own response. :)

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    Next to the suggested answers you see text "Was this answer helpful?" or something like that. And you can click Yes.

  • Bhavesh Gohel Profile Picture
    Bhavesh Gohel 117 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    Hi

    Thank you.

    I am  not able to mark answer as verified. Can you help me?

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    Great to hear that!

    Please mark the helpful answer(s) as verified so that others can benefit from them. Thanks!

  • Suggested answer
    Bhavesh Gohel Profile Picture
    Bhavesh Gohel 117 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    We got the solution for this.

    The number sequence having the list generated for specific number sequence and that number sequence is used at the time of create payments.

    We have delete the entry from list form

    1754.10.PNG

    List button open the status of the number sequences and we have cleared that entries.

    Now, It works for us.

    Thank you for all your replies.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    Number sequences are maintained in Organization Administration - Number sequences - Number sequences.

    First check if the Next value of the number sequence is ok. If not, change it to some value that is really free (not yet used).

    If the Next value is ok, then the problem is that some already used value exists in the Status list of the number sequence. In that case just delete that value from the Status list.

    Also please note that continuous number sequences should be used only when it's really required (for example because of legislation) that there are no gaps in the sequence. Journal numbers are just technical sequences inside AX so there should not be any legal requirement for those to be continuous. Continuous number sequences are slower to initialize, and can sometimes have issues like the one you have. So you need to pay some price (slower performance, using time to investigate issues) for the continuous number sequences. 

  • Bhavesh Gohel Profile Picture
    Bhavesh Gohel 117 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    We cannot make it non continuous as it was maintain continuous from very beginning and here, journal number generated was duplicate so we have to change the journal number that is generated at the time of create payment.

    Can you please give a way to set the next journal number ? or from where the journal number sequence maintain?

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Error : Cannot create a record in Ledger journal table (LedgerJournalTable)

    Check the number sequence for this journal. Is it marked as continuous? It should usually not be necessary to have it continuous, so just remove the Continuous checkbox from the number sequence settings.

    If you need to have it continuous (basically if you have requirement that this internal "technical" id sequence has no gaps) you can remove the problematic number from the Status list of the number sequence.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans