On clicking Publish: Task was cancelled when orchestrator is connect with studio

Hi All,

My studio is connected with orchestrator. When I hit Publish button I’m getting this message as “Error: Publish of workflow project to orchestrator failed. A task was cancelled.” I’m having admin rights to my orchestrator as well but couldn’t find what has been missed. Can any one let me know why is this happening?

@Arun_Singh

can you check the Robot connection in robot tray?

Hi
Welcome back to uipath community

Make sure the robot is connected as per these steps
Kindly check with these stuffs that would surely resolve your issue
— first create a machine in orchestrator and that machine name should be same as in your system
To get that name go to start-> search as robot-> settings and get the machine name from there and paste the same while creating machine in orchestrator and copy the machine key after this from orchestrator and paste it in your system robot tray and mention the orchestrator url as well
— the. Make sure that we have a robot created in the orchestra with the same machine name and while entering the detail for username and password go to cmd window and type as whoami which will give use domain and username, enter the same in the orchestrator while creating robot
— create a environment now In the robot tab and tag the robot created in the previous step to this environment
— now back to our system in robot tray we have machine key, and orchestrator url mentioned readily and now we can connect

Cheers @Arun_Singh

Robot is connected in the robot tray. If i disconnect my robot i can able to publish. If I connect with robot from setting it was not been published and throwing the error.

Robot

Thanks for the info Palaiyappan. I can connect with the robot using orchestrator and fetch all the assets.

Issue i’m facing is:
I can’t publish my code if it connected with the robot.
If i disconnect the robot and try to publish, it not created and throwing this error.

I have given all the role access similar to the Admin.

Throwing this below error:

18.4.6+Branch.support/v2018.4.Sha.85e415fbbb19cb7dd57766496cc0770179b9b944

Error: Publish of workflow project to Orchestrator failed. A task was canceled.

Error: System.ApplicationException: Publish of workflow project to Orchestrator failed. A task was canceled. —> System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: A task was canceled.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object ins, Object outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at UiPath.Models.IUiPathRemoteDuplexContract.PublishPackage(String packFilePath, Int32 timeoutSeconds, PublishFeedType feedType)
at UiPath.Models.UiPathDuplexProxy.PublishPackage(String packFilePath, Int32 timeoutSeconds, PublishFeedType feedType) in d:\a\1\s\Common\UiPath.Service.Api\Client\UiPathDuplexProxy.cs:line 95
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.PublishToOrchestrator(Int32 timeout, String packFilePath, IWorkflowProject workflowProject) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 422
— End of inner exception stack trace —
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.PublishToOrchestrator(Int32 timeout, String packFilePath, IWorkflowProject workflowProject) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 427
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.<>c__DisplayClass49_0.b__0() in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 408
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__49.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 408
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__47.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\WorkflowProjectModelFactory.cs:line 372, HResult -2146232832

Kindly check whether any firewall setting has whitelisted the application
cheers @Arun_Singh