The Sales Line table cannot be changed because it is locked

LovelyLady
Member Posts: 14
I am calling custom made webservice to create headers and lines inside the Nav database. I get inturrupted in between by this error message. Can anyone please suggest how I can avoid conflicts between 2 calls to update the Sales Line table.
"The Sales Line table cannot be changed because it is locked by another user. Wait until the user is finished and then try again."
"The Sales Line table cannot be changed because it is locked by another user. Wait until the user is finished and then try again."
0
Comments
-
The NAV side is based on NAV 2009 webservices or some older solution? How you are calling the webservices? Synchronously? Asynchronously?0
-
The webservice call is made and waits to recieve the header number , that means the call is asynchronous.
then the lines are sent along with the header number recieved and wait to recieve a success message.
The insertion of the lines is the stage when I recieve the table locked error message.0 -
Is this problem only on live system? Is it working when there is only one active user on the system?0
-
A couple of users are synching with the same Nav database simultaneously. It is highly likely that they coincide while synch process.
that means- more than one users are making web service calls to add Sales line.
It works fine in the Developement environment where I am the single user.0 -
Ok, than you need to look to the performance or make the timeout longer in NAV. It looks like the line creation is taking more than the timeout...0
-
This might help you to identify the cause of that blocking issue, and maybe to solve it:
http://dynamicsuser.net/blogs/stryk/archive/tags/Locking/default.aspx
Cheers,
JörgJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
annot access the link, "Service Unavailable" is the message I recieve.0
-
Hmmm ... should work ...
You could also go to my BLOG http://dynamicsuser.net/blogs/stryk/ then click on the tag "Locking".Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Cannot find anything good about it ...........0
-
hii..
i have the same problem with my NAV 5...and then i got my problem solve \:D/ \:D/
i kick the other user that use my ID login..(file-->database-->information--->sessions--->and lookup)
and then wooss...there is no problem again..
REASON :
maybe the other person user my ID and we edit the same thing..0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions