cancel
Showing results for 
Search instead for 
Did you mean: 

An internal server error occured: getDocument Failed --- The MPL ID for the failed IFlow call

kunju1991
Participant
0 Kudos

Hi Experts,

I have SAP BTP trial account, with CPI activated. In which i am trying to fetch data from ECC system using an iflow. Please find below the iflow, the same has been done following the links tutorial to an extent.

When i am trying to test the API i am getting the below error.

An internal server error occured: <?xml version="1.0" encoding="UTF-8" standalone="no"?><rfc:RFCExceptions xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Exceptions>
      <E1>getDocument Failed</E1>

   </Exceptions></rfc:RFCExceptions>.
The MPL ID for the failed message is : AGSxVkh8Nlce5Fph9EwgtPLtS27z

I had put a trace but could not understand the rootcause. Please find the log attached.messagelog.txt. Please suggest / help

Note: Cloud connector and destination are already in place and connection was successful.

Thanks,

Kunj Bihari Shukla

bhaskarsaishankar

View Entire Topic
LeiGuo
Newcomer
0 Kudos

This issue is because of invlid parameter when calling RFC.

In my case it is name space issue.

In my case it wss 'ns0' at beginning but changed to 'ns1' one day later and I don't know why.

If you found this kind of issue, you can always to below steps to find and solve the issue:

1.Download the WSDL of RFC(save as wsdl type, not xml type) via URL: <server address>:44300/sap/bc/soap/wsdl11?services=<RFC name>&sap-client=<client>

2. Create a mapping in front of request reply of RFC call and upload the wsdl as the target in the mapping and you will see the exact RFC parameter structure. If you input XML directly, you should enter correct data structure like below: In most syystems the name space is ns0 but in my case it is ns1.

<?xml version="1.0" encoding="UTF-8"?><ns1:ZFIFM045 xmlns:ns1="urn:sap-com:document:sap:rfc:functions"> <SYSID>FSP</SYSID></ns1:ZFIFM045>
Conclusion: Better to always use a mapping before the RFC call and upload the RFC definition(WSDL) to make sure all parameters are passing exactly matching the RFC parameters.