ErrorCode Property

DTS Programming

DTS Programming

ErrorCode Property

The ErrorCode property specifies the code for the error that occurred with the associated object.

Applies To
DTSTransformPhaseInfo Object StepLogRecord Object
PackageLogRecord Object TaskLogRecord Object
StepLineage Object  
Syntax

object.ErrorCode

Part Description
object Expression that evaluates to an object in the Applies To list

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetErrorCode(long *pRetVal);

Remarks

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.

See Also

DTSDataPumpError

DTSPackageError