**The Item Ledger Entry Does Not Exist**

Hi Experts,

I have created one purchase order and post and receive it.After that i did the invoice of the same purchase receipt no. but when i tried to post the invoice it’s giving error "Item Ledger entry Does not exist " & Identification fields & Values :

Entry No.7, Item No. =’’

when i debugged that error it’s going to CU 22 Function [PostItem()] indicating towards following code

IF “Value Entry Type” = “Value Entry Type”::“Direct Cost” THEN
GlobalItemLedgEntry.GET(“Item Shpt. Entry No.”)
ELSE
GlobalItemLedgEntry.GET(“Applies-to Entry”);
InitValueEntry(GlobalValueEntry,GlobalItemLedgEntry);
END;

Please Help…

Hi Rishi,

If you need urgent help, then call your partner, and pay for the support! All help you get here is done voluntary by our community members. If you haven’t received an answer then instead of just bumping up the question, then you should think “Maybe there is something wrong with my questions. Maybe the other members don’t know what I’m asking!”.

And in this case I don’t understand what you’re asking, because the answer is very obvious. The Item Ledger Entry doesn’t exist. You should look up the entry leading to this post error and then check the content of the “Item Shpt. Entry No.” or the “Applies to Entry No.”. Here should find the value 7 - which doesn’t exist. So the real challenge is find why it says no. 7.

This is really a “typical” support issue, which is a lot easier to solve by someone with access the the whole database, then someone who sits 1000’s of KM away with no direct access to the DB. The forums are better for more “general” issues.

Rishi,

Are you using reserveration functionality of Navision ???

Really Sorry Erik Apologies for that…

Hi Rishi,

Really no need to apologies. Just remember to think of Dynamics Users as your community friends, who would love to help you, if we can. But sometimes maybe we are just able to tell you to look into a special direction. Solving the actual issue often needs to be done by a specialist into the matter who have access to see a lot more parameters than it would be impossible to ask for here in the forums.

Anyway Amol asks an interesting question. Do you use “Reservations” in your current setup?

Because very often it has something to do with that when somethings goes wrong in the item posting codeunit (22).

In this case it is not that likely it’s important, because the error you get is related to value entries and the cost adjustments that happens when you post your purchase invoice. And somehow the links to the original entry is missing. It might be an setup issue, it might be in the code. You need to go to the source of the problem to know it. Depending on your version it might actually also be a known problem. That’s why you should always ask the exact version your question is about.

Anyway we would still love to hear when you find out exactly what your problem was, in case someone else gets the same problem.

Finally we resolved that problem the problem was came due to ItemNo. and EntryNo. both filed has taken as primary key so we only took EntryNo. as primary key…

Thanks a lot to Erik & Amol for give me great guidance.

Welcome [:)]