Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Sql insert into NAV table, another user modified issue in NAV

(0) ShareShare
ReportReport
Posted on by 350

Hi,

We are trying to update the custom field in Sales header through SQL coding when the field is updated we are facing below error message, could someone help us how to lock the table from the sql side. 

Modified-user.png

*This post is locked for comments

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Sql insert into NAV table, another user modified issue in NAV

    Shyamraoo ,

    when we talk about your error, the  issue is your are updating SQL coding without down your server

    do not let any users to access system when you configuring/modify system

    down your system first - for users

    then do your configuration

    restart your server again

    then let access the users to use system

    Don't do any critical modification while system is on live (users are working on system)  

  • AJAnsari Profile Picture
    AJAnsari 5,754 on at
    RE: Sql insert into NAV table, another user modified issue in NAV

    I concur with Suresh - it's bad practice to update NAV using a SQL script, unless there is no way to accomplish what you're trying to do from a NAV processing report or a codeunit.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,626 on at
    RE: Sql insert into NAV table, another user modified issue in NAV

    It is not recommended to update a NAV table using SQL Script. Why are you updating using SQL, you could create a report or codeunit to update the fields you required.

  • Shyamraoo Profile Picture
    Shyamraoo 350 on at
    RE: Sql insert into NAV table, another user modified issue in NAV

    In NAV side we can use commit statement, but the table is updated using SQL query from SQL side, we tried using commit in sql code but still same issue occurs, is it a right way to update nav table in back end.

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Sql insert into NAV table, another user modified issue in NAV

    Hello Shyamraoo,

    Use COMMIT after updating.

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,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans