The OnSourceError method indicates that an error occurred during a GetNextRows or GetData operation.
HRESULT OnSourceError (
LPBYTE pvExecUserData,
lPDTSTransformColumnInfo pSourceRow,
HRESULT hrError,
ULARGE_INTEGER uliRow,
ULONG cErrors,
BOOL *pbAbort );
Argument | Description |
---|---|
pvExecUserData [in] | User data pointer passed to IDTSDataPump::Execute. |
pSourceRow [in] | Pointer to the source row and binding information; NULL if GetNextRows or GetData failed. |
hrError [in] | Error code from the OLE DB or system call. |
uliRow [in] | Number of the row that failed. |
cErrors [in] | Number of error rows encountered during the transformation, including the current row. |
*pbAbort [out] | Set to TRUE by the error sink if this error should terminate IDTSDataPump::Execute. Otherwise, Execute continues until MaximumErrorRowCount is exceeded. |
OnSourceError is called when an error is encountered acquiring a source row. This is generally considered to be a fatal data pump error, and the pbAbort flag is set to TRUE.