Invalid SAP Connection error is issued in the following situation:
(<connection name>) must have at least one remote function
You created a SAP connection without importing any remote functions, or deleted all remote functions of an existing SAP connection.
To solve this error, import at least one remote function, or delete the connection.
Double-click on the error line to take you directly to the SAP Connection where the problem was detected.