Filters did not apply on "Date" virtual table

Isaland
Member Posts: 52
Hello all,
Do you know why it can be possible?
The Date virtual table is ignoring filters via code \ page \ report.

Do you know why it can be possible?
The Date virtual table is ignoring filters via code \ page \ report.

MB7-840
0
Answers
-
Can you show us the code that you have written. Reopen this Page and try to put Filter again and check please.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
works for me:
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
@RockWithNAV
DateRec.SETRANGE("Period Type",DateRec."Period Type"::Week); DateRec.SETFILTER("Period Start",'<=%1',WORKDATE); DateRec.FINDLAST;
@Slawek_Guzek
It also work for my machine. Restart NAV server helps, but after some time it will occure again.MB7-8400 -
If it works and stops working after some time then it is likely some NST bug. If restarting the NST helps it only confirms that hypothesis.
You could try SELECTLATESTVERSION before SETRANGE, to try to workaround the problem. The SELECTLATESTVERSION will clear session buffers and reduce memory pressure, which might help if problems are somehow related to memory.
Regardleds the SELECTLATESTVERSION helps or not try the newest CU, and report the bug to Microsoft
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
@Slawek_Guzek thank you for idea with SELECTLATESTVERSION. Will try it. Of course we will send report to microsoft about it.MB7-8400
-
@Slawek_Guzek SELECTLATESTVERSION did not help. I will update this topic after Microsoft respond.MB7-8400
-
Thanks for the feedback. I was curious if it could help.
Looking at the code you posted above - is this related anyhow to the test page you've shown? I mean is this just a snippet of the code used on the test page to filter someting, or you have build the page is just to demonstrate the problem, and the sample code posted later is from another place in the system?Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
@Slawek_Guzek I built the page just to check issue. The code part from another piece of the system.MB7-8400
-
Can I ask what version/cumulative update you are using?
I have seen this issue. It appears to apply to all virtual tables , not just the date table and is a NST bug. Restarting the NST resolves the issue. The issue appears to be caused by making objects changes and therefore I have only seen this in a development environment and not on any production environments.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