I am trying to implement the new features “Create Form Task” and “Wait for Form Task and Resume”. But I am getting the following error while the process tries to create a new task in Orchestrator.
Operation returned an invalid status code 'OK'
RemoteException wrapping UiPath.Orchestrator.Service.OrchestratorException: Operation returned
an invalid status code 'OK'
at UiPath.Persistence.Activities.BaseOrchestratorClientAsyncActivity.ThrowIfNeeded(Task task,
Boolean suppressThrowException)
at UiPath.Persistence.Activities.BaseOrchestratorClientAsyncActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution (AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute (ActivityExecutor executor, BookmarkManager bookmarkManager)
Not sure if this is due to my code or something related to UiPath itself.
I am using Cloud Orchestrator and Studio version 2019.10.0-beta.52
I saw some updates in UiPath.Persistence.Activities today and was hopeful that it will fix the errors. But unfortunately it didn’t work and I continue to get the same error.
@AlinaCapota
Thanks for the response. I converted my Studio bot to unattended and tried again but keep getting the same error.
Also, received few more updates to the Persistence.Activities and UiPath.FormActivities packages. But no luck.
Have you tried publishing the process and running it from the Orchestrator with the Unattended Bot as well? Please make sure that the version of Studio is 19.8 or above and the version of Orchestrator is 19.9 or above (Feature flag ‘Tasks’ enabled per tenant)
@jared - Fantastic. Atleast the things moved forward with your solution. I am still getting an error but will look into it. And at the same time I can also see a task got created in Orchestrator as expected.
I will continue exploring further and post the result here in couple of days.
I can now see a task getting created in Orchestrator but at the same time process is failing due to following error. I am yet to look into it and resolve.
Type ‘System.Collections.IEnumerable’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
Also, make sure you run the process only through Orchestrator since it has to create the task.