cancel
Showing results for 
Search instead for 
Did you mean: 

How can SAP XI handle a HTTP Server Code 404 Exception?

0 Kudos

Hello experts,

we have following scenario: System A --> (HTTP ADAPTER) --> Intergration process 1 --> System B (SOAP Adapter), synchr. Interface > <back to Integration process 1 ---> System C (HTTP Adapter).

At the end when the integration process 1 sends the data to System C we have following SAP Error when the application is not started on the application server on System C.

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

- <!-- Aufruf eines Adapters

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>

<SAP:P1>404</SAP:P1>

<SAP:P2>Not Found</SAP:P2>

<SAP:P3>Not Found</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>HTTP-Server Code 404 Reason Not Found Explanation Not Found</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

The HTTP 404 Error is right. But how can I handle this error in an integration process. I thought I can handle this with an ApplicationFaultExeption within the IP but I doesn't work. The requirement is that this error should be handled automatically and not manuell with a Restart.

Thanks very much!

Jürgen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

please check the below Link

regards,

navneet

0 Kudos

Hello Navneet,

thanks for your help. I read this blog before I wrote the message.

I can not find any information, if SAP XI can handle the 404 Error to an external system within an integration process. (e.g. Send Step, ApplicationFaultExeption, loop, time 10 Minutes to try again)

Any idea?

Best regards,

Jürgen

sunil_singh13
Active Contributor
0 Kudos

Hi Jurgen,

Have you used Exception Branch to cach this kind of error?

Thanks

Sunil Singh

0 Kudos

Hello Sunil,

yes I use Exception Branch.

One Exeption Handler : SystemFaultExeption and the other ApplicationFaultException.

But the "Send" step was ended successfully. No exception was thrown.

Thanks for your help. Another idea?

Jürgen

sunil_singh13
Active Contributor
0 Kudos

Hi Jurgen,

If you have System and Application exception branch to catch corresponding exceptions then exception must get caught if it is not then it is issue from SAP side and there will be some patches available for this.

We hade same kind of problem but with RFC. We had raised it as OSS and SAP had given us patch for that.

Thanks

Sunil Singh

0 Kudos

Hi Sunil,

your answer was very helpful. So I will open an issue by SAP.

Thanks.

Best regards

Jürgen

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

i think your requirment is like that , if PI server not able to recognize system c (in case of application server not started at system C) you want to resend the data again.

for this you can use BPM .

or you can reschedule the adapter again.

or you can trigger the alert saying server not found.

but no idea about how to handle error automatically .

regards,

navneet

0 Kudos

Hello Navneet,

yes this is my requirement.

What do you mean with

"for this you can use BPM .

or you can reschedule the adapter again." exactly?

Thanks

Jürgen

former_member192295
Active Contributor
0 Kudos

Hi,

These problem is due to communication level, i think check with HTTP server whether have activated successfully or not meanwhile check all HTTP setting. It will sort out easily