On a form's "When user exits form", I have a visual script which is inserting a record into a table. The form is part of the initial action of a process. When I exit the form, the visual script executes the database insert successfully, but Metastorm does not create the new record in the process table. The error I get is:
"Exception 'Object reference not set to an instance of an object.' occurred when attempting to 'Run script'. Object reference not set to an instance of an object."
(If I delete the visual script and run Metastorm, then Metastorm successfully creates the new record in the process table.)
Has anyone encountered this error before?
(I'm running version 9 with SR2 using SQL Server 2005)