Hi Community,
When running any report in Business Central, we’re encountering the following error message:
Is this a common issue in Business Central, or could it be related to customizations in our environment? Has anyone else faced this recently — or could this be related to a recent Microsoft wave update?
If requesting support, please provide the following details to help troubleshooting: Error message: An error occurred and the transaction is stopped. Contact your administrator or partner for further assistance. The following AL methods are limited during write transactions because one or more tables will be locked: Form.RunModal, Codeunit.Run, Report.RunModal, XmlPort.RunModal. 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. XmlPort.RunModal is allowed in write transactions only if 'RequestForm = false'. For example, 'XmlPort.RunModal(...,false)' is allowed. Use the commit method to save the changes before this call, or structure the code differently. Contact your application developer for further assistance. Internal session ID: 61d4d6f2-9e50-4c76-b087-0425fe4eb722 Application Insights session ID: 46ad9891-92ee-4ed0-b065-daadb8b67586 Client activity id: b6ac8d04-7e3a-41dc-ac89-980bbb7a489d Time stamp on error: 2025-10-07T05:58:54.6695947Z User telemetry id: 6b882ab2-1a3b-4362-83ee-36e9f3b4179d
Thank you in advance for any insights.
Nimsara
Hi,
When you perform database writes (INSERT, MODIFY, DELETE etc.), BC opens a transaction.
While inside that uncommitted transaction, you cannot run UI-bound functions like:
PAGE.RUNMODAL
REPORT.RUNMODAL
CODEUNIT.RUN
Because those calls may cause user interaction or nested transactions, BC blocks them with this runtime error.
As other experts suggested, you need to add COMMIT before using UI-Bound Functions.
If the issue still persists, you can try restarting your environment.
Hope it helps.
Aman K
Form.RunModal, Codeunit.Run, Report.RunModal, XmlPort.RunModal.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Nimsara Jayathilaka. 4,197
Rishabh Kanaskar 3,673
Sumit Singh 2,907