Hello experts,
Hope you are doing good!!!
We have a file to REST scenario from ERP to MS Azure via SAP PO where we are picking up a file from SAP folder and passing it to Azure using REST adapter.
On the receiver end, the authentication is Oauth2.0 client credential flow. While testing REST adapter ( Receiver ) in SAP PO 7.5 SP23 we are getting below error "HTTP Communication error : Couldn't retrieve oAuth Token" .
We have tested the API using Postman successfully.
Kindly advice if you have worked on similar configuration.
Below are the configuration and error screenshots for your reference:







Looking forward for your support and suggestions.
Thanks in advance!
Prabhu S
Request clarification before answering.
Hello everyone,
We finally found the fix.
There was no secure connection from PI system to Azure AD server. We had to use a Zscaler proxy server in between to fetch the token.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Prabhu,
Is this issue resolved?
We are facing same issue now.
Could you please let me know how you have resolved the issue?
Regards,
Sowmya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhu,
Were you able to resolve the issue? If yes how?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhu,
Please share the patch version of SAP_XIAF and SAP_XIAFCON. Thanks,
Regards,
Ramnath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhu,
FYI, SP24 is already released in June. So SP23 is not the latest one anymore. But my ask is not to update Service Pack, I am referring to the patch level of the component.

Currently, yours is on Patch 0 which is the initial version.
Note: SAP_XIAF has dependencies, so basis have to update all those dependencies to the latest patch as well.
Reference: https://launchpad.support.sap.com/#/softwarecenter/object/0020000000708182022
Regards,
Ramnath
Hi Prabhu,
Looking at all screenshots from your topic, Can you do the following and check,
1. Remove the client certificate authentication. You are using Oauth to authenticate.
2. Remove Authorization Header from HTTP headers
3. In Module Bean, remove parameter sap lib, let it use the default one.
4. Add "Oauth20AutorizationServerRequestType" value "query" in parameter section of module bean. (Try with and without this parameter)
If you still have the same issue, do you have XPI inspector installed? If yes, use channel and select your receiver rest channel and gather the logs and attach it here?
Regards,
Ramnath
Hi Prabhu,
Try
parameter: Oauth20AutorizationServerRequestType
value: query
In module configuration.
Regards,
Ramnath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhu,
Few things i noticed,
1. In your OAuth you already have an option: "Use Credentials and Oauth access token as"; This will take care of using the accessed token value as Header to the final URL. So you dont need "Authorization" header. Try removing it and check.
2. Hope you are using the token URL in Oauth section.
Regards,
Ramnath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.