"Filter To This Value" on Blank Date = Crash

Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
edited 2012-09-24 in NAV Three Tier
Hi guys,

I'd report strange behavior I found in all our customers' dbs using NAV 2009 R2 RTC.

1. Open Sales Order page
2. Insert a line with field "Planned Delivery Date" blank
3. Right-Click on "Planned Delivery Date"
4. Filter to this value
5. Crash....

Opening the filter page (Right-Click > Filter) and filtering for "Planned Delivery Date is '' " the filter works.

There're not errors on the server, the error is client-side:
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
     at Microsoft.Dynamics.Nav.Client.ExceptionHandler.<>c__DisplayClass2.<DoRethrowWithCatchException>b__0()
     at Microsoft.Dynamics.Nav.Client.ExceptionHandler.ExecuteAndCatchExceptions(Func`1 execute)
     at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoExecute(Func`1 execute)
     at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoRethrowWithCatchException(Exception exception)
Source: Microsoft.Dynamics.Nav.Client
----------------------------------
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
     at Microsoft.Dynamics.Framework.UI.FilterToThisValueAction.GetFilterValue(LogicalControl filterValueControl)
     at Microsoft.Dynamics.Nav.Client.Actions.NavSubFormFilterToThisValueAction.GetFilterValue(LogicalControl filterValueControl)
     at Microsoft.Dynamics.Nav.Client.Actions.NavSubFormFilterToThisValueAction.InvokeCore(Boolean async, LogicalControl logicalControl, Object state, UISession uiSession)
     at Microsoft.Dynamics.Framework.UI.Action.InvokeCoreWithErrorHandling(Boolean async, LogicalControl logicalControl, Object state, UISession uiSession)
     at Microsoft.Dynamics.Framework.UI.Action.DoInvoke(LogicalControl logicalControl, UISession uiSession)
     at Microsoft.Dynamics.Framework.UI.ActionControl.Invoke()
     at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter, ActionControl actionControl)
     at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter)
     at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.OnInvoke()
     at Microsoft.Dynamics.Framework.UI.WinForms.MenuBarActionControlAdapter.<InitializeNativeControl>b__0(Object sender, EventArgs e)
     at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
     at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
     at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
     at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
     at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
     at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
     at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
     at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
     at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
     at System.Windows.Forms.Control.WndProc(Message& m)
     at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
     at System.Windows.Forms.ToolStrip.WndProc(Message& m)
     at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
     at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: Microsoft.Dynamics.Framework.UI

This happens for all Date fields if they're blank in all SubPages (both standard and custom).
I verified it on these verisons:
- build 33137 (locs. W1, CZ, SK, BG, HU,RO)
- build 33154 (locs. IT)

Does this happen also in your dbs?
Have you got any suggestion?

thank you in advance
~Rik~
It works as expected... More or Less...

Comments

  • Marc_Hansen_[MSFT]Marc_Hansen_[MSFT] Member, Microsoft Employee Posts: 12
    Thanks, this is a generic issue for subform "filter to this value" that is likely to happen on other types as well, like Time.

    I have logged it as a hotfix for V7.

    Marc Hansen
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    "Marc wrote:
    "]Thanks, this is a generic issue for subform "filter to this value" that is likely to happen on other types as well, like Time.

    I have logged it as a hotfix for V7.

    Marc Hansen

    Hi Marc,

    thanks for replay.
    So will this issue be solved in NAV 2013 only?
    ~Rik~
    It works as expected... More or Less...
  • Jorge_Torres_[MSFT]Jorge_Torres_[MSFT] Member, Microsoft Employee Posts: 29
    We will also log it for NAV 2009 R2 HF.
    “This posting is provided "AS IS" with no warranties, and confers no rights.”
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    "Jorge wrote:
    "]We will also log it for NAV 2009 R2 HF.
    It's a very good news.
    Thank you very much Jorge.
    ~Rik~
    It works as expected... More or Less...
Sign In or Register to comment.