You can control what happens to the parameter array when an error occurs while processing a request to the application server or a response from the application server. The behavior is controlled by two properties:
  • InputErrorResetPolicy—Applies to errors that occur when establishing connections and sending data to the application server.
  • OutputErrorResetPolicy—Applies to errors that occur when processing a response from an application server request.
The possible values for the properties are:
  • RESET_ALWAYS—Reset parameters to NULL if an error occurs during processing.
  • RESET_MODIFIED—Only reset parameters to NULL if the parameter array was modified during processing.

By default, both properties are configured to RESET_MODIFIED, which causes parameters in the ParamArray object to be reset to NULL only if the ParamArray was modified during processing.

You can override the default behavior by setting the policies to RESET_ALWAYS. For example:
VAR paramTest = NEW ParamArray(2);

paramTest.ParamArray.InputErrorResetPolicy = InputErrorResetPolicy.RESET_ALWAYS;
paramTest.ParamArray.OutputErrorResetPolicy = OutputErrorResetPolicy.RESET_ALWAYS;