Sales Line Subform -> Release Error
Joe_Mathis
Member Posts: 173
Hi Everyone,
I get a message that "another user has modified the record for this Sales Header" when I try to release a sales order after entering a sales line.
I am on the Sales Line subform and either click on the release command or use the keyboard shortcut and the result is the same. If I click out of the subform to the main form and then release I have no problems.
Also if I acknowledge the error and try to release again, I have no error.
I have tried a
CurrForm.Update
and even
SalesHeader := Rec;
SalesHeader.SETRECFILTER;
ReleaseSalesDoc.PerformManualRelease(SalesHeader);
in the OnPush trigger, but with no luck.
I can't find anything that is changing the filters on the main form record while looking through the code coverage, and CU414 hasn't been changed.
Any thoughts?
Thanks in advance...
I get a message that "another user has modified the record for this Sales Header" when I try to release a sales order after entering a sales line.
I am on the Sales Line subform and either click on the release command or use the keyboard shortcut and the result is the same. If I click out of the subform to the main form and then release I have no problems.
Also if I acknowledge the error and try to release again, I have no error.
I have tried a
CurrForm.Update
and even
SalesHeader := Rec;
SalesHeader.SETRECFILTER;
ReleaseSalesDoc.PerformManualRelease(SalesHeader);
in the OnPush trigger, but with no luck.
I can't find anything that is changing the filters on the main form record while looking through the code coverage, and CU414 hasn't been changed.
Any thoughts?
Thanks in advance...
0
Answers
-
do you have some customized in your sales Line (or form) where you modify the Sales Header :?:Do you make it right, it works too!0
-
That was my first thought, but I haven't found anything in code coverage that actually makes any modification ](*,) ](*,)
I know it's something small that I'm overlooking.0 -
Try to use client monitor to find the point where the record is changed...0
-
Use Client Monitor or Debugger to find out, where the record is changed.
On debugger you can select the Context when you view the variable window (Alt + 2). In the drop down list there you can see the functions from where your function with error is called.
RegardsDo you make it right, it works too!0 -
Kine, you're to fast for me :-kDo you make it right, it works too!0
-
Thanks.
I've run it again looking at the debugger with the code coverage running.
There were a couple of calls to get the Sales Header, but I didn't see any assignments to any of the Sales Header fields.
After inserting the Sales Line, I stopped the client monitor and it doesn't have the Sales Header listed.
I tried to use the zoom, but it shows the same because I have to change focus from the subform back to the main form, and once I do that it synchs back up and will work.
The modify that causes the error is in CU414. It is the release function.
EDIT: I was not looking at client monitor, but code coverage.
Thank you both, when I finally ran the client monitor, filtered for table 36, the update stood out and I found the modify call. Fixed it and everything is good.0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
