Skip to Content
avatar image
Former Member

Mapping for a particular field

HI Friends,

In my source structure i have field called "Purchase ID". I need to map this field to target based on one criteria as follows :

Only the following Purchase ID's should be considered from source xml.

Purchase ID

100

101

102

103

104

I should not pick any other values. If i get any other values. we should throw expection.

Kindly guide me friends.

Renu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 06, 2010 at 08:39 AM

    Use function "FixValues" for this.

    Add all values to the function, click on "throw exception"

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 06, 2010 at 08:39 AM

    Hi,

    it is very simple, write simple UDF to check the value is in list or not, if it is not thorw java execption,that means your mapping will be failed,

    are you sure that you want throw execption??

    Regards,

    raj

    Add comment
    10|10000 characters needed characters exceeded