The ErrorCode property specifies the code for the error that occurred with the associated object.
object.ErrorCode
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Long
Read-only
HRESULT GetErrorCode(long *pRetVal);
The following table explains how the interpretation of the ErrorCode property depends on the object with which it is associated.
Object | Description |
---|---|
DTSTransformPhaseInfo | Error code for the operation preceding the current transformation phase. |
PackageLogRecord | Error code returned from package Execute method. |
StepLineage, StepLogRecord |
Error code returned from step Execute method. |
TaskLogRecord | Error code associated with this log record, as determined by the logging task. |