Warehouse Entries Missing

Mauddib
Member Posts: 269
I am having a weird problem that might have been discussed before but I cant find it on searches. Maybe Im using the wrong keywords.
Background: Nav 5 Clients running on SQL 2005 but with Nav 3.60a code base (we just moved from Nav 3.6 to 5 on SQL but only an executables upgrade in Navision).
Problem Background: I have a process which makes and then posts warehouse Journals. This makes negative adjustments mostly, but sometimes positive. I Validate in this order:
Standard Behaviour: When I post a journal myself or when I use the above code to make a journal before feeding it into Codeunit "Whse. Jnl.-Register" then the usual response is two entries are made in warehouse entry. One line removing my stock and one line in the "Adjustment bin" for that location.
PROBLEM: However on some rare occasions only the adjustment bin entry is made, without the actual entry I want. How can a warehouse journal line post, make the adjustment bin entry but then not make the main warehouse entry. Also NO error message occours.
The issue is not dependant on whether I am making positive or negative entries.
Background: Nav 5 Clients running on SQL 2005 but with Nav 3.60a code base (we just moved from Nav 3.6 to 5 on SQL but only an executables upgrade in Navision).
Problem Background: I have a process which makes and then posts warehouse Journals. This makes negative adjustments mostly, but sometimes positive. I Validate in this order:
"Journal Template Name"
"Journal Batch Name"
"Location Code"
"Line No."
"Posting Date"
"Whse. Document Type" (::Shipment mostly)
"Item No."
Quantity
"From Zone Code" (TO when positive - rare)
"From Bin Code" (TO when positive - rare)
"Entry Type"
"User ID"
INSERT(TRUE)
Standard Behaviour: When I post a journal myself or when I use the above code to make a journal before feeding it into Codeunit "Whse. Jnl.-Register" then the usual response is two entries are made in warehouse entry. One line removing my stock and one line in the "Adjustment bin" for that location.
PROBLEM: However on some rare occasions only the adjustment bin entry is made, without the actual entry I want. How can a warehouse journal line post, make the adjustment bin entry but then not make the main warehouse entry. Also NO error message occours.
The issue is not dependant on whether I am making positive or negative entries.
0
Comments
-
that is an odd problem, probably hard to solve, because you can't replicate it.
Two things I would look at.
See if COMMIT is anywhere in the code. Turn on codecoverage and filter on COMMIT.
second are you clearing your Whse. Jnl.-Register Variable before posting?0 -
I am having a similar problem, but in reverse. the Adjust entry is the missing entry. the only way to replicate it is with a clean location.
I set up the new location. the first transaction I post into the location is using the "whse. item journal" for a positive quantity. It posts successfully, except that I only see 1 whse entry, instead of 2 (the Adjust entry is the missing entry).
every journal entry using whse. item journal thereafter has two whse entries as expected.
I can repeat this behavior both in 3.7 and 5.0.0 -
Hi Guys,
I have got the same problem...Has anubody found the possible reason or solution
Many Thanks,
Vijay0
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