Not Valid Date
hant
Member Posts: 115
Dear all,
We have an issue regarding reverse transaction in GL. When I do reverse one transaction in GL, there is a message appear "The date is not valid" so I cannot reverse it. I still can post the transaction as normal. Does any one know how to sovle this issue?
Thanks in advance.
hant
We have an issue regarding reverse transaction in GL. When I do reverse one transaction in GL, there is a message appear "The date is not valid" so I cannot reverse it. I still can post the transaction as normal. Does any one know how to sovle this issue?
Thanks in advance.
hant
0
Comments
-
I've never seen the error. Turn on the debugger and see where it stops. Post the code in here and we might be able to help you.0
-
Dear hant,
Ara3n is correct, you must use debugger and manual books first then if it can't be solved, post to this forum.
G'Luck.
Rgds,
Johnsonsubscribe to:
sea-navision-community-subscribe@yahoogroups.com
detail in:
http://sea-navision-community.blogspot.com0 -
It seems, like some date is not filled in correctly (is empty). As others suggested: use the debugger to see the source of the "invalid" date...0
-
Pls. see the debug as below:
InsertGLEntry(CalcAddCurrResiduals)
IF GLEntry."Posting Date" = NORMALDATE(GLEntry."Posting Date") THEN BEGIN
BalanceCheckAmount :=
BalanceCheckAmount + GLEntry.Amount * ((GLEntry."Posting Date" - 01010000D) MOD 99 + 1);
BalanceCheckAmount2 :=
BalanceCheckAmount2 + GLEntry.Amount * ((GLEntry."Posting Date" - 01010000D) MOD 98 + 1);
END ELSE BEGIN
BalanceCheckAmount :=
BalanceCheckAmount + GLEntry.Amount * ((NORMALDATE(GLEntry."Posting Date") - 01010000D + 50) MOD 99 + 1);
BalanceCheckAmount2 :=
BalanceCheckAmount2 + GLEntry.Amount * ((NORMALDATE(GLEntry."Posting Date") - 01010000D + 50) MOD 98 + 1);
END;
.....
Reverse(ReversalEntry,ReversalEntry2)
InsertGLEntry(FALSE);
......
Post(PrintRegister)
GenJnlPostLine.Reverse(ReversalEntry,Rec);
Pls. give me some advice.
Thanks,
hant0 -
Navision gives Invalid date error on GL Entry when it finds a blank date.
Please check are you supplying any blank date.
The code does not give much information.
Regards.0 -
There are 2 date fields in G/L entry table and they are filled. I am not sure that is what you want me to check. Pls. advice.
Thanks,
hant0 -
Take a date variable and assign the Value of Normaldate(Date)
where date is Glentry date.
put the code before execution of the code you printed above.
Regards,0 -
Also make sure in user setup you have a from and to posting date.0
-
We have not activated this functionality.0
-
I have the same problem, solved though
This is what cause the error,
When looping the reverse process, G/L Entry found 0 Date.
That's because you have 1 Line in your G/L Account table contains 0 value,
Look at top most of your G/L Entry table, delete the 0 line
See what happen______________
Regards,
Steven0 -
Hi,
I tried your solution but cannot fix the error. There's no entry no. 0 in G/L entry table. Do you have another suggestion?
Regards,
Hant0 -
It could be that you have an invalid date in GL Entry.
Click on File->database->information->Tables->Find table 17->click on Test.
->Check all the options->on Option tab, select File.
Once the test is finished, open the file and take a look at it.
See if there are anything about date.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

