Hi,
When I attempt to post a purchase invoice I receive an error saying:
'Posting Date is not with your allowed range of posting dates in Item Journal Line Journal Template Name=",Journal Batch Name=",Line No.='0'.
However I have checked the user setup records and the posting dates on the orders are with the allowed range of posting dates specified in the user setup record.
Code Unit 21 displays the error in a Text001 constant. This is an unmodified code unit.
Until this last line I copied the message from another user, because he/she had the same problem and the answer was to check the g/l setup table and the user setup table. Nothing more! This cannot be the problem though. The database is a native navision 4.2 and the invoices always contained item lines and item charge lines. The weird thing is that maybe a few hours or day(s) later, the invoice can be posted without problems.
0
Comments
But double check posting date ranges for user in question first.
Any modifications to purchase posting etc.?
www.NextEqualZero.com
A technical eye on Dynamics NAV
is it possible you have a conflict in system date format between "M-d-Y" and D-M-Y?
MCT - Dynamics
ERP implementor/consultant
The line isn't uninitialized, because otherwise it would already crash with the TESTFIELD("Posting date") that comes before the Allowed posting dates check. The template and batch name and the line no. are always empty when the line comes from a document.
And no, the setup for the dates ("M-d-Y" and D-M-Y) cannot be the reason neither.
There have been no changes made to the purchase module either.
Anyway, I have really no idea where to look for the reason of the problem......
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
More lost than ever!!!!!
Since if a User Setup exists with either/ both [Allow Posting from and ALlow posting to] date fields updated, this will be given higher preference to G/L setup allowed posting date(s).
Futher more if you restore a backup onto a navtive db, do not come out of the application, and directly start the transaction, u can observe that user id is blank. In such a case allow from and to is from 0d to 21319999D. Hence it may allow the posting to happen (?) {this is just a guess work }