Scenario: I had created an action button Print to run a report using REPORT.RUNMODAL, while running this report from the Windows Client an error is thrown as below.
Microsoft Dynamics NAV 2017
RUNMODAL stops the transaction and waits for the User interaction. Hence, all users are blocked (who need the table).
During a transaction, we are not allowed to open a object with RUNMODAL.
Use COMMIT statement before you call the REPORT.RUNMODAL.
What does COMMIT statement do?
The metasyntax below contains two write transactions. As execution begins, a write transaction is automatically started. Using the COMMIT function, you tell the system that the first write transaction has ended and prepare the system for the second. Once execution has been completed, the system automatically ends the second write transaction.
(C/AL Statements) // Transaction 1
(C/AL Statements) // Transaction 2
The post Error Resolution to “Form.RunModal is not allowed in write transaction” in Microsoft Dynamics NAV appeared first on CloudFronts - Microsoft Dynamics 365 | Power BI | Azure.