SAP Knowledge Base Article - Public

3379810 - Error code when executing the SAC multi-actions via the public API (api/v1/multiActions)

Symptom

When you run the multi action via the endpoint /multiActions/<multiActionID>/executions, you get some errors.

  • 401 Unauthorized
    Unauthorized

  • 404 not found
    The resource does not exist or you do not have permission to read it.

Environment

  • SAP Analytics Cloud (Enterprise) 2023 and higher

Reproducing the Issue

  1. Run an SAC multi action via /multiActions/<multiActionID>/executions in Postman.

Cause

  • Cause for the 401 code:
    The request body is empty.

  • Cause for the 404 code:
    Grant Type is set to client_credential, which is not supported by the multi action API (api/v1/multiActions).
    The multi action API requires the credential of the business user (SAP user) instead of the technical user.

Resolution

As a quick win, no matter what errors are returned, please always make sure you follow the configuration steps in the following URLs:
- Introduction of SAC Multi-actions Public API
- SAP Analytics Cloud REST API

  • Resolution to the 401 code:
    Set the parameter in the request body. If this multi action does not have any parameter, please use the following content in the request body (raw + JSON).

    {

        "parameterValues": [

        ]

    }

  • Resolution to the 404 code:
    use the Grant Type = Authorization Code and enter the credential of an SAC user that can run this multi action from the story 

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Sac, Acquisition, Model, Connect, Story, Tenant, Import, Failed, Using, Working, SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, sap analyst cloud, connected, failure, stopped, sap analyst cloud, https://hcs.cloud.saphttps://hanacloudservices.cloud.saphttps://cloudanalytics.accounts.ondemand.comhttps://hanacloudservices-us.accounts.ondemand.comhttps://www.sap.comhttps://help.sap.com, predictive analytics (analysis), data analysis (analytics) tools, analytics tools, sap analytics cloud, data literacy, advanced analytics, data democratization, analytics software, real time analytics, self service analytics, advanced data analytics, analytics as a service, analytics cloud / cloud analytics, saas analytics, cloud bi, enterprise planning, cloud data analytics, cloud based analytics, analytics cloud platform, modern analytics, real time analysis, cloud analytics solution(s), what is sap analytics cloud, cloud analytics tools, analytics in the cloud, cloud analytics software, multiaction, multiactions , KBA , LOD-ANA-PL-MA , Multi Actions , Problem

Product

SAP Analytics Cloud all versions