2

It is possible to end up with this error and stack trace if you have a finished physical inventory order that you try and post, when you have an item in your physical inventory recording that has a lot number as well as requiring an expiration date but that expiration date is not filled in:


"Expiration Date must have a value in Tracking Specification: Entry No.=1. It cannot be zero or empty.


Internal session id: 

1b1dbb29-8423-4f86-abeb-c93f3d173086


Application Insights session id: 

95bee072-d5df-4107-812f-f40e0d97b84b


Client activity id: 

e9920127-48c4-fc44-be32-d95f3644faf7


Timestamp: 

2023-07-03T13:51:30.0427536Z


AL call stack: 

"Item Jnl.-Post Line"(CodeUnit 22).CheckExpirationDate line 37 - Base Application by Microsoft

"Item Jnl.-Post Line"(CodeUnit 22).SetupSplitJnlLine line 101 - Base Application by Microsoft

"Item Jnl.-Post Line"(CodeUnit 22).PostSplitJnlLine line 4 - Base Application by Microsoft

"Item Jnl.-Post Line"(CodeUnit 22).RunWithCheck line 16 - Base Application by Microsoft

"Phys. Invt. Order-Post"(CodeUnit 5884).PostItemJnlLine line 45 - Base Application by Microsoft

"Phys. Invt. Order-Post"(CodeUnit 5884).PostPhysInventoryOrderLine line 28 - Base Application by Microsoft

"Phys. Invt. Order-Post"(CodeUnit 5884).Code line 103 - Base Application by Microsoft

"Phys. Invt. Order-Post"(CodeUnit 5884).OnRun(Trigger) line 3 - Base Application by Microsoft

"Phys. Invt. Order-Post (Y/N)"(CodeUnit 5883).OnRun(Trigger) line 7 - Base Application by Microsoft

"Physical Inventory Order"(Page 5875)."Post - OnAction"(Trigger) line 2 - Base Application by Microsoft"


This is incredibly frustrating to users as it does not tell them the problem. Instead the only way to fix this is to create a copy environment to debug it and then inform the users accordingly. This can be incredibly time consuming and does come at a cost for the partner involved.


It would be better to have the item no. and physical inventory recording line no. rater than a temporary item tracking line that points to an entry which the user cannot see.


This makes the physical inventory order difficult to understand why it isn't posting as the error message isn't very informative.


Luke Dyson

Azzure IT Support Consultant.

Category: Inventory
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team