Order planing problem

csicso
Member Posts: 10
Hi everyone!
I have a problem with Order Planning in NAV 4.0 SP2 on SQL Server.
When I try to create an Order, I've got an error:
"The following C/AL functions can be used only to limited degree during write transactions (because one or more tables will be locked).
Form.RunModal() is not allowed in write transactions.
CodeUnit.Run() is allowed in write transactions only if the ..."
This function is worked when we used the native database.
Any idea?
Thanks!
PS: sorry my english
I have a problem with Order Planning in NAV 4.0 SP2 on SQL Server.
When I try to create an Order, I've got an error:
"The following C/AL functions can be used only to limited degree during write transactions (because one or more tables will be locked).
Form.RunModal() is not allowed in write transactions.
CodeUnit.Run() is allowed in write transactions only if the ..."
This function is worked when we used the native database.
Any idea?
Thanks!
PS: sorry my english
0
Comments
-
Probably this function was not run on the native client. Or there was a COMMIT before it without starting a new transaction.
I would use the debugger to see where the error is how he got there.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks, I try it0
-
I've started the debugger, the error comes in this Codeunit:
333 Req. Wksh.-Make Order
In this function: TryCarryOutReqLineAction(ReqLine)
But this is too complicated for me, I'm a beginner NAV developer0 -
I think you get the error on this line:
IF NOT TryCarryOutReqLineAction(ReqLine) THEN BEGIN
NAV gets to this line if this is true:IF PlanningResiliency THEN BEGIN
Now you should search WHY this boolean is true.
This means you have to check the complete batch and follow how you get there.
This is not so easy for a beginning developer, so I would suggest you involve a senior developer.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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