Extremely dangerous behavior - "when user loads form" executes multiple times

I have a simple form, with an insert statement "when user loads form". 

 

  • Every time this form loads on a stage, the insert statement is executed multiple times - sometimes 2 , sometimes 3 (at random)
  • Every time this form loads on an action, the insert statement executes only once.

Basically ANYTHING in the "when user loads form" seems to execute 2 or more times when the form is opened at a stage - I've tried log statements, other object calls etc to verify this.

 

Is this a new defect in version 9.2, or is this something wrong with my code, or is this a "feature"?

If it is "as designed", I'd hope people know about it and know not to do anything except read operations on the form load

Tagged:

Comments