Symptom
- Connection validation to an on‑premise S/4HANA system using load balancing with message server fails if the virtual host is different from the internal hostname; it works when both are identical.
- Error: Remote Tables: Unable to connect remote source: DPAdapterAccess::Connect: Initialization of destination … failed: Connect to message server on host [message server host] failed.
LOCATION CPIC (TCP/IP) on local host with Unicode; ERROR hostname '[message server host]' unknown; Code: 5921; SQL State: HY000.
Environment
- Product: SAP Datasphere
- Connections
- S/4HANA on‑premise connection (Message Server)
- SAP Cloud Connector (RFC)
- Data Provisioning Agent for Remote Tables
Reproducing the Issue
- Create an S/4HANA on‑premise connection in Datasphere using Message Server (load balancing).
- Enable Cloud Connector usage for the connection.
- Maintain the Virtual host different from the internal backend hostname, and set Virtual Destination to derive the virtual host and port from the connection details.
- Validate the connection and observe the errors for Remote Tables.
Cause
The Cloud Connector virtual host was maintained in the Message Server “Connection Details” (or “derive virtual host and port from connection details” was selected), causing the runtime to attempt to resolve the virtual hostname at network level. This leads to “hostname unknown” and message server connect failures. For Cloud Connector scenarios, the virtual host and port must be configured only in the Cloud Connector section, while the Message Server field must contain the actual backend message server host.
Resolution
- Edit the Datasphere connection and in the Connection Details section, enter the actual backend Message Server host and the correct port and group.
- In the Cloud Connector section, set Virtual Destination to “Enter Virtual Host and Port in Separate Fields”.
- In the Cloud Connector section, enter the Cloud Connector virtual host and virtual port.
- Save the connection and validate again.
- If issues persist, verify the Cloud Connector system mapping and access control for RFC as per SAP Help Portal, then revalidate.
- For structured checks of Cloud Connector scenarios, refer to the pre‑analysis KBA 3456850 and adjust configuration as needed.
See Also
- KBA 3456850 - Pre-analysis Cloud Connector related issues when creating a connection in Datasphere
- KBA 3440815 - RFC_COMMUNICATION_FAILURE in S/4HANA On‑Premise Connection - Datasphere
- SAP S/4HANA On-Premise Connections | SAP Help Portal
- Configure Cloud Connector
- Configure Access Control (RFC)
- Datasphere ABAP-based On-Premise System Connection Troubleshooting KBAs | SAP Help Portal
Keywords
datasphere, s/4hana on‑premise, message server, cloud connector, virtual host, internal host, rfc, remote tables, dp agent, abap adapter, hostname unknown, connect to message server failed, connection validation, virtual destination, load balancing, system mapping , KBA , DS-DI-CON , Connections , Problem
SAP Knowledge Base Article - Public