SQL Server DB & Navision DB

bill_carson
Member Posts: 8
Hello! Could anybody help me? I've a such problem: We have Navision 3.6 with database on SQL Server 2K. When i want to Write-off an item which i have on my warehouse, i get a message, that there is not enough quantity, but it's not true. In Item Ledger i have such operations: (Positive Adjmt., Quantity - 115, Remaining Quantity - 15, Open-TRUE),("Purchase", Quantity - 500, Remaining Quantity -500, Open TRUE), (Negative Adjmt., Quantity- -100, Open FALSE). Total Remain is 515. But then i Write-off more then 15 and try to Post, i have an Error than there is not enough quantity. And the most interesting thing, that then i do a local copy of database (on Navision server) this works correctly. Why? Maybe anybody has such problem and can help me. Thank u for advance. P.S. Sorry for my bad English.
0
Comments
-
Try to rebuild the indexes in the SQL server.
//Nicklas0 -
do you have any open orders or po's for this item?0
-
Yes. There are 2 open orders for this item. I've found in Application Developer Guide that this trouble maybe in difference of calculating SumIndexFields in Navision DB & SQL Server DB... I'll try to rebuild indexes in SQL, according Nicklas's advice, and in index property there is position "MaintainSIFTIndex", try to check off it... Thank you.0
-
This is the problem with the Sql Server database, try using attain database and u won't find any problem.
RajanRajan Chadha0 -
Hello Bill,
Is it possible that all the stock is not in the same wharehouse and are you using lot / serial tracking on this item?
Best Regards
Rabe0 -
I had a similar problem when posting a consumption journal. For some reason the SQL cursor seems to loose focus on a record. Try to change the following in Codeunit 22 (LastEntryNo is a new global integer variable). Maybe it helps...
ApplyItemLedgEntry(...)
...
IF NOT ItemLedgEntry2.FIND(EntryFindMethod) THEN
EXIT;
END ELSE BEGIN
LastEntryNo := ItemLedgEntry2."Entry No.";
ItemLedgEntry2.GET(LastEntryNo);
CASE EntryFindMethod OF
'-':
IF ItemLedgEntry2.NEXT = 0 THEN
EXIT;
'+':
IF ItemLedgEntry2.NEXT(-1) = 0 THEN
EXIT;
END;
END;
OldItemLedgEntry.COPY(ItemLedgEntry2)
END;
...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