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.
Configure the destination sap_process_automation_service_user_access as (exactly as) described in Configure SAP Build Process Automation Destinations | SAP Help Portal
Notes:
1. Authentication Type
Authentication: OAuth2JWTBearer
2. Don't add additional property
forwardAuthToken: true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm getting 401 unauthorized error while calling Build Workflow API trigger from my SAPUI5 application (both locally running or from Build workzone). The URL called is "https://spa-api-gateway-bpi-us-prod.cfapps.us10.hana.ondemand.com/workflow/rest/v1/workflow-instance..." to get X-CSRF token. My Workflow created as per tutorial https://developers.sap.com/tutorials/spa-academy-run-salesorderprocess.html#fb19e3da-bee0-4477-afc4-... Can you suggest what is the possible resolution for this issue.
What is the correct URL to trigger the BPA workflow API from the SAP UI5 app. And what is the correct method to call the API ?
1. Calling SBPA Workflow API to trigger process from SAPUI5 app
2. 401 unauthorized error -
3. CORS issue while testing UI5 app locally or from Build Workzone
User | Count |
---|---|
58 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
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.