cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime exception caught in Message mapping

Former Member
0 Kudos

Hi,

I have a scenario where I am splitting the source message and map them to 3 different target structures.

When I test the scenario in the Mapping under Test tab it is throwing an error as follows:

RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/Target1/xmlJob. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.

The result for one of the target message in message mapping as follows: Is there some problem with the below lines in bold letters:There is a UDF which causing this transformation.

Please give some inputs on this.

Start tag [ns1:MT_O_T3]

Add raw attribute [ xmlns:ns1="http://pharma.com/"]

Start tag [Row]

Start tag [Title]

Put value [job titile]

Close tag [Title]

Start tag [JobID]

Put value [reference # 1]

Close tag [JobID]

Start tag [Country]

Put value [US]

Close tag [Country]

Start tag [City]

Put value [Mawo]

Close tag [City]

Start tag [State]

Put value [SA]

Close tag [State]

Start tag [ZipCode]

Put value [50123]

Close tag [ZipCode]

Start tag [Cname]

Put value [ ]

Close tag [Cname]

Start tag [Cphone]

Put value [ ]

Close tag [Cphone]

Start tag [Cemail]

Put value [ ]

Close tag [Cemail]

Start tag [Cweb]

Put value [http://www.pharma.com/]

Close tag [Cweb]

Start tag [Category]

Put value [9901]

Close tag [Category]

Start tag [Travel]

Put value [100]

Close tag [Travel]

Start tag [Telecommute]

Put value []

Close tag [Telecommute]

Start tag [JobType]

Put value [Executive]

Close tag [JobType]

Start tag [Clearance]

Put value [None]

Close tag [Clearance]

Start tag [Education]

Put value [1]

Close tag [Education]

before check 50000

after check 50000

before check 100000

after check 100000

after average 75000

Start tag [Salary]

Put value [Avg: 75000]

Close tag [Salary]

Start tag [Suitable]

Put value [ ]

Close tag [Suitable]

Start tag [Expire]

Put value [23]

Close tag [Expire]

Start tag [Sdesc]

Put value [job titile]

Close tag [Sdesc]

Start tag [Ldesc]

Put value [null]

Close tag [Ldesc]

Start tag [Requirements]

Put value [test description]

Close tag [Requirements]

Close tag [Row]

Close tag [ns1:MT_O_T3]

Thanks

BPR

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Check the occurences of the target messages if it is defined as 1 then it should populate all the time.

Regards

Rajesh

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

check the mapping for

/ns0:Messages/ns0:Message1/Target1/xmljob

either parent mapping is not done properly or if any UDF is used then it is not correct.

chirag

Former Member
0 Kudos

Hi Chirag,

I am getting the above error by testing it from RWB by taking a sample XML file.

Is that a error message or warning message?

Thanks

BPR

Former Member
0 Kudos

u replied that u r getting the erro while testing it from test tab.

Ur mapping is not correct check the same which i told u in my previous reply.

r u using any FCC.

chirag