I am facing this error “C/AL functions are limited during write transactions because one or more tables will be locked” while trying to run a report or custom process.
Ahsan Ali Changed status to publish
This error occurs when you’re trying to use restricted operations (like MESSAGE, CONFIRM, or file access) inside a write transaction.
To resolve it:
- Avoid using dialog functions like
MESSAGE,CONFIRM,STRMENUinside write transactions. - Refactor your code to separate user interaction from the write operations.
- If you’re using a third-party extension, contact the developer for an update.
Ahsan Ali Answered question
