This discussion has been locked.
You can no longer post new replies to this discussion. Posts are automatically locked, when no new replies have been made for a long time. If you have a question you can start a new discussion.

NAS Error Message

Dear All,

I have a NAS which executes several task in the following way:

Codeunit1 -> Codeunit50000 -> Codeunit50001 -> Report50000 

Step 1: Codeunit1 is where the parameter call of my NAS located.

Step 2: Codeunit50000 only act as an intermediate to call all my functions stored in Codeunit 50001.

Step 3: Codeunit50001 contains few functions which will be executed one by one, then lastly run another Report50000.

Step 4: Report50000 will write some data into tables.

The problem is I get the following error in the Windows Event Viewer:

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 ret.

Hope someone can give me some advice on this. Thanks in advance!

Parents Reply Children