Converting UIPath Template Project into Standard

I created a UiPath project based on a template, but when I tried uploading it to the orchestrator on a VM it ran into an error. It seems I can’t use template projects with the orchestrator, so I need to convert my template project into a standard one. Is there any way for me to do this?

I tried to recreate the project but ran into issues due to a change in the website I was basing it off.

Any help would be appreciated.

@jkim13

Welcome to the community

Open project.json there will be a istemplate key…change it to false

Cheers

1 Like

Thanks for the response!
I tried what you said, and I think I bypassed the template restriction, but when I try to publish the project I still run into an error code 405: (Method not allowed). Would you happen to know what may be causing this error?

@jkim13

Glad you were able to move

Can you please show full error

cheers

Yes, here it is:

Publish of TestAutomation failed. Response status code does not indicate success: 405 (Method Not Allowed).

Error: System.InvalidOperationException: Publish of TestAutomation failed. Response status code does not indicate success: 405 (Method Not Allowed).
—> System.Net.Http.HttpRequestException: Response status code does not indicate success: 405 (Method Not Allowed).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at NuGet.Protocol.Core.Types.PackageUpdateResource.EnsureSuccessStatusCode(HttpResponseMessage response, Nullable1 codeNotToThrow, ILogger logger) at NuGet.Protocol.Core.Types.PackageUpdateResource.<>c__DisplayClass24_0.<PushPackageToServer>b__0(HttpResponseMessage response) at NuGet.Protocol.HttpSource.ProcessResponseAsync[T](HttpSourceRequest request, Func2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.Core.Types.PackageUpdateResource.PushPackageToServer(String source, String apiKey, String pathToPackage, Boolean noServiceEndpoint, Boolean skipDuplicate, TimeSpan requestTimeout, Boolean warnForHttpSources, ILogger logger, CancellationToken token)
at NuGet.Protocol.Core.Types.PackageUpdateResource.PushPackageCore(String source, String apiKey, String packageToPush, Boolean noServiceEndpoint, Boolean skipDuplicate, TimeSpan requestTimeout, Boolean warnForHttpSources, ILogger log, CancellationToken token)
at NuGet.Protocol.Core.Types.PackageUpdateResource.PushPackagePath(String packagePath, String source, String symbolSource, String apiKey, Func2 getSymbolApiKey, Boolean noServiceEndpoint, Boolean skipDuplicate, SymbolPackageUpdateResourceV3 symbolPackageUpdateResource, TimeSpan requestTimeout, ILogger log, CancellationToken token) at NuGet.Protocol.Core.Types.PackageUpdateResource.Push(IList1 packagePaths, String symbolSource, Int32 timeoutInSecond, Boolean disableBuffering, Func2 getApiKey, Func2 getSymbolApiKey, Boolean noServiceEndpoint, Boolean skipDuplicate, SymbolPackageUpdateResourceV3 symbolPackageUpdateResource, ILogger log)
at NuGet.Commands.PushRunner.Run(ISettings settings, IPackageSourceProvider sourceProvider, IList1 packagePaths, String source, String apiKey, String symbolSource, String symbolApiKey, Int32 timeoutSeconds, Boolean disableBuffering, Boolean noSymbols, Boolean noServiceEndpoint, Boolean skipDuplicate, ILogger logger) at UiPath.NuGet.Utils.PublishPackage(IEnumerable1 packFilePaths, String serverUrl, String apiKey, Int32 timeoutSeconds)
at UiPath.Studio.ProjectPackager.Publish.Services.NuGetPackageUploader.UploadAsync(PushPackagesRequest pushRequest, Int32 timeout)
at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPushService.Publish(BuildPackageResult package, IPublishSettings publishSettings, CancellationToken cancellationToken)
— End of inner exception stack trace —
at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPushService.Publish(BuildPackageResult package, IPublishSettings publishSettings, CancellationToken cancellationToken)
at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.<>c__DisplayClass44_0.<b__0>d.MoveNext(), HResult -2146233079

@jkim13

Can you attach your project.json here

cheers

Yes, though it will not let me upload the file so I’ll just paste the code here:

{
“name”: “TestAutomation”,
“projectId”: “4c7c8602-b150-48d8-98c6-b3647fde52ac”,
“description”: “test”,
“main”: “Main.xaml”,
“dependencies”: {
“UiPath.Excel.Activities”: “[2.23.2-preview]”,
“UiPath.Mail.Activities”: “[1.23.1]”,
“UiPath.System.Activities.Runtime”: “[24.3.1]”,
“UiPath.Testing.Activities”: “[24.2.0-preview]”,
“UiPath.UIAutomation.Activities.Runtime”: “[24.2.0-preview]”
},
“webServices”: ,
“entitiesStores”: ,
“schemaVersion”: “4.0”,
“studioVersion”: “24.2.1.0”,
“projectVersion”: “1.0.2”,
“runtimeOptions”: {
“autoDispose”: false,
“netFrameworkLazyLoading”: false,
“isPausable”: true,
“isAttended”: false,
“requiresUserInteraction”: true,
“supportsPersistence”: false,
“workflowSerialization”: “DataContract”,
“excludedLoggedData”: [
“Private:*”,
password
],
“executionType”: “Workflow”,
“readyForPiP”: false,
“startsInPiP”: false,
“mustRestoreAllDependencies”: true,
“pipType”: “ChildSession”
},
“designOptions”: {
“projectProfile”: “Developement”,
“outputType”: “Process”,
“libraryOptions”: {
“includeOriginalXaml”: false,
“privateWorkflows”:
},
“processOptions”: {
“ignoredFiles”:
},
“fileInfoCollection”: ,
“modernBehavior”: false,
“saveToCloud”: false
},
“arguments”: {
“input”: ,
“output”:
},
“expressionLanguage”: “VisualBasic”,
“entryPoints”: [
{
“filePath”: “Main.xaml”,
“uniqueId”: “a49a5940-5d0c-48e6-ae4c-f96801725247”,
“input”: ,
“output”:
}
],
“isTemplate”: false,
“templateProjectData”: {
“defaultProjectDescription”: “test”,
“defaultProjectName”: “TestAutomationTemplate”
},
“publishData”: {},
“targetFramework”: “Windows”
}

@jkim13

please try this

project.zip (964 Bytes)

cheers