cancel
Showing results for 
Search instead for 
Did you mean: 

how to fail this message in mapping in PI.When field is empty?

Former Member
0 Kudos

Hi All,

how to fail this message in mapping in PI. When field is coming as a empty? source occurrence is 0 to 1 and target occurrence is also 0 to 1.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Ryan-Crosby
Active Contributor
0 Kudos

Hi Prem,

It depends on how fancy you want to get... you can simply write a UDF to throw a StreamTransformationException or you can take it a step further and try to collect all errors for one message.  I have explored the second option by also throwing a StreamTransformationException in the case that any errors exist for the message which is then shown in the Message Monitor log.  The thing I was really shooting for was to write an attachment to the message with all the individual messages listed out but we were having trouble with attachments either getting saved or being visible in the message monitor after a failure happens.  Some ideas to consider anyhow...

Regards,

Ryan Crosby

Answers (2)

Answers (2)

sateesh437
Participant
0 Kudos

Hi Prem,

You can throw and print custom error message by using Audit log entries if you are using PI 7.3+.

Regards,

Sateesh.

Dimitri
Active Contributor
0 Kudos

Hi,

I'm not sure what you mean. Can you provide more (relevant) details please?

Thanks

Dimitri