Page error.
CodeViper
Member Posts: 28
Is there a way to clear the error on a page.
I have code on a page that will throw the error message when a person tries to ship too much product.
Simple calculation... works perfect.
But when they correct the entry, the error ribbon still retains the error even though you can continue on with the entry.
Just an annoying eye sore to have it maintained on the page.
I have tried CLEARLASTERROR and ERROR(' ') *this clears the verbiage, but still retains the yellow error bar.
Refresh on the page does nothing...
For me to get rid of the error on the page, I have to close the page and reopen it for it to be gone.

Any help or thoughts to try??
I have code on a page that will throw the error message when a person tries to ship too much product.
Simple calculation... works perfect.
But when they correct the entry, the error ribbon still retains the error even though you can continue on with the entry.
Just an annoying eye sore to have it maintained on the page.
I have tried CLEARLASTERROR and ERROR(' ') *this clears the verbiage, but still retains the yellow error bar.
Refresh on the page does nothing...
For me to get rid of the error on the page, I have to close the page and reopen it for it to be gone.

Any help or thoughts to try??
0
Answers
-
Looks like a notification? Try to invoke a recall? https://docs.microsoft.com/en-us/dynamics-nav/function-notificationrecall0
-
Sorry, should have mentioned that this is NAV2016 and not BC. The error displayed has no "x" at the end to clear it either.0
-
Notifications were introduced in Nav 2016 as I'm correct but please let me know if I'm wrong. In Application Setup you can manage 'Notification Settings':
I think the solution is to disable the notification somewhere there.0 -
This is a forced and programmed error in the code, telling that you can max. ship 2 items (two each, 2 EA) and not 4 EA. If you have a debugger, stop the debugger on this error to see the code, to get more context.
I have the feeling that this is part of a customization, as I never saw this error before.IF User.Loves('Edo') THEN ok() ELSE currReport.genSkip;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