cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot produce target element

Former Member
0 Kudos

Hi,

I am getting "Cannot produce target element /ns:OUTFILE_MT" error when trying to do a simple File2File scenario.

Message Mapping test is working fine.

Any help would be appreciated.

Regards,

Sudha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sudha,

You get the error "Cannot produce target element" when ur source XML is not well formed.Take the source XML from the payload and paste it in the place of the source XML of your mapping.

Than compare both of these XML's and you will trace out the error.

Pravesh

Former Member
0 Kudos

The difference is:

MM has <ns:INFILE_<b>MT</b> xmlns:ns="urn:sudha"> and

Payload <ns:INFILE_<b>DT</b> xmlns:ns="urn:sudha">

Where do I fix this difference?

-Sudha

Message was edited by:

Sudha

justin_santhanam
Active Contributor
0 Kudos

Sudha,

Where do you got the payload from? Do a copy of the payload from Mapping test editor and place in the file..

raj.

santhosh_kumarv
Active Contributor
0 Kudos

Hi Sudha,

In the FCC,

Specify the Document Name : as the Message type name.... no as the data type name.

Regards

San

Message was edited by:

Santhosh Kumar V

Former Member
0 Kudos

> Hi Sudha,

>

> In the FCC,

>

> Specify the Document Name : as the Message type

> name.... no as the data type name.

>

> Regards

> San

>

> Message was edited by:

> Santhosh Kumar V

<b>The above solution worked in my case.</b>

Thanks to all for helping.

-Sudha

Answers (9)

Answers (9)

Former Member
0 Kudos

hi

and after run the scenario, go to sxmb_moni, go to inbound message , go to payload, and put that payload into the message mapping and then test the message mapping. you will come to know where is the error.

case2: check whether all the mandatory nodes are mapped .

Thanks

Rinku

Former Member
0 Kudos

hi

and if your scenario is xml file to text file then use the following parameters at the receiver side

childnodename.fieldFixedLengths--1,1(suppose)

childnodename.endSeparator :'nl'(nl is for the next line)

parentnodename.fieldSeparator:'nl'

Thanks

Rinku

Former Member
0 Kudos

if your scenario is text file to xml file then use the following parameters in the sender communication channel.

RECORD.fieldSeparator :,

RECORD.fieldNames :KEY,FNAME,LNAME,AGE

RECORD.keyFieldValue :1

DETAIL.fieldSeparatr :,

DETAIL.fieldNames :KEY,SALARY,EMPID

DETAIL.fieldNames :2

Note:these parameters are accoding to the structure given below.

suppose you have a structure like as below

data (0..unbounded)

record (0..unbounded)

key (1..1)

fname (1..1)

lname (1..1)

age (1..1)

detail (0..unbounded)

key (1..1)

salary (1..1)

empid (1..1)

and the input file will look like as below

1,aaa,bbb,23

2,12000,10838

1,ccc,ddd,23

2,13000,10830

Thanks

Rinku

Former Member
0 Kudos

Hi Sudha

can you please tell me that ur scenario is text file to xml or xml to text file

Thanks

Rinku

Former Member
0 Kudos

Hi

Just check whether the values you are trying to send in the source can be accepted by the target.I mean there is no data type mismatch or the format is correct..

Also Go to Message Monitoring and take the payload of the inbound message and copy the same while testing your message mapping in IR.

It will surely give some exception or error .Let us know that to help you better.

Thanks

nisarkhan_n
Active Contributor
0 Kudos

your FCC parameters are not matching with the Data type which you have defined. check your payload from SXMB_MoNI in the message mapping it will throw error.....

Former Member
0 Kudos

Hi Sudha

case1:Run the scenario and then copy the payload from the SXMB_MONI in a file and then upload that file in the message mapping and then check the message mapping.

case2: check all the mandatory nodes are mapped.

case3: check whether the data in the test file is according to the requirement for example:date format,etc....

Thanks

Rinku

former_member214364
Active Contributor
0 Kudos

Hi Sudha,

Do you have any mapping for this OUTFILE_MT from source?

if possible provide source and target Message types.

Cheers,

Jag

Former Member
0 Kudos

Hi,

Copy the payload from sxmb_moni and compare it with the payload from message mapping test and find the differences between both.

Regards,

Sudheer.