You cannot make any changes in the database from this tr...

MagnoMagno Member Posts: 168
edited 2005-01-20 in Navision Attain
Hi,

I use an application server and i always get this message:
You cannot make any changes in the database from this trigger.

But i use
if not cuTemp.run() then
   Message('Error in codeunit');

Normally, if any errors occur in that codeunit, the NAS will get in the then but not stop to run. apparently here it does throw the error.

Now, i looked through the code with client monitor(code is 2 complex to debug) and i can say for sure we only call tables and codeunits in the NAS.

Can anyone tell me from which triggers this error could come, or how this could be?
There are no bugs, only random undocumented features...
---
My Blog: http://NAV-Magno.be

Comments

  • fbfb Member Posts: 246
    Hmm --

    C/Front can throw that error message if a db modification (insert, modify or delete) is attempted before beginning a write transaction...

    (Seems a silly comment, I know -- why call 'incorrect' C/Front code when you are inside C/AL code already -- but, then again, maybe you are doing some sort of cross-database replication or some such..)

    :-k
Sign In or Register to comment.