cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem

Former Member
0 Kudos

Now I have the following requirement:

Message Type I:

Info (1~n)

|-- id (1)

|-- seq (1~n)

Message Type 2:

SeqInfo (1~n)

|-- seq (1)

now I've link the seq of type 1 to the SeqInfo of type 2, link the seq of type 1 to the seq of type 2, but while test the mapping, it continue giving me the the "Cannot produce target element" error.

Anyone can help me to solve it?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

>>Cannot produce target element"

For which node you are getting this??? does it mention??

if not, check the mapping for the root node of the target. Check if your test data produces the source node that has to be mapped to the targets root node. If it does not produce it, you need do ensure that the source node is being produced in the test data

Then only you will get rid of this error

regards

krishna

Former Member
0 Kudos

The seq of messge type 2 can not be produced.

Former Member
0 Kudos

can you give as screen shot with your mapping dependencies???

regards

krishna

Former Member
0 Kudos

http://www.bababian.com/phoinfo/6BDE1DD1B83C8254728423A23C5B7437DT

Check it out.

The real situation is more complicated.

I'd like to map the seqno to a JDBC structure. Since the seqno may occur more than once, it will be inserted into database for by serveral rows.

Answers (3)

Answers (3)

Former Member
0 Kudos

Problem solved by using the UseOneAsMany function.

Former Member
0 Kudos

Hi,

Seems the problem has araised b'coz of the occurances. In the message Type 2

SEQ occurance is 1. You are mapping Seq of Message type 1 which is (1-n) occurances to SEQ Message Type 2 which has 1-1 occurance.

<b>Cheers,

*RAJ*

Former Member
0 Kudos

hi,

i think u hav mapped seq of type 1(which is unbounded) to seqinfo of type 2

Map the seqinfo of type 2 with root element of type1 ..but root element of type 1 should be unbounded..