Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Custom Transformation
  5. Custom Transformation Functions
  6. Data Masking Transformation
  7. Data Masking Examples
  8. Expression Transformation
  9. External Procedure Transformation
  10. Filter Transformation
  11. HTTP Transformation
  12. Identity Resolution Transformation
  13. Java Transformation
  14. Java Transformation API Reference
  15. Java Expressions
  16. Java Transformation Example
  17. Joiner Transformation
  18. Lookup Transformation
  19. Lookup Caches
  20. Dynamic Lookup Cache
  21. Normalizer Transformation
  22. Rank Transformation
  23. Router Transformation
  24. Sequence Generator Transformation
  25. Sorter Transformation
  26. Source Qualifier Transformation
  27. SQL Transformation
  28. Using the SQL Transformation in a Mapping
  29. Stored Procedure Transformation
  30. Transaction Control Transformation
  31. Union Transformation
  32. Unstructured Data Transformation
  33. Update Strategy Transformation
  34. XML Transformations

Transformation Guide

Transformation Guide

Set Input Error Row Functions

Set Input Error Row Functions

When you use array-based access mode, you cannot return INFA_ROWERROR in the input row notification function. Instead, use the set input error row functions to notify the Integration Service that a particular input row has an error.
PowerCenter provides the following set input row functions in array-based mode:
  • INFA_CTASetInputErrorRowM().
    You can notify the Integration Service that a row in the input block has an error and to output an MBCS error message to the session log.
    Use the following syntax:
    INFA_STATUS INFA_CTASetInputErrorRowM( INFA_CT_INPUTGROUP_HANDLE inputGroup, INFA_INT32 iRow, size_t nErrors, INFA_MBCSCHAR* sErrMsg );
    The following table describes the arguments for this function:
    Argument
    Datatype
    Input/
    Output
    Description
    inputGroup
    INFA_CT_INPUTGROUP_HANDLE
    Input
    Input group handle.
    iRow
    INFA_INT32
    Input
    Index number of the row in the block. The index is zero-based.
    You must verify the procedure only passes an index number that exists in the data block. If you pass an invalid value, the Integration Service shuts down unexpectedly.
    nErrors
    size_t
    Input
    Use this parameter to specify the number of errors this input row has caused.
    sErrMsg
    INFA_MBCSCHAR*
    Input
    MBCS string containing the error message you want the function to output. You must enter a null-terminated string.
    This parameter is optional. When you include this argument, the Integration Service prints the message in the session log, even when you enable row error logging.
  • INFA_CTASetInputErrorRowU().
    You can notify the Integration Service that a row in the input block has an error and to output a Unicode error message to the session log.
    Use the following syntax:
    INFA_STATUS INFA_CTASetInputErrorRowU( INFA_CT_INPUTGROUP_HANDLE inputGroup, INFA_INT32 iRow, size_t nErrors, INFA_UNICHAR* sErrMsg );
    The following table describes the arguments for this function:
    Argument
    Datatype
    Input/
    Output
    Description
    inputGroup
    INFA_CT_INPUTGROUP_HANDLE
    Input
    Input group handle.
    iRow
    INFA_INT32
    Input
    Index number of the row in the block. The index is zero-based.
    You must verify the procedure only passes an index number that exists in the data block. If you pass an invalid value, the Integration Service shuts down unexpectedly.
    nErrors
    size_t
    Input
    Use this parameter to specify the number of errors this output row has caused.
    sErrMsg
    INFA_UNICHAR*
    Input
    Unicode string containing the error message you want the function to output. You must enter a null-terminated string.
    This parameter is optional. When you include this argument, the Integration Service prints the message in the session log, even when you enable row error logging.

0 COMMENTS

We’d like to hear from you!