title: Error UiElement is not longer valid after publish process to UiPath Orchastrator
body: <p>I created a robot on UiPath Studio and it were working well running at my machine.
  Then I followed the steps to publish it at Orchestrator:</p>
  
  <ul>
  <li>I created a machine on Orchestrator(and linked the key license to the Uipath Assistant)</li>
  <li>I created a robot</li>
  <li>I created an environment</li>
  <li>I created a process linked to the robot</li>
  </ul>
  
  <p>So when I run it from Orchestrator I got the error:</p>
  
  <pre><code>Process: IMPEXTRCOBR
  Environment:
  Robot: IMPEXTRCOB
  Machine name: C205
  Info: The UiElement is no longer valid
  RemoteException wrapping UiPath.Core.InvalidUiElementException: O UiElement já não é válido ---&gt; RemoteException wrapping System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040215
  at UiPath.UiNodeClass.get_visibility()
  at UiPath.Core.UiElement.IsVisible()
  --- End of inner exception stack trace ---
  at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
  at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
  at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
  Start Time: 04/24/2020 11:16:22 AM
  End Time: 04/24/2020 11:16:29 AM
  Input Values: null
  Output Values: Empty
  Has Recording: false
  </code></pre>
  
  <p>And now If I try to run it from my machine I got the same error. And if I try to "fix" the selector of the activity I got the error:</p>
  
  <p><a href="https://i.stack.imgur.com/HpPBO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HpPBO.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong?</p>