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.
0
Comments
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.
Is it a base 6.0 Database or Upgraded one?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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.
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.
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...
the error happen at codeunit 311-> Function -[ShowAndHandleAvailabilityPage]
code -> Rollback := NOT (CheckAvailability.RUNMODAL = ACTION::Yes);
any advise to solve the problem?
Just load the latest copy of the object codeunit 311 from the rollups. (NAVW17.00.00.35782 )