cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug Integrationprocess

Former Member
0 Kudos

Hi @ll;

I try to realize a scenario using a integrationprocess.

In this process two mappings should be conducted.

A message mapping, that works fine and a java mapping, that raises a error.

Following error message is displayed

<Trace level="2" type="T">Java mapping com/sap/xi/tf/_configuredOrder_2_EHORDERS_ completed. (executeStep() of com.sap.xi.tf._configuredOrder_2_EHORDERS_ </Trace>
<Trace level="3" type="T">Mapping step 1 has been executed. </Trace>
<Trace level="3" type="T">Finished executing mapping sequence. </Trace>
<Trace level="1" type="T">Parsing error after multi mapping.Expected Message<i> instead of IDOC </Trace>

Obviously the output message of the java mapping doesn´t meet the requirements of the specified message interface.

But what`s wrong with it?

I tested the mapping in the Integration Builder (Design) and it works fine.

Is there a different structure at Runtime (compared to the structure shown on the test tab in the graphical mapping editor)?

Thanks in advance

Jochen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

what is your scenario?

if you are sending the Idoc then might be possible that some mendatory fileds are not present in the source message...

Are you posting Idoc??

Thanks

Farooq.

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Jochen,

the errors seems to be obvios: "Expected Message<i> instead of IDOC "

The multimapping output must have something like "Message1" on direct under root, but your mapping put there "IDOC"

Regards,

Udo

Former Member
0 Kudos

Hi @ll;

unfortunately this item is still open.

I changed my Java Mapping to produce the neccessary output structure.

It looks like this

<?xml version="1.0" encoding="UTF-8"?>
<Messages>
	<Message1>
		<ns0:configuredOrder xmlns:ns0="http://endress.com/xi/orderIntegration">
			<IDOC BEGIN="1">
				...
			</IDOC>
		</ns0:configuredOrder>
	</Message1>
</Messages>

I tested the mapping in the Interface Mapping test tab and it works fine.

At runtime it seems that the mapping is done well. The process view in the sxmb_moni shows following details for this step in the BP.

MESSAGES_IN => 2 Entries

MESSAGES_OUT => 1 Entry

I´m able to look at the 2 input messages, but when I try to open the result messages I get the following Error "No messages available for selection"

At the last step of my test I try to wirte out the result as a File, but this also fails.

The Container shows among ohter things following expression

MESSAGE_SENT

It seems to me that my mapping generates no output.

I hope anybody can help to solve this issue.

Thanks in advance

Jochen

Former Member
Former Member
0 Kudos

Hi Farooq;

thank you for your help.

Unfortunately I didn´t find helpfull suggestions in your document.

Perhaps anybody else has some helpfull suggestions.

I´m quite new with XI and have no more idea.

Thanks in advance

Jochen

Former Member
0 Kudos

Hi @ll;

thanks for all your suggestions and help.

my issue is solved.

I made 2 Interface Mappings, one for the Java Mapping and another for my Message Mapping. Further each step of the integration process starts in a separate transaction.

that helps.

Kind regards

Jochen

Former Member
0 Kudos

Hi

While Mapping map all the mandatory fields or else Disable the Mandatory fields

Yuga

Former Member
0 Kudos

Hi;

thanks for your advice.

I checked this but without success.

I changed the scenario.

I make a simple target structure like this

<testConfig>
      <abs></abs>
</testConfig>

without any mandatory field.

I changed my Java Mapping to deliver a suitable XML message

But all I get is the same error

<Trace level="2" type="T">Java mapping com/endress/infoserve/xi/mapping/MergeConfigStore_IdocOrder completed. (executeStep() of com.endress.infoserve.xi.mapping.MergeConfigStore_IdocOrder </Trace>
<Trace level="1" type="T">Parsing error after multi mapping.Expected Message<i> instead of i </Trace>

There is no Output Message created

Any ideas whats the failure?

Thanks

Jochen

Former Member
0 Kudos

Hi Experts;

i think the reason of the error is the wrong structure of the input message to my Java Mapping.

My idea was to handle a structure that follows the structure specified in test tab of the message mapping when i define a message mapping with 2 input messages.

this is my expectation

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

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

Seemingly at Runtime the Message structure is different.

Can anyone please telle me how the structure have to look like?

Thanks in advance

Kind regards

Jochen

stefan_grube
Active Contributor
0 Kudos

From your explanation and the error message I would guess that the output of your Java mapping is nor correct. It should have the same structure as you have described for the input message.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan;

thanks for your response.

I think you are wright.

I already change my Java Mapping.

The output follows following structure

	
<?xml version="1.0" encoding="UTF-8"?>
<Messages>
	<Message1>
		<ns0:configuredOrder xmlns:ns0="http://endress.com/xi/orderIntegration">
			<IDOC BEGIN="1">
				...
			</IDOC>
		</ns0:configuredOrder>
	</Message1>
</Messages>

I tried the Integrationprocess using thie Java Mapping but strange error arised anyway. But I don´t remember the error message.

Unfortunately the Apllication delivering the data as a WebService is currently not available.

I´ll try once more the Integrationprocess as soon as possible and will then I post the error message.

Once more thank you for your help

Kind regards

henrique_pinto
Active Contributor
0 Kudos

The error does not seem related to BPM.

Test your mapping in Interface Mapping test tab and check the target source, until you get it right.

Regards,

Henrique.