Error while publishing

Hi

Got an error when publishing this version :

17:10:42:220 => [ERROR] [UiPath.Workflow.Logging.StudioTraceListener] [19] System.Exception: Publishing the project has failed.

Error: Failed to process request. ‘Not Found’.
The remote server returned an error: (404) Not Found… —> System.InvalidOperationException: Failed to process request. ‘Not Found’.
The remote server returned an error: (404) Not Found… —> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at NuGet.RequestHelper.GetResponse()
at NuGet.HttpClient.GetResponse()
at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable1 expectedStatusCode) --- End of inner exception stack trace --- at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable1 expectedStatusCode)
at NuGet.PackageServer.PushPackageToServer(String apiKey, Func`1 packageStreamFactory, Int64 packageSize, Int32 timeout, Boolean disableBuffering)
at NuGet.PackageServer.PushPackage(String apiKey, IPackage package, Int64 packageSize, Int32 timeout, Boolean disableBuffering)
at UiPath.Project.Deploy.ProjectPackageManager.Push(WorkflowProjectPackage pack, Int32 timeout)
at UiPath.Project.Deploy.ProjectPackageManager.PackAndPublish(WorkflowProject project, Int32 timeoutMS)
at UiPath.Project.ProjectManager.Publish(Int32 timeoutMS)
at UiPath.Workflow.ViewModels.MainViewModel.PackAndPush()
— End of inner exception stack trace —

Any idea what goes wrong?

Regards
t.wack

Hello there,
Please refer this.

1 Like

Hi the reason was … the package for Deployment was too big.
We had a lot of screenshots in it in BMP format, that were not needed for the Production.
After deleting these files it worked. We got the information that currently the max size is 30 MB for publishing.
Regards
T

Yes This issue is due to size only . For me it worked with 35 MB size of project

Does that mean in cases where the package exceeds 30 MB that we have to upload the packages manually?

Although, it will be difficult to exceed 30 MB as long as you delete all temporary data before publishing, like any test files, videos, images, logs. If all you have are workflows, that would be like 100 workflows of 300 KB to exceed 30 MB. It pretty much copies everything that’s in the project folder when you publish so just make sure it’s cleaned up before publishing.

@ClaytonM you were right man. The reason our package was so large was because we were downloading the XAML from TFS (git) and using UiPath to publish it to an orchestrator. Because the .git folder was in the root of the project, the entire history git history was being packaged up into the NUGET package. I thought 177 MB package was a bit extreme. :slight_smile:

Thanks!
Chris