cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Exception

Former Member
0 Kudos

I have 3 flat files in one large file. I need to split them up into 6 diffrent files and send them out using 6 different channels. Iam on SPS 16 and Iam using message splitting using Graphical mapping.

Inbound message:

IN the Message Mapping I mapped like this.

Source:

-


Message1 1:1

State 0:1

staterec 0:Unbounded

product 0:1

productrec 0:Unbounded

country 0:1

countryrec 0:unbounded

Target Message:

messages

message1

state 0:1

staterec 0:Unbounded

message2

product 0:1

productrec 0:Unbounded

message3

country 0:1

countryrec 0:unbounded

Mapping:

State (0:1) -


> State (0:1)

staterec (0unbounded) -


> Staterec(0unbounded)

product(0:1) -


> Product (0:1)

productrec (0unbounded)- > Productrec (0--unbounded)

country (0:1)-----> Country (0:1)

Countryrec (0unbounded)-> Countryrec(0unbounded)

This is just plain mapping. testing in the mapping editor works fine. But during run time its throwing error "No messages created from split mapping "

Someone please let me know what Iam doing wrong

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Just test your map in this way..

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

sekhar

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

test your mapping by copying the payload from SXMB_MONI.

Also, when using Multimapping, make sure that all Target Messages are generated atleast once.

CHeck the multimapping aginst this blog,

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Regards,

Bhavesh

Former Member
0 Kudos

I copied the same payload I tested in the graphical editor which is also same as sxmb_moni payload. Yes iam inputting data for all messages. Any more I'm missing here?. Thanks for any direction..

bhavesh_kantilal
Active Contributor
0 Kudos

Ram,

When you copied the payload from SXMB_MONI and tested, what was the error you got?

Regards,

Bhavesh

Former Member
0 Kudos

I infact got this error.. ::(((

Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3)

Payload I copied is

-


<?xml version="1.0" encoding="UTF-8" ?>

- <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

- <ns0:Message1>

- <ns1:MT_Product_Master xmlns:ns1="http://www.test.com">

- <State_Category>

<State_Rec>Staterecord</State_Rec>

</State_Category>

- <Supplier_Category>

<Supplier_Rec>supplierecord</Supplier_Rec>

</Supplier_Category>

- <Product_Category>

<Product_Category_Rec>productcategory</Product_Category_Rec>

</Product_Category>

- <Product_Type>

<Product_Type_Rec>producttype category</Product_Type_Rec>

</Product_Type>

- <Master_Brand>

<Master_Brand_Rec>masterbrand</Master_Brand_Rec>

</Master_Brand>

- <Brand>

<Brand_Rec>brand</Brand_Rec>

</Brand>

- <Sub_Brand>

<Sub_Brand_Rec>subbransd</Sub_Brand_Rec>

</Sub_Brand>

- <Product>

<Product_Rec>werwtrtertrtrt</Product_Rec>

</Product>

</ns1:MT_Product_Master>

</ns0:Message1>

</ns0:Messages>

-


I actually generating 7 files as u can see..as its too big to post in the SDN, I did cut it short and changed descriptions for readability purpose.

Thank you for your time..

bhavesh_kantilal
Active Contributor
0 Kudos

Ram

Remove the hiphen "-" in the Payload you copied from SXMb_MONI. Also, remove the <b>MESSAGES</b> tag

<?xml version="1.0" encoding="UTF-8" ?>

<ns1:MT_Product_Master xmlns:ns1="http://www.test.com">

<State_Category>

<State_Rec>Staterecord</State_Rec>

</State_Category>

<Supplier_Category>

<Supplier_Rec>supplierecord</Supplier_Rec>

</Supplier_Category>

<Product_Category>

<Product_Category_Rec>productcategory</Product_Category_Rec>

</Product_Category>

<Product_Type>

<Product_Type_Rec>producttype category</Product_Type_Rec>

</Product_Type>

<Master_Brand>

<Master_Brand_Rec>masterbrand</Master_Brand_Rec>

</Master_Brand>

<Brand>

<Brand_Rec>brand</Brand_Rec>

</Brand>

<Sub_Brand>

<Sub_Brand_Rec>subbransd</Sub_Brand_Rec>

</Sub_Brand>

<Product>

<Product_Rec>werwtrtertrtrt</Product_Rec>

</Product>

</ns1:MT_Product_Master>

Regards,

Bhavesh

Former Member
0 Kudos

Bhavesh,

I copied the payload you gave me, No error but the records did not copied to target messages. What should I do now?

bhavesh_kantilal
Active Contributor
0 Kudos

Ram,

Its obvious, that your mapping has some error as the target was not created.

Check for the mapping from the source to target messages.

Drop me a mail with the screen shots if possible. You will find my mail id in my B card.

Regards,

Bhavesh

Answers (1)

Answers (1)

former_member206604
Active Contributor
0 Kudos

Hi,

In Message Mapping check if you have mapped your Message Type node.

Thanks,

Prakash