Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Prevent Double Input/Duplicate To Item Ledger Entries

Posted on by 23

Hello guys, just as like the title stated

How do I prevent a double input to Item ledger entries? how to check the new record to prevent duplicate record?

Thank You, *I never used C/AL code before, any answer is appreciated*

-Rohad

  • Suggested answer
    Rohad Bokhar Profile Picture
    Rohad Bokhar 23 on at
    RE: Prevent Double Input/Duplicate To Item Ledger Entries

    Thank you so much for the answer and the insight, much appreciated!

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Prevent Double Input/Duplicate To Item Ledger Entries

    Hi,

    If you are talking about to manual insertion in the Item Ledger entry table, So I would suggest dont do this, Lets the system apply new entry every time in this table.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Prevent Double Input/Duplicate To Item Ledger Entries

    You should simply never insert anything to the Item Ledger Entries table.

    Everything that ends up there should come from running the different posting routines in the system.

    So please never write any code that does any modifications to that table because you will break the consistency of your system.

    The primary key in the table is the Entry No. that is assigned as an auto increment handles internally by the system.

      

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans