Unable to apply filter on Virtual Date Table

Sakshi
Member Posts: 2
Hi,
We are facing a problem in NAV 2015 CU 8. Your help will be much appreciated.
I don’t know, it is due to some code bug or some NST bug.
But sometime, NAV is not able to apply filter out data on the Date Table. It is always picking first entry from Date Table.
Rest virtual tables are working fine.
And the common thing is, every time Memory utilisation of NAV Application servers reaches to 99%.
But after NAV Application server memory utilisation restore back to normal. Still this issue persists.
Frequency of this issue is not very high. But every time we have to restart NAV services to get it back to normal and it impacts user Business.
Code:
Date.RESET;
Date.SETRANGE("Period Type",RecDate."Period Type"::Year);
Date.SETRANGE("Period Start",FromDate,ToDate);
IF Date.FINDSET THEN REPEAT
InsertIntBuf(Contr."Contract No.",Date."Period Start",Date."Period Start");
UNTIL Date.NEXT=0;
Error:

Can someone help regarding this issue.
We are facing a problem in NAV 2015 CU 8. Your help will be much appreciated.
I don’t know, it is due to some code bug or some NST bug.
But sometime, NAV is not able to apply filter out data on the Date Table. It is always picking first entry from Date Table.
Rest virtual tables are working fine.
And the common thing is, every time Memory utilisation of NAV Application servers reaches to 99%.
But after NAV Application server memory utilisation restore back to normal. Still this issue persists.
Frequency of this issue is not very high. But every time we have to restart NAV services to get it back to normal and it impacts user Business.
Code:
Date.RESET;
Date.SETRANGE("Period Type",RecDate."Period Type"::Year);
Date.SETRANGE("Period Start",FromDate,ToDate);
IF Date.FINDSET THEN REPEAT
InsertIntBuf(Contr."Contract No.",Date."Period Start",Date."Period Start");
UNTIL Date.NEXT=0;
Error:

Can someone help regarding this issue.
0
Answers
-
If "From Date" is a Date Type Field, then "03/01/0001" is clearly outside the allowed range of dates.
"Denotes a date ranging from January 1, 1753 to December 31, 9999."
https://docs.microsoft.com/en-us/dynamics-nav/date-data-type0 -
Thanks Andreas.
But "From Date" is a valid date but still not able apply the filter.
Also, if we are simply making a page of the Date table and applying filter on "Period Type" and "Period Start" still not able apply the filters.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions