SAP Knowledge Base Article - Public

2850708 - Unable to connect to datasource. Check the connection details and user credentials, and then try again error when exporting data to SAP S/4HANA from SAP Analytics Cloud

Symptom

  • When exporting data to SAP S/4HANA in SAP Analytics Cloud (SAC), you cannot get past the credentials window.

Environment

  • SAP Analytics Cloud (Enterprise)

Reproducing the Issue

  1. Log into SAC and open the model.
  2. Select the Data Management tab > Export data > Export Data to SAP S/4HANA.
  3. Select the connection and provide a user ID and password credentials.
  4. The following errors appear in the network tab of the browser Developer Tools window:

    {"message":"Unable to connect to datasource. Check the connection details and user credentials, and then try again.","stack":"","errorDetails":[{"messageId":"AUTHENTICATION_ERROR","message":"Unable to connect to datasource. Check the connection details and user credentials, and then try again.","bUIMessage":false,"bWarning":false,"customData":"Error in validating connection definition and credentials on fields: [serviceRootURI](If this is using a shared connection without credentials, please enter the credentials by running a data import using such connection)", "status":401}], "status":500, "bUIMsg":false,"bWarning":false}

Cause

  • Incorrect / missing S/4HANA OData services configuration.

Resolution

Note 1: The export (writeback) function is not generic but includes validation specific for the respective target source tables.

See Also

Your feedback is important to help us improve our knowledge base.

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, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, data source, Exporting to S/4HANA not running, 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 epm, business intelligence, , KBA , exporting s/4hana sac , LOD-ANA-ML-DI , Data Integration, Data Export API, Data Import API , OPU-GW-COR , Framework , LOD-ANA-PL-PLI , Planning Integration (BPC import/export/writeback) , How To

Product

SAP Analytics Cloud 1.0