cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

500 Failed to find credentials for service com.sap.spa.processautomation for request

ashutoshrambhal
Discoverer
2,925

Hi Team,

We have developed SAPUI5 application with MTA with managed approuter , where we are trying to start workflow instance from app. For that we are first fetching the xsrf token.

After deploying to CF, we are getting below error

bpmworkflowruntime/v1/xsrf-token completed with status 500 Failed to find credentials for service com.sap.spa.processautomation for request

Below is xsapp.json

Kindly help!

Accepted Solutions (1)

Accepted Solutions (1)

tobias_breyer
Product and Topic Expert
Product and Topic Expert

Hi,

I cannot say, the most interesting things are anyway not visible in this editor view.

Are you following a document or tutorial? I think these are questions that should be clarified in these documents.

On a generic level, I think you want to integrate a business service into a Managed Approuter. I think that is the appropriate documentation:

https://help.sap.com/docs/Launchpad_Service/8c8e1958338140699bd4811b37b82ece/1b80373be4fc4cbb8a75294...

Regards,

Tobias

ashutoshrambhal
Discoverer
0 Likes

Hi Tobias,

Thanks for reply.

I followed the link, and it worked.

The issue was bpmworkflowruntime destination was not linked with destination service for the application. Which I have maintained using mta file (as per the information shared in the link) and it worked.

Thanks.

Answers (2)

Answers (2)

ArvinWu
Product and Topic Expert
Product and Topic Expert

Hi You guys,

I'm stuck on get xsrf token for days. Ashutosh is right, the destination 'bpmworkflowruntime' must link to destination service which binded with your business application. Long story short, the destination 'bpmworkflowruntime' in subaccount cockpit/Connectivity/Destinations created manually not work, you will read 500 if getting xsrf-token. You must navigate to destination service(click the destination link to access the destination instance view), create the destination 'bpmworkflowruntime'. And then you will see the magic.

a0000123
Explorer
0 Likes
HI ! Is it possible to add more details ? I have de the problem. I cant get a token, the error is the same...
tobias_breyer
Product and Topic Expert
Product and Topic Expert

Hi Ashutosh,

I think the app/approuter has no reference to the processautomation service so that it cannot look up necessary credentials. Perhaps you have not bound that service or you haven't specified in respective description files (mta.yaml).

Regards,

Tobias

ashutoshrambhal
Discoverer

Hi Tobias,

Thanks for quick response. I have added processautomation in mat file. Kindly check below screenshot. Is there anything else I need to do.
Also, I have used managed approuter.

Thanks,

Ashutosh

pradeep_mah
Explorer
0 Likes

Hi @ashutoshrambhal,
I am facing a similar situation, could you please elaborate more on your answer?