cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle. 500 Internal Server Error.

Former Member
0 Kudos

Hi Dear Experts.

I have an scenario ECC-PI-(7.11)-- Web System (HTTP)   Syncronous.

When I made my tests I got an Issue. 500 Internal Server Error.  This error is due to an internal application logic error in the target system. I know

I checked my sxi_monitor. The error was in the adapter.  I know the issue is the input value is incorrect for Taget Aplication , according below image . I need to get this error response as payload to send the ECC in structure like as Fault .with the value of exception.  


Regards.

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Http adapter directly does not support this type of internal 500 errors.One possible approach is the target system (example java application) can process the target fields data and during processing values if they come across any type issues or number format issues or any errors then they have to collect the exception message traces and can throw the exception message as response message.  So talk to target system to send as response message during  processing the data. Sender system can also validate the values as per the requirement before it sends. This way we can avoid this type of errors.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi. Thanks for your inputs.

Baskar.. unfortunately at this moment is not posible to talk with target system, is an old java application. I know it would be better if they response with a error structure.

Iñaki : this is not webservice  ,is HTTP.. is a external java application ,I send information by URL..POST method.

Regards.

iaki_vila
Active Contributor
0 Kudos

Hi Luis,

As Baskar says there is not an elegant way to capture this exception. In my opinion, the better way is to introduce XML validation in the adapter engine http://scn.sap.com/docs/DOC-17696 , it's totally necessary that your webservice provider gives you a complete schema for this. You could improve the scenario doing an alert that send you an email when it fails and in this way you introduce more validations in your schema if any restriction is forgotten.

Regards.