Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

HOW TO: Write error messages with error code to session log using a Custom Transformation
Solution

There aretwo functions that can log error messages:

  • INFA_CTLogMessageM
  • INFA_CTLogMessageU
INFA_CTLogMessageM

Logs a message for a given severity level in MBSC in the current server code page with the following format:

INFA_CTLogMessageM (INFA_CT_ERRORSEVERITYLEVEL errorSeverityLevel, const char *msg)

INFA_CTLogMessageU

Logs a message for a given severity level in UCS-2.

INFA_CTLogMessageU (INFA_CT_ERRORSEVERITYLEVEL errorSeverityLevel, const INFA_UNICHAR *msg)

More Information
Format strings can not be directly used in INFA_CTLogMessageM() to report error messages with error codes.
Here is an example for theMBCS call:

sprintf(msg,"%s %d","Custom transformation Error = ",error_code);
INFA_CTLogMessageM( eESL_ERROR, msg );

For the Unicode call you will need to populate msg using Unicode characters.

Reference
PowerCenter Transformation Guide

Applies To
Product: PowerCenter
Problem Type:
User Type: Administrator
Project Phase:
Product Version: PowerCenter 7
Database:
Operating System:
Other Software:
Attachments
Last Modified Date:8/2/2008 4:53 PMID:15528
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)