Error fix for Orchestrator throwing "An error has occurred" when Robot is queried after changing the license type of the Robot(from Attended to Studio).
It is an known issue on Orchestrator 19.10.14.
Resolution: Update the Orchestrator to v19.10.19 or later.