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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Error An Item was made to change an old version of a Item record

(0) ShareShare
ReportReport
Posted on by 2,582

Hi all,

I have written code to automatically post the Item journal lines after it is created. The journal lines are successfully posted but I get an error that 'An Item was made to change an old version of a Item record. The record should first be reread from the database. This is a programming error. Identification fields and values:..'

Can someone suggest how should this be solved?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: Error An Item was made to change an old version of a Item record

    Hello Tina,

    Use COMMIT function. so before fetching it saved in DB, and also after posting you have to call so it saved the current record.

    It mostly came, when the record moved/deleted in background and, in front-end, still user open this record.

  • Tina Menezes Profile Picture
    2,582 on at
    RE: Error An Item was made to change an old version of a Item record

    Hi Binesh,

    I used Commit. I still get the error. Can you please elaborate?

  • Binesh Profile Picture
    7,885 on at
    RE: Error An Item was made to change an old version of a Item record

    Hello Tina,

    Could you share your code, so we can check.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,241 Super User 2025 Season 2 on at
    RE: Error An Item was made to change an old version of a Item record

    Tina,

    Are you making any changes to the Item record during posting, you need to use a GET statement.

  • Tina Menezes Profile Picture
    2,582 on at
    RE: Error An Item was made to change an old version of a Item record

    Hi Suresh,

    I am using setrange and findfirst and then posting the record.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,241 Super User 2025 Season 2 on at
    RE: Error An Item was made to change an old version of a Item record

    Please send us the code

  • Tina Menezes Profile Picture
    2,582 on at
    RE: Error An Item was made to change an old version of a Item record

    I have written code to insert data into the item journal and after that to post the inserted data.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at
    RE: Error An Item was made to change an old version of a Item record

    This might guide you to solution: community.dynamics.com/.../error-an-attempt-was-made-to-change-an-old-version-of-a-sales-line-record

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans