Today we got the strangest error (for us) at least.
We got the Cannot Post due to not in the allowed range error.
Our Dates are 05/01/13 to 05/31/13. And the posting date is 05/01/13.
Debugging, I found in CU21 Item Jnl.-Check Line:
IF ("Posting Date" < AllowPostingFrom) OR ("Posting Date" > AllowPostingTo) THEN
FIELDERROR("Posting Date",Text001);
Why would they make it
< & > and not
<= & >=????
I'm allowing a certain date why wouldn't "equal" be ok? So if any old version users get that message you know know the issue & fix
Anyway I changed the allowed posting date back to 4/30 and it allowed me to post for 5/1. #-o
Comments
What you are saying is that your posting date is 5/1, but even though the From Date equals that value, you are STILL getting the error?
RIS Plus, LLC
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
http://www.BiloBeauty.com
http://www.autismspeaks.org
http://www.BiloBeauty.com
http://www.autismspeaks.org
yes - the debugger stops there.
so it being equal caused the error (IMHO) since changing the date back 1 day allowed us to post..
maybe it's a NAtive flaw
http://www.BiloBeauty.com
http://www.autismspeaks.org
Daniel already covered this. The code is correct, you are just reading it wrong.
IF NOT (A<B)
is the same as
IF (A>=B)
http://www.BiloBeauty.com
http://www.autismspeaks.org
Very late reply.
Hope you sorted this one but just in case you haven't I had a similar problem.
Check that the Posting Date is not a closing date i.e. C05/01/13