NAV client crashes when opening a page based on a SQL View
rsaritzky
Member Posts: 469
Hi all,
I have a "Worksheet" type page based on a SQL View. The worksheet has a series of filters on the page when are then applied to the view.
When I try to open the page, the NAV client immediately crashes. I found an exception file that says the following:
Type: System.FormatException
Message: Input string was not in a correct format.
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Microsoft.Dynamics.Nav.Client.DataBinder.FilterConverter.CreateNavFilterFromExpressionNode(ExpressionNode node, NavFilter[]& filters)
at Microsoft.Dynamics.Nav.Client.DataBinder.FilterConverter.CreateNavFilterFromExpressionNode(ExpressionNode node, NavFilter[]& filters)
at Microsoft.Dynamics.Nav.Client.DataBinder.FilterConverter.CreateNavFilterFromExpressionNode(ExpressionNode node, NavFilter[]& filters)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavFilterHelper.GetUserFilters()
at Microsoft.Dynamics.Nav.Client.DataBinder.NavFilterHelper.UpdateFilterGroupManager()
at Microsoft.Dynamics.Nav.Client.DataBinder.NavRecordStateHandler.CreateRecordState(Boolean includeServerFormState, Boolean includeSubFormSelectionStates, NavRecord record)
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.InitializeOpenFormArguments(LogicalForm mainForm, ICollection`1 subForms, NavOpenFormArguments& mainFormOpen, NavOpenFormArguments[]& subFormsOpen)
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.OpenForm(LogicalForm mainForm, Collection`1 subForms)
at Microsoft.Dynamics.Nav.Client.UIPatterns.OnFormOpeningPattern.OpenForm(LogicalForm form)
at Microsoft.Dynamics.Framework.UI.LogicalForm.OnFormBuilt(EventArgs e)
at Microsoft.Dynamics.Framework.UI.LogicalForm.BuildForm()
at Microsoft.Dynamics.Nav.Client.Builder.NavSessionHelper.BuildForm(LogicalForm form)
at Microsoft.Dynamics.Nav.Client.FormBuilder.PageBuilder.Build(MasterPage definition, BindingManager bindingManager, UIBuilderContext context)
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(MasterPage metadata, FormState formState)
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(Int32 formId, FormState formState, Int32 retryCounter)
at Microsoft.Dynamics.Nav.Client.Actions.NavOpenTaskPageAction.CreateForm(UISession uiSession, NavBindingManager parentBindingManager, FormState formState)
at Microsoft.Dynamics.Nav.Client.Actions.NavOpenTaskPageAction.InvokeCore(LogicalControl logicalControl, Object state, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.InvokeCoreWithErrorHandling(LogicalControl logicalControl, Object state, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.DoInvoke(LogicalControl logicalControl, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.UX2006.NavigationService.NavigateToNode(LogicalControl logicalControl, NavigationNode node)
at Microsoft.Dynamics.Framework.UI.UX2006.WinForms.PageSearchBar.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: mscorlib
HResult: -2146233033
Apparently there is data-format conversion issue. However, it gets strange. This page has been working OK. AND, if I save the page as a different object number, then run the NEW page, the page opens and behaves fine. I've tried deleting the Object Metadata record from table 2000000071, but that didn't prevent the problem.
Has anyone seen this? The SQL view is relatively simple, joining Item Ledger Entry, Warehouse Entry and Serial No. information - the view isn't simple enough however to be created in a Query.
Thanks
Ron
I have a "Worksheet" type page based on a SQL View. The worksheet has a series of filters on the page when are then applied to the view.
When I try to open the page, the NAV client immediately crashes. I found an exception file that says the following:
Type: System.FormatException
Message: Input string was not in a correct format.
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Microsoft.Dynamics.Nav.Client.DataBinder.FilterConverter.CreateNavFilterFromExpressionNode(ExpressionNode node, NavFilter[]& filters)
at Microsoft.Dynamics.Nav.Client.DataBinder.FilterConverter.CreateNavFilterFromExpressionNode(ExpressionNode node, NavFilter[]& filters)
at Microsoft.Dynamics.Nav.Client.DataBinder.FilterConverter.CreateNavFilterFromExpressionNode(ExpressionNode node, NavFilter[]& filters)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavFilterHelper.GetUserFilters()
at Microsoft.Dynamics.Nav.Client.DataBinder.NavFilterHelper.UpdateFilterGroupManager()
at Microsoft.Dynamics.Nav.Client.DataBinder.NavRecordStateHandler.CreateRecordState(Boolean includeServerFormState, Boolean includeSubFormSelectionStates, NavRecord record)
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.InitializeOpenFormArguments(LogicalForm mainForm, ICollection`1 subForms, NavOpenFormArguments& mainFormOpen, NavOpenFormArguments[]& subFormsOpen)
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.OpenForm(LogicalForm mainForm, Collection`1 subForms)
at Microsoft.Dynamics.Nav.Client.UIPatterns.OnFormOpeningPattern.OpenForm(LogicalForm form)
at Microsoft.Dynamics.Framework.UI.LogicalForm.OnFormBuilt(EventArgs e)
at Microsoft.Dynamics.Framework.UI.LogicalForm.BuildForm()
at Microsoft.Dynamics.Nav.Client.Builder.NavSessionHelper.BuildForm(LogicalForm form)
at Microsoft.Dynamics.Nav.Client.FormBuilder.PageBuilder.Build(MasterPage definition, BindingManager bindingManager, UIBuilderContext context)
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(MasterPage metadata, FormState formState)
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(Int32 formId, FormState formState, Int32 retryCounter)
at Microsoft.Dynamics.Nav.Client.Actions.NavOpenTaskPageAction.CreateForm(UISession uiSession, NavBindingManager parentBindingManager, FormState formState)
at Microsoft.Dynamics.Nav.Client.Actions.NavOpenTaskPageAction.InvokeCore(LogicalControl logicalControl, Object state, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.InvokeCoreWithErrorHandling(LogicalControl logicalControl, Object state, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.DoInvoke(LogicalControl logicalControl, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.UX2006.NavigationService.NavigateToNode(LogicalControl logicalControl, NavigationNode node)
at Microsoft.Dynamics.Framework.UI.UX2006.WinForms.PageSearchBar.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: mscorlib
HResult: -2146233033
Apparently there is data-format conversion issue. However, it gets strange. This page has been working OK. AND, if I save the page as a different object number, then run the NEW page, the page opens and behaves fine. I've tried deleting the Object Metadata record from table 2000000071, but that didn't prevent the problem.
Has anyone seen this? The SQL view is relatively simple, joining Item Ledger Entry, Warehouse Entry and Serial No. information - the view isn't simple enough however to be created in a Query.
Thanks
Ron
Ron
0
Best Answers
-
If Juhls answer does not work, make sure that your primary key in NAV is actually unique when running the view. I've seen all kind of strange behavior if it is not...5
Answers
-
If Juhls answer does not work, make sure that your primary key in NAV is actually unique when running the view. I've seen all kind of strange behavior if it is not...5
-
Thanks, lynge. Primary key is Item Ledger Entry "Entry No." so it is unique. I deleted personalizationstore.xml on my local drive (It can be in various locations. Mine was stored in
C:\Users\<Username>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV.
Deleting this file did the trick.Ron0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 327 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
