Hi,
When posting production journal (from released prod. order), I got an error said that Item A is not in inventory.
After check it using Item by Location, I found out that the item has sufficient quantity in that location.
After debugging, I found that the error is from this code in CodeUnit 22, InsertItemLedgEntry.
IF ItemLedgEntry.Open THEN BEGIN
IF (((ItemLedgEntry."Entry Type" IN
[ItemLedgEntry."Entry Type"::"Negative Adjmt.",
ItemLedgEntry."Entry Type"::Consumption]) AND
("Source Type" = "Source Type"::Item)) OR
(ItemLedgEntry."Entry Type" = ItemLedgEntry."Entry Type"::Transfer)) AND
(ItemLedgEntry.Quantity < 0)
THEN
ERROR(Text005,ItemLedgEntry."Item No.");
The ItemLedgEntry is Open, Entry Type is Consumption, Source Type is Item, Quantity is -280. So the error raise.
The question is, the quantity is sufficient but why it said that the item is not in inventory?
Thanks for the replies.
Regards,
Alphonse
0
Comments
Have you checked if there is any reservation? lot no. or serial no. assigned?
If it's a multilevel production order you need to consume the item you produced on that production order.
NAV Freelance Consultant
And I see there is no reservation for this item.
But the "Qty. on Component Lines" and "Scheduled Need (Qty.)" has some value in it. Is there any effect from those two fields? Thanks.
Regars,
Alphonse
NAV Freelance Consultant
](*,)
Thanks for the replies.
Regard,
Alphonse
You may "believe" you have enough but the system "knows" you do not.
This will be on a warehouse level and bins if you have them. There could be a transfer order or sales order pulling the stock, but whatever it is the system believes it is not available.
This question gets asked regularly and it is always the users interpretation of the data, I do not believe it has been a "bug" yet.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Finally I transfer 1 item to the location that I want to journal. Post the production journal without error. And after that, I transferred the 1 item back to the original location.
Thanks for all the replies.
Regards,
Alphonse