cancel
Showing results for 
Search instead for 
Did you mean: 

SFDC-PI-SAP

Former Member
0 Kudos

Dear Experts,

For Salesforce-SAP integration,we are done with creating a customer in SAP,this is achieved where Salesforce team consumes PI WSDL ,and they are able to send the record and successfully created in SAP.

For the response part(back to SFDC),the following error occurs in SAP PI.

SAP:Category>XIServer</SAP:Category>

<SAP:Code area="INTERNAL">UNAUTHORIZED</SAP:Code>

<SAP:P1>401</SAP:P1>

<SAP:P2>Unauthorized</SAP:P2>

<SAP:P3>(See attachment HTMLError for details)</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</SAP:Stack>

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

</SAP:Error>



Note:The channel  is SOAP receiver .



Please suggest.



Regards,

Kalpana

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello All,

This error occurs for all the scenarios.not only for salesforce integration.

If tested for file to file the below error occurs.

SAP:Stack>Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</SAP:Stack>..


Please suggest.




Regards,

Kalpana

bhavesh_kantilal
Active Contributor
0 Kudos
  • Exchange Profile would have the incorrect username password for PIAFUSER. Please check this.
  • Check SXI_CACHE --> Go to Adapter Engine and see the URL here. Is it a valid URL.
Muniyappan
Active Contributor
0 Kudos

i guess, you should have used user in the receiver channel which connects to SAP. check if that user has correct roles and make sure that password given is correct.

former_member186851
Active Contributor
0 Kudos

Hello Kalpana,

Did you import the Salesforce certificate in SAP PI?

Former Member
0 Kudos

Hi Raghu,

Exchange of certificate is required or  only if  the salesforce certificate installed on PI server is enough.

Regards,

Kalpana

former_member186851
Active Contributor
0 Kudos

Hello Kalpana,

Once Salesforfce should do.

Also check for any firewall or any proxy settings that needs to be enabled.

Former Member
0 Kudos

Hi Raghu,

The error

SAP:Stack>Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</SAP:Stack>


is happening for all the scenarios..it is not happening only for salesforce integration


For simple file to file .the error occurs in SXMB_MONI.Can you please suggest.





Regards,

Kalpana

former_member186851
Active Contributor
0 Kudos

Hello Kalpana,

Check the connectivity of PI from server level by using Telnet.

Former Member
0 Kudos

Hi Raghu,

Can you please suggest the steps for checking the connectivity for PI server using Telnet.

Regards,

Kalpana

former_member186851
Active Contributor
0 Kudos

Hello Kalpana,

Basis team will help you reg this.