This can be due to a modification, maybe in OnInsert in Purchase Header or in one of the Form triggers.
This kind of problem can occure when a loop never ends, for instance when you have that kind of code
IF (condition) THEN REPEAT
(instructions)
UNTIL (new condition)
Be very carefull to your UNTIL "new condition" sometimes it's something which never happens.
To discover where is the problem, you could maybe use the Client Monitor.
My candle burns by both ends, it will not last the night,
But oh my foes and oh my friends, it gives a lovely light
Start the debugger with "breakpoint on triggers = no"
When the error occurs, you will see the recursive function in the call stack window.
Hope this helps
Thomas
When the error occurs, you will see the recursive function in the call stack window.
Just a note, sometimes it can be hard to see. You may have a recursive call that has 20 functions in it. i.e. A validates B validates C validates D validates E validates F validates A. I know that's not 20, but you get the idea
Comments
This kind of problem can occure when a loop never ends, for instance when you have that kind of code Be very carefull to your UNTIL "new condition" sometimes it's something which never happens.
To discover where is the problem, you could maybe use the Client Monitor.
But oh my foes and oh my friends, it gives a lovely light
maybe you VALIDATE the same field on it's own OnValidate() trigger - it's wrong.
When the error occurs, you will see the recursive function in the call stack window.
Hope this helps
Thomas
Just a note, sometimes it can be hard to see. You may have a recursive call that has 20 functions in it. i.e. A validates B validates C validates D validates E validates F validates A. I know that's not 20, but you get the idea
In my case users are getting this error randomly. If they click on Ok button on the message they can continue without any issue
hewajith