RPA unattended robot fails to connect with Unable to open a connection Error. Issue : When you configure an RPA unattended robot to connect to a ServiceNow instance using Basic Authentication, the connection may fail with the following error: Unable to open a connection to the ServiceNow instance. Symptoms : The RPA logs may also show AMB/WebSocket connection errors such as: Unable to connect to the remote server.The remote server returned an error: (400) Bad Request.RobotHeartbeat: Transport is not alive. You may encounter this issue when the instance does not enable the WebSocket communication that the unattended robot requires. The unattended robot uses AMB communication to receive commands and send status updates. Resolution : 1. Navigate to All > System Properties > All Properties. You can also enter sys_properties.list in the navigation filter to access the System Properties sys_properties table. You need the admin role to modify below system properties. 2. Verify that you set the following system properties to true: glide.cometd.websocket.enabledsn_rpa_fdn.glide.amb.websocket.enabled These properties enable WebSocket communication for AMB instead of falling back to long-polling. 3. Navigate to All > User Administration > Users and open the user record for the service account that the RPA robot uses. 4. Set Identity Type to Machine. ServiceNow identifies machine identities as non-human identities used by applications, APIs, bots, and automated systems. 5. Verify that web service access only is enabled for the service account after you set the Identity Type to Machine.Once the above changes are done, the unattended bot connects to the ServiceNow Instance successfully.