Configuring, Securing, and Troubleshooting SAC Connections in Production Landscapes (Part 2)
Lessons are open to try during our launch period. Some advanced content may move to Pro later. AI practice limits apply separately.
Covers the practical steps of setting up SAC connections, authentication and security models, the runtime data flow, and a structured troubleshooting approach for connection failures.
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
A consulting team supporting a manufacturing client's SAC planning application received recurring reports of 'connection lost' errors during month-end, right when many planners were active simultaneously. Initial suspicion fell on SAC itself, but layered troubleshooting revealed the on-premise Cloud Connector instance was undersized for the concurrent session count, causing tunnel timeouts under load. The fix involved scaling the Cloud Connector deployment and reviewing the technical user's session limits on the backend, not changing anything inside SAC.
Explanation
Once a consultant understands why a given connection type is chosen (live vs. import, cloud vs. on-premise), the next skill is configuring it correctly and keeping it healthy in production. Configuration starts in the SAC Connections area of the administration console, where a new connection is created by selecting a connection type (for example, SAP Datasphere, SAP BW/4HANA via live connection, SAP HANA, OData services, or a generic database connection) and supplying the required endpoint and authentication details.
For cloud-to-cloud scenarios like connecting to SAP Datasphere, SAC typically relies on OAuth2 trust configured between the two BTP subaccounts, which requires coordinated setup on both sides: a communication arrangement or equivalent trust configuration in the source, and a matching OAuth client registration referenced in the SAC connection.
For on-premise systems, live-connection options depend on the source system and the supported integration pattern. SAP HANA and SAP BW/4HANA offer direct live-connection options as well as tunnel connections. Direct options commonly require browser connectivity and configured CORS, while tunnel connections can use SAP Cloud Connector for secure outbound access. Certain advanced SAC live-connection features also require Cloud Connector, but it is not mandatory for every live connection.
For tunnel-based scenarios, authentication to the backend can be handled via a technical/service user (simpler to set up, but all SAC users appear as one identity to the source system, complicating source-side authorization) or via Principal Propagation, where the SAC user's identity is passed through to the backend so that source-system authorizations are respected per user.
Principal Propagation is more secure and audit-friendly but requires additional trust configuration (such as certificate-based trust between the identity provider, cloud connector, and backend) and is more complex to diagnose when it fails.
Import connections follow a different runtime pattern: instead of query-time round trips, a data import job (manual or scheduled) pulls data from the source into SAC's model at a defined interval. This job has its own execution log, and monitoring it is a distinct administrative responsibility—typical checks include job success/failure status, row counts imported versus expected, and duration trends that might signal a growing data volume problem before it becomes a timeout.
Troubleshooting connection issues benefits from separating the problem into layers. First, verify the connection test in the SAC administration UI succeeds; a failure here usually points to network/tunnel issues (Cloud Connector down, wrong virtual host mapping) or authentication issues (expired certificate, wrong OAuth client).
Second, if the connection test passes but a specific model or story fails, check whether the issue is authorization-related (the propagated user lacks rights to the specific source object) versus modeling-related (a query or view referenced no longer exists or was changed incompatibly in the source).
Third, for import connections, check whether the failure is at the source query level or at the SAC-side data volume/memory limit level, since large models can hit import size constraints that live connections would not encounter in the same way.
Security governance for connections is often underestimated: because a live connection with a technical user can expose broad backend access if not scoped carefully, many organizations require that any new connection go through a review confirming the technical user's authorization is limited to only the data objects needed, and that Principal Propagation is used wherever per-user auditability is a compliance requirement.
Performance-wise, live connections should be periodically reviewed for query patterns that generate excessive round trips (e.g., stories with many small live queries per filter change), since this is a frequent root cause of 'SAC is slow' tickets that actually originate in the source system or network path rather than in SAC itself.
How the SAP process fits together
SAP PROCESS EXPLORER · Datasphere and SAC: data to decision
ERPClimb.comSAC Connections — process breakdown
Topic-specific conceptual flow: how key objects and decisions fit together. SAP configurations and exceptional cases can follow different paths.
Selected process stage
Choose
Determine live versus imported connection mode
Representative SAP learning flow, not a guarantee of system runtime sequence in every scenario.
Code example
# Example: verifying a Cloud Connector mapped virtual destination is reachable# (run from a system with network access to validate the on-premise endpoint# the Cloud Connector is proxying, before blaming SAC itself) curl -v https://<virtual-host>:<virtual-port>/sap/opu/odata/sap/<SERVICE_NAME>/\$metadata \ -H "Accept: application/xml" # Expected: HTTP 200 with OData metadata XML if the backend service and# network path are healthy. A connection timeout here indicates a# Cloud Connector or firewall issue rather than an SAC configuration issue.# An HTTP 401/403 indicates an authentication/authorization issue on the# backend side (technical user or propagated principal lacks rights).Watch out
Common mistakes
- Assuming a connection failure is always an SAC-side misconfiguration without checking Cloud Connector and network layers first.
- Using a single broad technical user for live connections instead of scoping authorizations, creating audit and security exposure.
- Setting up Principal Propagation without properly testing certificate trust chains end-to-end before go-live.
- Not monitoring scheduled import jobs, so a silently failing nightly refresh goes unnoticed until users complain about stale data.
- Overlooking that large import volumes can hit data size limitations, discovered only during a production-scale load rather than in a small dev test.
Do this
Best practices
- Scope technical users used in connections to the minimum data access required, and review this scope periodically.
- Prefer Principal Propagation when per-user auditability or source-system authorization enforcement is a compliance requirement.
- Size and monitor the Cloud Connector for expected concurrent load, especially around peak periods like month-end.
- Build monitoring/alerting around scheduled import jobs so failures are caught before users notice stale data.
- When troubleshooting, test the connection at the network layer first, then authentication, then authorization, then modeling, to isolate the true root cause efficiently.
In the interview
Interview angle
Interview questions in this area often probe whether a candidate can distinguish network/connectivity issues from authorization issues from modeling issues when a connection fails, and whether they understand the practical difference between a technical user and Principal Propagation for security and auditability. Being able to describe a structured, layered troubleshooting approach signals real production support experience rather than only classroom exposure.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
A review of Configuring, Securing, and Troubleshooting SAC Connections in Production Landscapes finds this risky pattern: "Assuming a connection failure is always an SAC-side misconfiguration without checking Cloud Connector and network layers first.". Which corrective action is strongest?
Question 2 of 3
Scenario — A consulting team supporting a manufacturing client's SAC planning application received recurring reports of 'connection lost' errors during month-end, right when many planners were active simultaneously. Which response best addresses the design or operating risk in Configuring, Securing, and Troubleshooting SAC Connections in Production Landscapes?
Question 3 of 3
Interview questions in this area often probe whether a candidate can distinguish network/connectivity issues from authorization issues from modeling issues when a connection fails, and whether they understand the practical difference betwee. In the SAC Connections context, which answer shows the strongest practical judgment?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1A project encounters this situation while working on Configuring, Securing, and Troubleshooting SAC Connections in Production Landscapes: A consulting team supporting a manufacturing client's SAC planning application received recurring reports of 'connection lost' errors during month-end, right when many planners were active simultaneously. Walk through how you would analyze the requirement or issue, what you would validate, and how you would test the solution before release.
2A project encounters this situation while working on Securing and Troubleshooting SAC Connections: Authentication, SSO, and Network Reachability: A production SAC dashboard built on a live connection to an on-premise BW system started failing intermittently every few weeks with generic 'data could not be retrieved' errors. Walk through how you would analyze the requirement or issue, what you would validate, and how you would test the solution before release.
Frequently asked questions
Is SAP Cloud Connector mandatory for every live SAP Analytics Cloud connection?
No. The supported connection options depend on the source and deployment. For example, SAP documents direct, tunnel, and SAP BTP connection types for SAP HANA live connections. Cloud Connector is used for particular tunnel scenarios and advanced capabilities. Confirm the connection-specific requirements in the current SAP documentation instead of assuming one network architecture fits every live connection.
What is the difference between live and import connections in SAP Analytics Cloud?
A live connection queries the source when a user interacts with a report, subject to the supported connectivity and authorization setup. An import connection copies data into an SAC model, so its freshness depends on manual or scheduled imports. Diagnose query-time issues separately from failed or stale import jobs.
Why can an SAC connection test succeed while a model or story still fails?
A successful connection test does not prove that the user has access to every source object. Check source-system authorizations, user identity or principal propagation where applicable, changes to queries or views, and the specific report's filters or model dependencies. Reproduce with the affected user's permissions rather than only an administrator account.
What should an administrator check if a scheduled SAC data import stops refreshing?
Review the import-job execution log and its most recent successful run, then investigate source availability, expired credentials, missing query permissions, changed source schemas, and data volume limits. Compare the expected and actual imported row counts so a completed job is not mistaken for a fully refreshed dataset.
Was this lesson helpful?
Keep exploring
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.