cancel
Showing results for 
Search instead for 
Did you mean: 

File to Multiple Idocs, Error: Tag MESSAGE1 found instead of tag IDOC BEGIN

SudheerJ
Participant
0 Kudos

Hi,

I have configured my file to multiple idocs scenario using the following blog -

/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool

Now when i try to execute this scenario it is scenario it is giving me the following error at "Call Adapter" Stage in runtime-

"Tag MESSAGE1 found instead of tag IDOC BEGIN="

My message looks like this at "Request Message Mapping" Stage in runtime -

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

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

- <ns0:Message1>

- <ZDR009>

- <IDOC BEGIN="1">

- <Z100901 SEGMENT="1">

<RUNDATE>20080220</RUNDATE>

<RUNTIME>0037</RUNTIME>

<CONSTANT1>PYRLINCST</CONSTANT1>

<CONSTANT2>CSC</CONSTANT2>

- <Z100902 SEGMENT="1">

<RECTYP>2</RECTYP>

<SSN>641381239</SSN>

---

---

---

Kindly assist me in solving this error, Thanks in Advance!!

Regards.

Sudheer

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

copy paste same data from ur test tag to notepad but

Just remove

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

- <ns0:Message1>

these tags and save file as *.xml.

I guess it will work fine.

Regards,

Manisha

prasannakrishna_mynam
Contributor
0 Kudos

Hi Sudheer,

Your target message type has occurences 'unbound', that is why it is creating multiple messages types and your Mapping works fine, but at Integration Engine, when Message spit occurse its giving the error there, so it must be at Interface determination level you need to set as below.

->Select Enhanced Type in Interface determination

->Provide Interface Mapping

->In Inbound Inteface Select Occurences to unbound when you given the interface name.

This will resolve your issue,

Regards,

Prasanna

Naama
Participant
0 Kudos

Hi Sudheer,

I am facing the same problem,

did you manage to solve your problem?

Thanks,

Naama

Former Member
0 Kudos

Hello, I am having the same issue. Any success on this one?

Former Member
0 Kudos

Hi Sudheer,

Just the check the message mapping. Check the parant node mappings to create two different messages.

It seems that the mapping done on IDOC Node to create the IDOCs is getting failed.

Copy the content from inbound payload and test it in message mapping.

Remember, when you load the test data into your test tab you will get the error of structure mismatch coz in your mapping you have additional message.

Do the change with original data as shown below befor testing.

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

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

<ns0:Message1>

Original message will be here.

</ns0:Message1>

</ns0:Messages>

Regards,

Sarvesh

SudheerJ
Participant
0 Kudos

Hi,

Thanks for your response.

I have tested my message mapping it is working fine with the test data. But still i am getting that error at runtime, what i need to do. Do i have to change some parameters in ID when using one message to multiple messages scenarios.

Regards,

Sudheer

Former Member
0 Kudos

Ok, Next you can check the IDOC meta data in XI by using the tcode IDX2.

In my opinion reload it and try again.

Former Member
0 Kudos

Hi Sudheer

Have you in your mapping made your target message occurence as 0 to unbounded. This is why you are getting this error.

this is 1:N mapping and you have to perform the same.

there is one blog on 1:N mapping.Please go through the same.

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Thanks

Abhishek

*Reward points if helpful*