Sequence contains no matching element when starting SAP session

When your bot tries to start SAP GUI, it returns the following error message: "Sequence contains no matching element", even though you properly configured the Start SAP Session (startSapSession) command.

Important:This troubleshooting is only valid for versions prior to 21.0.7, since this version fixes this scenario.

Symptoms

Your bot can't start an SAP session, returning the error message: "Sequence contains no matching element."

Resolving the problem

Clean the %temp% folder on your computer. If you configured a different temp folder than the default set by your operating system, clean it.