SAP Knowledge Base Article - Preview

3404282 - Connection test in SM59 fails with 'Error when opening an RFC connection (LB: service '***' unknown at SAP-Serv)'

Symptom

Connection test in SM59 fails with the following:

Connection Test <Destination Name>      
Connection Type SAP Connection  

Connection Error
Error when opening an RFC connection (LB: service '<app server>' unknown at SAP-Serv
ERROR: service '<app server>' unknown
LOCATION: XXX on host XXX (wp ww)
DETAIL: NiPGetServByName: '<app server>' not found
CALL: getaddrinfo
COMPONENT: NI (network interface)
COUNTER: XXX
MODULE: XXX
LINE: XXX
RETURN CODE: -3

The following traces will appear in the correspondent trace files: 

Dev_rfc*:
 
Error RFCIO_ERROR_SYSERROR in <path> : 
LB: service '<app server>' unknown at SAP-Server <server> on host <hostname>
 
Dev_W*: 
 
 
M *** ERROR => LgIGroupX: NiServToNo(<app server>) failed, (rc=NIESERV_UNKNOWN) [lgxx.c 6031]
M {root-id=0050568CD8771EDE99E9DAC1CC307C18}_{conn-id=00000000000000000000000000000000}_0
 
 


Read more...

Environment

  • Operating System independent
  • Database independent
  • SAP NetWeaver
  • SAP Web Application Server for SAP S/4HANA
  • ABAP Platform

Keywords

Error when opening an RFC connection, LB: Hostname or service of the message server unknown, service '?' unknown, Service sapms<sid> unknown, SM59, /etc/services, %windir%\System32\drivers\etc\services, dev_rfc, /usr/sap/<SYS>/<instance name>/work, Connection Test, SAPOSS, SAP-OSS , KBA , BC-MID-RFC , RFC , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.