cancel
Showing results for 
Search instead for 
Did you mean: 

1 input file to 2 output file mapping. Please help!

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I have a snenario where from one input file I have to generate two output files. My sender and receiver systems are the same since I want to generate the output files in the same location. I am using both the systems same just for testing purpose.

So in IR I have created

1. one outbound interface for the input file

2. two inbound interfaces for the output files

3. one message mapping containing one input message

transformation to two output messages.

4. one interface mapping containing one input interface

transformation to two output interfaces.

In ID I have created

1. one file sender channel and two receiver channels for two output files with different names.

2. two receiver agreements

3. one sender agreement

4. one interface determination of type "Enhanced".

5. one receiver determination

But when I run the scenario given one valid input file I am getting the error in the sxmb_moni : RuntimeException in Message-Mapping transformation: Cannot produce target element.

However message mapping and interface mapping works perfectly if I test it in IR with the same input file.

Can somebody help me understand what I might be doing wrong?

Have I done the configuration correctly for 1:N mapping?

Please help! I will be greatfull to you if you can help me.

Thanks

Gopal

Accepted Solutions (0)

Answers (3)

Answers (3)

gopalkrishna_baliga
Participant
0 Kudos

If my input file is like this:

<ns1:LocationMsg_MT xmlns:ns1="http://www.abc.com/Gopal">

<Location>

.

.

</Location>

</ns1:LocationMsg_MT >

Then my scenario is working.

But my input file will be like this:

<LocationMsg_MT>

<Location>

.

.

</Location>

<LocationMsg_MT >

This is giving problem.

How to handle this kind of file?

Thanks

Gopal

Edited by: gopalkrishna baliga on Mar 14, 2008 3:19 PM

justin_santhanam
Active Contributor
0 Kudos

Gopal,

Can you go to Message Mapping Test Tab and copy the source payload and paste it here?

raj.

Former Member
0 Kudos

Hi,

do u require the output file as 2 files for the input file, whether any change of data or just the replication of the other file u required..

regards,

Kishore

gopalkrishna_baliga
Participant
0 Kudos

My input file contains two informations one for locationstatus and another for regiondetails.

I want to put locationstatus into one output file and region details into another output file.

-Gopal

justin_santhanam
Active Contributor
0 Kudos

Gopal,

While placing the file did you removed the messages tag?

raj.

gopalkrishna_baliga
Participant
0 Kudos

Hi Raj,

I did not remove the messages tag.

-Gopal

justin_santhanam
Active Contributor
0 Kudos

Gopal,

You need to remove the Messages tag from the copied XML. Remove it and place the file.

raj.