Skip to end of metadata
Go to start of metadata


The purpose of this wiki is to provide details on how to troubleshoot the "Invalid Length. Check parameter" error in tranaction SM59. 


This error can be reported if there is a Network related issue, for example, problems resoving a service or connecting via a firewall.

Identifying the issue


The following error will be reported:

The dev_rfc trace will report something like the following:

Possible Causes

The error will occur if there is a problem resolving the sapgwXX port.

  • Check the etc/services file for incorrect port configuration
  • Check for duplicate entries in etc/services file
  • Check if a firewall between client and server is causing the issue

Related Content

Related Documents

Related SAP Notes/KBAs

1615847       SM59 connection test fails
52959          sapms..., sapdp.., sapgw.. unknown (or not found)