on 2023 Apr 27 12:28 AM
Hi everyone,
I'm having some problems with adding attachments to a service call in FSM (which then goes to S/4). The iFlow gets the following error:
org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking http://NNN:44300/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/AttachmentContentSet?sap-client=NNN with statusCode: 403
(I've substituted NNN for privacy reasons)
Is this an authorization issue or ?
Appreciate any tips to resolve this.
Request clarification before answering.
The solution is the S4HANA Host in the Receiver has to have a dot for it to be recognized as a hostname when the adapter type is HTTP. A hostname without a dot may work for HCIOData adapter for other iflows, but it's a misleading comparison.
1. Go to the iFlow "Replicate Attachments from SAP Field Service Management to SAP S4HANA"
2. Click Configure. Then Click on Receiver Tab
3. Check your S4HANA Host. Originally I had "http://es4:44300"
4. I fixed it to "http://es4.xyz.com:44300" and it worked. (xyz.com is just an example - changed for privacy reasons of this post)
Special note - this means u will have to update / add to your cloud connector in BTP so this new string "es4.xyz.com" is mapped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tim,
Generally 403 is authorization issue. The user that you are trying to use to access attachment API may not have appropriate roles.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.