Problem: Planning Worksheet -> Carry Out for Purchase Ite

sonvdb
Member Posts: 33
I got the message below when perform Carry Out Action Message for Purchase Item in Planning Worksheet, the message show:
"The following C/AL functions can be used only to a limited degree during write transactions (because one or more table will be locked).
Form.RunModal is not allow in write transactions.
CodeUnit.Run() is allow in write transactions only if the return value is not used. For example, 'OK:=CodeUnit.Run()' is not allow.
Report.RunModal is allow in write transactions only if ' RequestForm = FALSE'. For example, 'Report.RunModal(...,FALSE)' is allowed.
DataPort.RunModal is allow in write transactions only if ' RequestForm = FALSE'. For example, 'DataPort.RunModal(...,FALSE)' is allowed.
Use the commit function to save the changes before this call, or structured the code differently
"
There is no such problem for Production Items. I am a consultant not developer, it's seem to problem with coding. Could you give a advise? Thank alot!
"The following C/AL functions can be used only to a limited degree during write transactions (because one or more table will be locked).
Form.RunModal is not allow in write transactions.
CodeUnit.Run() is allow in write transactions only if the return value is not used. For example, 'OK:=CodeUnit.Run()' is not allow.
Report.RunModal is allow in write transactions only if ' RequestForm = FALSE'. For example, 'Report.RunModal(...,FALSE)' is allowed.
DataPort.RunModal is allow in write transactions only if ' RequestForm = FALSE'. For example, 'DataPort.RunModal(...,FALSE)' is allowed.
Use the commit function to save the changes before this call, or structured the code differently
"
There is no such problem for Production Items. I am a consultant not developer, it's seem to problem with coding. Could you give a advise? Thank alot!
0
Comments
-
Hello Sonvdb
On the option tab there is a checkbox. Stop and Show First Error. Check that option.0 -
Hello ara3n, thank you very much. It's work now. But I am confusing about this option, I talk that if we check it then it will stop and show the error (like the message I wrote).0
-
There is some part of the process (may be customization or :bug: ) which want to run modal report, form etc. but the write transaction is running. You can use the debugger to see, where it will be called. But this can be deep in the code (for example, the process is validating some field, this validation trigger printing of some document etc.)0
-
That is a standard Navision :bug: . I have seen it three times now. SP2 i believe where it started happening.0
-
I have just tested with SP1 & SP2 the same problem occured.0
-
Thanks Sonvdb. Have you tried it in sp3?0
-
Sorry, I don't have SP3 here. Can someone else try it in SP3?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