Symptom
You are executing a payload to create entries in the system via web service, however you receive the error 401.
Environment
SAP Business ByDesign.
Reproducing the Issue
- Go to the Application and User Management work center.
- Then go to the view of Communication Arrangements.
- Download the WSDL.
- Open the WSDL in the software to execute web services.
- Maintain the user credentials.
- Maintain the payload with the entries to be created.
- Execute.
- Error 401 appears.
Cause
The 401 means that the action got Unauthorized, so this status code indicates that the request has not been applied because it lacks valid authentication credentials. One possible cause might be related to a missing configuration from this Communication Arrangement, where let's say you are trying to create a Supplier Invoice via managersupplierinvoicein, however you did not maintain the managersupplierinvoicein in the Communication Arrangement.
Resolution
To solve this error you can either Edit or create a Communication Arrangement for the required service (e.g managersupplierinvoicein) by assigning required Technical User (Communication Arrangemente User).
See Also
Keywords
Error, 401, Unauthorized, web service, Application and User Management work center, Communication Arrangements. , KBA , SRD-CC-IAM , Identity & Access Management , AP-RC-CEC-B2B , ByD On-Demand Cloud-Process Integration B2B , How To