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

Locked table using web services

(0) ShareShare
ReportReport
Posted on by 179

Hi, I am using Dynamics NAV 2015 and I am using external applications that executes item journal lines. Sometimes I get this Error and I dont know how to fix it.  May be changing any timeout in configuration of SQL or NAV? 

The operation could not complete because a record in the Item Ledger Entry table was locked by another user. Please retry the activity. 

Help please! Thanks.

*This post is locked for comments

I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    This error occours when a NAV transaction locks the table on SQL. You can't avoid this (if your WS launch a posting transaction while NAV is doing the same, the table is locked).

    You've to handle exception in your external application and retry.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    There might be a case when other users or processes (also customized processes) are locking the table as they are also using that. Try either to increase a time-out or play with MAXDOP settings in SQL.

  • Rashed Profile Picture
    3,765 on at

    In your webservice codeunit  you can write the CAL code in a way to catch any posting error and see if it's locking error if it's then you can try and post it again  or return the error back to the external application.

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)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans