How To Fix CRM_MKT_EXTERNAL015 - Connection via RFC Gateway and COM server not closed


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CRM_MKT_EXTERNAL - CRM MKT: Messages for Interface to External Products

  • Message number: 015

  • Message text: Connection via RFC Gateway and COM server not closed

  • Show details Hide details
  • What causes this issue?

    This connection could not be closed. The preceding messages in the
    application log provide more detailed information about where the error
    occurred and what you can do to correct this error.
    This message does not necessarily indicate a serious error. If the
    connection between the COM server and the RFC Gateway cannot be
    disconnected by the application, the RFC Gateway closes the connection
    itself and releases the resources that were reserved, once the
    application is finished (end of the LUW (logical unit of work)).

    How to fix this error?

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CRM_MKT_EXTERNAL015 - Connection via RFC Gateway and COM server not closed ?

    The SAP error message CRM_MKT_EXTERNAL015 indicates that there is an issue with the connection via the RFC (Remote Function Call) Gateway and the COM (Component Object Model) server not being closed properly. This can lead to resource leaks and performance issues in the SAP system.

    Cause:

    1. Unclosed Connections: The error typically arises when a connection to the RFC Gateway or COM server is not properly closed after its use. This can happen due to:

      • Application logic errors where the connection is not explicitly closed.
      • Network issues that prevent the connection from being terminated correctly.
      • Timeouts or interruptions in the communication process.
    2. Configuration Issues: Incorrect configuration settings in the SAP system or the external system that is trying to connect can also lead to this error.

    3. Resource Limits: If the system has reached its limit for open connections, it may not be able to establish new connections, leading to this error.

    Solution:

    1. Check Application Logic: Review the code or logic that establishes the RFC connection. Ensure that all connections are properly closed after their use. This includes using appropriate error handling to close connections in case of exceptions.

    2. Monitor Connections: Use transaction codes like SM04 or SM50 to monitor active connections and identify any that are not being closed. This can help in diagnosing the issue.

    3. Adjust Configuration: Review the configuration settings for both the SAP system and the external system. Ensure that they are set up correctly for RFC communication.

    4. Increase Resource Limits: If the system is hitting connection limits, consider increasing the maximum number of allowed connections in the SAP system settings.

    5. Restart Services: If the issue persists, restarting the RFC Gateway or the COM server may help to clear any stuck connections.

    6. Check Logs: Review the system logs (using transaction SLG1) for any additional error messages or warnings that could provide more context about the issue.

    7. Consult Documentation: Refer to SAP Notes or documentation related to RFC and COM server configurations for any specific recommendations or patches that may address this issue.

    Related Information:

    • RFC Gateway: The RFC Gateway is a component that allows communication between SAP systems and external applications. Proper management of connections is crucial for system performance.
    • COM Server: The COM server is used for integrating SAP with other applications, particularly in Windows environments. Ensuring that COM objects are released properly is essential to avoid memory leaks.
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message. SAP frequently updates its knowledge base with solutions to common problems.

    If the problem persists after trying the above solutions, it may be beneficial to engage SAP support for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant