cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Error in BPM

Former Member
0 Kudos

when message mapping, if the length of source field is longer than specified length, I need to output these kinds of messages. what is the solution?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Could you give us more detail about your source and target structure.

I'm not sure how you can do that, because, if the source field value is longer than the specified length, only part of the value (equal to the max specified length)will be assigned to the source field.

Regards,

Smitha.

Former Member
0 Kudos

the design doc let me check the field length of source xml, Add an exception if the size is more than 16. the message is

"The Invoice Number is greater than 16 characters" . how to output this message?

Message was edited by: Spring Tang

Former Member
0 Kudos

Hi,

try using a user defined function written in java where u can check for the condition and raise a exception.

if(sourcefield.length()>16)

{

S.O.P("The Invoice Number is greater than 16 characters");

}

or

using a BPM where u can check whether Invoice number is greater than 16 characters and if it is true then raise an exception and send the message through BPM.

regards

jithesh

Former Member
0 Kudos

Hi,

In your BPM, receive the message, check if the field has > 16 chars, if, place the exception step in a block, else, carry on normal processing

Regards,

Smitha.

Former Member
0 Kudos

yes, I Know, how to catch the exception. further, how to output the error message like "The Invoice Number is greater than 16 characters"?

Former Member
0 Kudos

Hi,

Create a data type for error handling, and when the error occurs, (in the mapping) map one of the fields to the constant "field is greater than 16 chars", and send the message.

Regards,

Smitha.

Former Member
0 Kudos

Hi Spring,

This blog might help you, have a look at it.

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

regards,

P.Venkat

Former Member
0 Kudos

Hi Spring,

For the scenario that you are tryong to do where you want the records to be checked one by one, the best thing would be to do write Java mapping if you have loads of conditions, like checking the data, size of the field, the format of data etc.

Regards

Vijaya

Answers (0)