Publish of workflow project to Orchestrator failed. An error has occurred

Hi All,

When I am trying to publish the code from orchestrator machine getting the below error message,

18.4.1+Branch.master.Sha.bc66386dd8e2160b6d35f31d5ce934a5aa4cf4bd

Error: Publish of workflow project to Orchestrator failed. An error has occurred.

Error: System.ApplicationException: Publish of workflow project to Orchestrator failed. An error has occurred. —> System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: An error has occurred.

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 421
— 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 425
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

Tried below approach but nothing is working,
1).Disconnect the robot from robot tray settings and tried to publish again.
2).Created new sample process with few activities and tried to publish.
3).Tried to create new Robot in orchestrator(Not able to perform any action in orchestrator. Getting “An error has occured error message” even run the jobs which is already published and).
4).Deleted entire orchestrator log.
5).Restarted the orchestrator machine.
6).Restarted the orchestrator server.

Can any one suggest me to fix this issue?

Thanks,
Jose.

Hi @shajanjose,

If you are able to perform actions in the orchestrator earlier, maybe the username or password of the robot in the orchestrator is changed or the check the machine name and key.

check this solution once.

Hi @shajanjose,
In your error there is:

It might be also firewall or antivirus which is blocking your connection with orchestrator.

Hello,
I ran into this situation when the UIPath Database had reached its max. Deleting rows greater then 45 days old allowed the package to be published as well as solved the “An error has occurred” issue

1 Like