3.70 Deadlock
gerrypaul
Member Posts: 10
We upgraded from 2.60B to 3.7 and we are now getting a lot of deadlocks when users are try to post purchase orders. We usually have up to 10 users posting at a time. Any Ideas?
0
Comments
-
Are you using MS SQL or Navision Database Server?
We have customer with 3.70 on MS SQL and they have deadlocks too. Many deadlocks are between Service module and Sales module (Service ledger entry and other tables) etc... turn on tracking of deadlocks in SQL and look, which tables are cross-locking.
Deadlocks are on:
Document Dimensions vs. Sales line
Sales line vs. Reservation Entry
G/L Entry vs. Detailed Cust. Ledg. Entry
No. Series vs. Service Ledger Entry
Value Entry vs. Item Ledger Entry
Some deadlock we solved (Service ledger entry, Dimensions vs Sales Line) some i am now solving... :evil:0 -
We are running Navision SQL.
How are you solving the deadlocks?0 -
We are adding
record.LOCKTABLE;
or sometime, when we needrecord.LOCKTABLE; if RECORDLEVELLOCKING then record.FIND('+');
into appropriate position into code. Table locking rules must be kept (for example you must lock Value Entry before Item Ledger Entry etc....)
for example:code 1: ... rec1.FIND('+'); rec1.MODIFY; //Rec1 will be locked rec2.FIND('+'); rec2.MODIFY; //Rec2 will be locked .... code 2: ... Rec2.FIND('+'); Rec2.Modify; //Rec2 will be locked Rec1.FIND('+'); Rec1.MODIFY; //Rec1 will be locked ...
will lead into deadlock when runned simultaneously. In this case you must change code to:code 2: Rec1.LOCKTABLE; Rec1.FIND('+'); //Rec1 will be locked Rec2.MODIFY; //Rec2 will be locked Rec1.MODIFY;0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 329 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
