Publishing workflow timed out - getActivityArguments exception

Hi,

I’m trying to publish a workflow, but get the message that the operation has timed out. I am able to publish other workflows. The log shows the following:

11:09:52.9559 => [WARN] [UiPath.Studio.exe] [1] GetActivityArguments exception: System.InvalidOperationException: This method can only be called after CacheMetadata has been called on the workflow definition.
** at Microsoft.VisualBasic.Activities.VisualBasicReference1.GetExpressionTree()** ** at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.GetActivityArguments(ModelPropertyCollection activityProperties)** **11:10:44.7788 => [ERROR] [UiPath.Studio.exe] [1] Error: System.ApplicationException: Publish of workflow project to Orchestrator failed. The operation has timed out. ---> System.ServiceModel.FaultException1[System.ServiceModel.ExceptionDetail]: The operation has timed out.**

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)**
** at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.PublishToOrchestrator(Int32 timeout, String packFilePath, IWorkflowProject workflowProject)**
** — End of inner exception stack trace —**
** at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.PublishToOrchestrator(Int32 timeout, String packFilePath, IWorkflowProject workflowProject)**
** at UiPath.Studio.Plugin.Workflow.Project.WorkflowProjectModelFactory.<>c__DisplayClass48_0.b__0()**
** 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__48.MoveNext()**
— 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__46.MoveNext(), HResult -2146232832**

When trying to upload the package manually to orchestrator, it says the file was moved or altered, so that doesn’t work either.

I’d appreciate any help…
Christophe

Hi @christophe_desseaux

Any chance you could isolate the issue within that project? If I understand correctly, it is only that project that is causing the issue.

Would it be possible for you to contact our support (in case you are an Enterprise customer) and provide them with a zip of this faulty project for further investigation?