Skip to Content
0
Nov 08, 2016 at 05:43 AM

Null object error while sending file from SFTP to ECC in 1:n mapping

416 Views

Hi,

We are on PI 7.4 single stack. My scenario is file to ECC where I am using 1:n mapping.

Source side I am using external definition and receiver side there are two idocs which I have to map. I have changed the occurences in the target side to 0 to unbounded both in MM and OM. I have disabled the EDI_DC40 segment for both the idocs in the receiver side and in ICO, I have given the PI logical system name in sender communication component in Oubound processing tab . I have also selected control record in IDOC XML not mandatory. Now when I test this interface I am getting the below error for both the Idocs

using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error during transform: java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable chars" style="WHITE-SPACE: normal" ti="0" lsdata="{0:'Transmitting the message to endpoint using connection SFTP_http://sap.com/xi/XI/SFTP failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error during transform: java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable chars',9:true}" ct="TV" bResetTabIndex="true"Transmitting the message to endpoint using connection SFTP_http:// sap.com/xi/XI/SFTP failed, due to: com.sap.aii.af.idoc.exception.IDOCAdapterException: Error during transform: java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable chars

I went through SDN and found that Interface name should be of

<MESTYP>.<IDOCTYP>.<CIMTYP>.

So, do I have to change the name of the External definition to above pattern? But then in my external definition MESTYP and IDCTYP are coming but not CIMTYP. How to go forward with this error.

Thanks,

Richa.