Error while creating validation routine

Fisherman
Member Posts: 456
Question for the gurus.
I've written a routine to automate a couple of things off of the Item card. We plan to use Inventory Value Zero for one of our areas of business where we carry materials at zero cost on our books, and only have to account for quantities and lots.
In order to ensure that AP and AR ledgers are also controlled, I've added some code to the OnValidate() trigger for Inventory Value Zero on a test database on my machine, that no one else is using, that attempts to create/delete sales and purchase line discounts for the current item when the user check/unchecks the box. I say attempts because, if they haven't filled in enough information, I have it set to error out.
Every so often, though, after checking/unchecking the box to test the code, I get the following message...
Microsoft Business Solutions-Navision
Another user has changed the definition of the Field table after the activity was started.
Start again.
OK
I find it doubtful - since no one else is using my database. Any explanations?
I've written a routine to automate a couple of things off of the Item card. We plan to use Inventory Value Zero for one of our areas of business where we carry materials at zero cost on our books, and only have to account for quantities and lots.
In order to ensure that AP and AR ledgers are also controlled, I've added some code to the OnValidate() trigger for Inventory Value Zero on a test database on my machine, that no one else is using, that attempts to create/delete sales and purchase line discounts for the current item when the user check/unchecks the box. I say attempts because, if they haven't filled in enough information, I have it set to error out.
Every so often, though, after checking/unchecking the box to test the code, I get the following message...
Microsoft Business Solutions-Navision
Another user has changed the definition of the Field table after the activity was started.
Start again.
OK
I find it doubtful - since no one else is using my database. Any explanations?
0
Comments
-
0
-
not much - we're actually still running SP2.
Since Microsoft sees fit to release full version replacements and call them "Service Packs", I've not felt like replacing everything again.0 -
Fisherman wrote:not much - we're actually still running SP2.
Since Microsoft sees fit to release full version replacements and call them "Service Packs", I've not felt like replacing everything again.
Microsoft gives you with the "full release" the option of:
- Start with full updated database
- upgrading the runtime
- only updated objects you can export
All by giving just an fdb file with all objects and an up-to-date version list \:D/
So, in your case ... just export all objects with filter on Version list: *4.00.03*. Then you have your "service pack".
Also, just try to update (only runtime) your test environment and see if it helps... .0 -
Our Client suffering from this too.
It's look's like Change log is cause of problems.
Scenario:
1. Change log is ON.
2. Modify OBJ
3. Modifying obj record, navision cause errors
4. Switch OFF change log -> OK
5. Change log to ON -> OK too.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