cancel
Showing results for 
Search instead for 
Did you mean: 

Error while using receiver file adpater "401 UNAUTHORIZED"

Former Member
0 Kudos

Hi ALL,

I'm doing a Idoc to File scanerio. However, I could see the xml file generated in sxmb_moni in the payload sections. I have used the file adapter for the receiving side, but i am getting the following error under the Soap Header.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <!--  Call Adapter 
  --> 
- <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <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 /> 
  <SAP:Retry>M</SAP:Retry> 
  </SAP:Error>

Please help to resolve this issue.

Thanks,

Lalitkumar.

Accepted Solutions (0)

Answers (11)

Answers (11)

Former Member
0 Kudos

Issue resolved.

Basis guys reset the password of PIISUSER in the all the places wherever it has to be done.. thanks all of you for your inputs .

Thanks,

Lalitkumar.

Former Member
0 Kudos

Issue resolved.

Basis guys reset the password of PIISUSER in the all the places wherever it has to be done.. thanks all of you for your inputs .

Thanks,

Lalitkumar.

Former Member
0 Kudos

Issue resolved.

Basis guys reset the password of PIISUSER in the all the places wherever it has to be done.. thanks all of you for your inputs .

Thanks,

Lalitkumar.

Former Member
0 Kudos

Hi Nagarjuna,

The steps mentioned by you have been done for couple of times, still the issue exists.

Please Help

Thanks,

Lalitkumar.

Former Member
0 Kudos

Hi,

There is a latest SAP note addressing similar problems.

1515239 - PI Service user is locked after changing passwords.

Hoping it might help you.

Former Member
0 Kudos

Hi Fatih,

I checked the communication channels in RWB its green.

but still facing the same problem.

Thanks,

Lalitkumar.

Former Member
0 Kudos

Open this URL on webbrowser and try to login with PIISUSER

https://server:J2EE-port/MessagingSystem/receive/AFW/XI

(You can obtain this through - SXI_CACHE->Go To->Adapter Engine Cache ->Adapter Engine URL)

This is the resolution provided in the PI 7.1 Trouble shooting guide-

Note: 1060264

Error - HTTP 401

o User XIAFUSER/PIAFUSER has used the wrong password.

o Check the exchange profile and transaction SU01; try to

reset the password.

o Restart the Java Engine to activate changes in the exchange

profile.

Former Member
0 Kudos

Hi Rahul,

This error is not only for file adapter, but facing the problem with any adapter.

All the PIAFUSER , PIISUSER , PIRWBUSER, PIDIRUSER, PIAPPLUSER are working fine.

any idea why is it so...?

Thanks,

Lalitkumar.

Former Member
0 Kudos

Hi Lalitkumar,

check the File Receiver Communication Channel in Runtime Workbench.

Kind Regards,

Fatih

RKothari
Contributor
0 Kudos

Hi,

Can you check if any user is mentioned in the trace.

Also check the user roles to access the SOAP adapter servlet.The user must be assigned one of the following roles SAP_XI_IS_SERV_USER, SAP_XI_APPL_SERV_USER, SAP_XI_DEVELOPER_J2EE, SAP_XI_ADMINISTRATOR_J2EE .

-Rahul

Former Member
0 Kudos

Hi Raja and Rahul,

Before Posting i tried to search in SDN but didn't get any relevant thread or blogs to any issue.

if you have any links please send it across.

thanks,

Lalit.

RKothari
Contributor
0 Kudos

Hello,

I don't have any link for this.

But " Unauthorized : 401 " error occurs only when the users are locked or roles are incorrect.

I have faced this kind of error .

Can you please try below suggestions:

1. Check in Trace, is there any specific service user mentioned (Check for PIAFUSER).

2. If you cannot find any specific user in Trace than please check all the service users maintained in SU01 T-code in the system.

Probabely you can narrow your search by finding users with name as PI*.

The service users should not be locked.

-Rahul

Former Member
0 Kudos

Hi,

If you are getting this error in SXMB_MONI, then that means the any of the service user IDs might be lockedand hence, integration engine is not able to send the dat to adapter engine.

Ask the basis person to unlock it and try again.

-Supriya.

RKothari
Contributor
0 Kudos

Hello,

Please check any Standard user having ID roles like PIDIRUSER might be locked.

Also, check if any specific user is mentioned in the attachment (provided in Payload).

.

Could be the password is incorrect for the standard user, which is calling the adapter.

-Rahul

Former Member
0 Kudos

Hi Vishal,

I am the configured the following in file adapter:

Transport Protocol : File system (NFS)

Message Protocol : File

Adapter Engine: central Adapter Engine

Let me know any changes to be done.

Thanks,

Lalitkumar.

rajasekhar_reddy14
Active Contributor
0 Kudos

this error comes why you dont have authorization to perform operation, like sending data.

serach in sdn... many posts answered.... on the same topic

Former Member
0 Kudos

Hi,

Could you brief where are you trying to send the file is it FTP or NFS..?

Regards,

Vishal