PRB: Scriptor Component Returns "Catastrophic Failure" Error Message (174222)
The information in this article applies to:
- Microsoft Commerce Server 2.0
This article was previously published under Q174222 SYMPTOMS
When a custom scriptor component written in VBScript is executed, the
following error may occur based on whether or not error handling code is in
place in the component.
Commerce.OrderPipeline error '80020009'
::OrderExecute() failed for component[0x..] hr: 0x8000ffff PROGID:
Commerce.Scriptor.1 Cannot Execute Script SetScriptSite Catastrophic
failure
<file name>, <line number>
The first time a scripting error is encountered, the pipeline returns the
error and a description of the scripting error. For example, if you attempt
to divide an integer by zero in your component, you receive the following
error message the first time pipeline is run:
Commerce.OrderPipeline error '80020009'
::OrderExecute() failed for component[0x..] hr: 0x80004005 PROGID:
Commerce.Scriptor.1 Cannot Execute Script Execute invocation failed
Unspecified error Division by zero
<file name>, <line number>
After the scriptor component encounters the divide by zero error,
subsequent executions of the order processing pipeline fail with the
"catastrophic failure" error message.
CAUSE
The problem occurs because no error handling code is written in the custom
component.
WORKAROUND
To work around this problem, always specify "On Error Resume Next" in the
component's VBScript code.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | kbprb kbProgramming KB174222 |
---|
|