RunModal Error in NAV 6.0

ami
Member Posts: 11
Hi Guys,
I am using NAV 6.0 i get the following error when entering quantity on a sales order;
The following C/AL functions can be used only to a 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 return value is not used. For example, 'OK: = CodeUnit.Run()' is not allowed.
Report.RunModal() is allowed in write transactions only if 'RequestForm = FALSE'. For example, 'Report.RunModal(...,FALSE)' is allowed.
DataPort.RunModal() is allowed 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 structure the code differently.
Anybody has a fix for this?
I will appreciate.
I am using NAV 6.0 i get the following error when entering quantity on a sales order;
The following C/AL functions can be used only to a 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 return value is not used. For example, 'OK: = CodeUnit.Run()' is not allowed.
Report.RunModal() is allowed in write transactions only if 'RequestForm = FALSE'. For example, 'Report.RunModal(...,FALSE)' is allowed.
DataPort.RunModal() is allowed 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 structure the code differently.
Anybody has a fix for this?
I will appreciate.
0
Comments
-
Did you make any changes ? Most of the times when this happens when changing something on the sales line it's caused by changes conflicting with the Stock or Credit limit warning, but without more information, we can't help you.0
-
Thank you for getting in touch.
I didn't make any change at all, didn't touch the credit limit and the item in question has an inventory of 645. I have read about a hotfix for this kind of error in version 4. I checked the code, it's got the hotfix for version 4 in.
I honestly don't know what to do.0 -
in Classic or RTC?
Is it a base 6.0 Database or Upgraded one?0 -
It's NAV 6.0 db, not upgrade.0
-
Compare with the latest version (NAV R2) object and check whether there is any bug fix in it..0
-
Mohana,
You are right, the error was caused by a credit limit on the customer card. I've set it to zero and gone a head without the error. I think it is because the credit limit had been exceeded.
Thank you for ur help.
Ami0 -
-
ami wrote:Mohana,
You are right, the error was caused by a credit limit on the customer card. I've set it to zero and gone a head without the error. I think it is because the credit limit had been exceeded.
Thank you for ur help.
Ami
I don't think this is correct. Most likely what MBerger (not Mohana) said was correct, and someone has made changes (probably in Table 37) the make a write transaction before credit checking. Its likely the error has been there for a while and you never saw it because no customer went over their credit limit.
You need to have your partner look at this and resolve it. No use simply sticking your head in the sand because the error will come back.David Singleton0 -
Hi David,
I did look at the code and it is standard, no modification has been done. I will revisit the code again. Thank you for pointing this out.
Thanks,
Caroline.0 -
ami wrote:Hi David,
I did look at the code and it is standard, no modification has been done. I will revisit the code again. Thank you for pointing this out.
Thanks,
Caroline.
If you have no modifications at all to Navision, then this would be a repeatable bug that you can report to Microsoft.David Singleton0 -
It surely sounds very strange that this basic error can be achieved in a Cronus W1 database since the stucture of this transaction has been there since the stoneage.
You are talking about hotfixes? Is this a MS hotfix? Or are you using an add-on that you don't consider a change?
Just curious... that's all...0 -
i encounter same problem at NAV 2013 sales order, the message is "The following C/AL functions can be used only to a limited degree during write transaction (because one or more tables will be locked). Form.RunModal() is not allowed in write transaction…"
the error happen at codeunit 311-> Function -[ShowAndHandleAvailabilityPage]
code -> Rollback := NOT (CheckAvailability.RUNMODAL = ACTION::Yes);
any advise to solve the problem?0 -
Hi,
Just load the latest copy of the object codeunit 311 from the rollups. (NAVW17.00.00.35782 )LR0
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