2025 Jan 12 9:28 AM - edited 2025 Jan 13 10:59 PM
Hi Experts,
I am facing strange error while calling SAP Build process automation from SAP Build apps using SAP Build apps published library API integration in which i have published my build process automation API trigger.
Performed all steps correctly in steps provided in "https://help.sap.com/docs/build-apps/service-guide/sap-build-process-automation?q=service+key".
When i debugged the issue i found the error as below
"{
"status": 401,
"statusText": "Unauthorized",
"headers": {
"cache-control": "no-cache, no-store, max-age=0, must-revalidate",
"expires": "0",
"pragma": "no-cache",
"referrer-policy": "no-referrer",
"www-authenticate": "Bearer error=\"invalid_token\", error_description=\"Jwt token with allowed audiences [destination-xsappname!b62, uaa, openid, xs_account, sb-clone850d95a770d2421f962aa985e61e9bda!b107153|destination-xsappname!b62] matches none of these: [xsuaa!b120249]\", error_uri=\"https://tools.ietf.org/html/rfc6750#section-3.1\"",
"x-content-type-options": "nosniff",
"x-frame-options": "DENY",
"x-vcap-request-id": "70a2438e-ac45-4a98-4696-cf9c0fa58649",
"x-xss-protection": "0",
"date": "Sun, 12 Jan 2025 09:18:37 GMT",
"strict-transport-security": "max-age=31536000; includeSubDomains; preload;",
"connection": "close"
},
"responseText": ""
}
Any help will be appreciated.
Request clarification before answering.
This is my destination ... notice the URL is only the base endpoint.
These 4 videos shows you the entire process of triggering process from SAP Build Apps, from beginning to end. But if you are failing from Postman, then it would seem something else is wrong, since he destination is not involved there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ClientCredentials will work, but the metadata showing who started the process will be the Build Process Automation service itself; with JWTBearToken or UserTokenExchange you then know who triggered he process.
I do not see anything about adding the destination to the Control Tower in that documentation topic. Where did you see it?
IMPORTANT: I think what confused me is that you were connecting to SPA the "old way" and the documentation you referenced, though still valid, is somewhat superseded by the "new" way: https://help.sap.com/docs/build-apps/service-guide/processes
There are new flow functions that make connecting much easier and less error prone.
User | Count |
---|---|
59 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.