Cannot Publish - System.ArgumentNullException: Value cannot be null. (Parameter ‘version’)

Hi Team,

I am unable to publish my package. Kindly help me out to resolve this issue.


Error: System.ArgumentNullException: Value cannot be null. (Parameter ‘version’)
at UiPath.NuGet.Package…ctor(String id, String version)
at UiPath.Studio.ProjectPackager.Publish.Services.ProjectDependenciesProvider.<>c.b__2_0(PackageDependencyState r)
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.BuildPackageNamesSet(HashSet1 packageIds, IEnumerable1 references, Func2 filter)
at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.BuildPackageNamesSet(HashSet1 packageIds, IEnumerable1 references, Func2 filter) at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.BuildPackageNamesSet(HashSet1 packageIds, IEnumerable1 references, Func2 filter)
at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.HasLegacyPackage(IEnumerable1 runtimeDependencies, IEnumerable1 dependencies)
at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.GetRuntimeDependencies(IEnumerable1 dependencies, IEnumerable1 allPackages)
at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.GetRuntimeDependencies(IWorkflowProjectModel workflowProjectModel)
at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.CloneWorkflowProject(IWorkflowProjectModel projectModel)
at UiPath.Studio.ProjectPackager.Publish.Services.PublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.PublishAsync(IWorkflowProjectModel projectModel, IPublishSettings settings), HResult -2147467261

Thanks in Advance

Hi @manikandan.murugan

Once check your entire code by doing Step into and make sure that values are passed correctly to the variables or arguments

Regards

Hi @manikandan.murugan

Try by debugging the code and check all the variables are holding expected results by using immediate panel.

There are some null values resulting in the code.

Hope it helps!!

Hi @vrdabberu ,

Yes I am able to run the code. Also able to get all the data.

Thanks

Hi @manikandan.murugan

Can you share the dependencies screenshot in Projects Panel. And if you have any unused workflows delete those and try to publish the project @manikandan.murugan

Regards

@manikandan.murugan ,

Check if there are any unused workflow files. Those also makes issue. Try deleting those if any.

Also check if if you missed to pass any argument value.

Thanks,
Ashok :slight_smile:

@manikandan.murugan

In your Project check the Variable and argument Passing for all invoke workflow files.Or remove Unused variables and arguments in Remove unused

Hi
This happened only when you have add an argument in one of workflows and you have done save the changes.
check when you have add the workflows, check in the picture


here i have 10 arguments, but it hasn’t get the update
just click import Argument and than ok

image

and than everything is fine to publish

please let me know
thanks Luciano

Try the solutions from https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/Value-cannot-be-null-Parameter-version-while-publishing-a-project-in-Studio-23-4?lang=en_US

1 Like

Hi @marian.platonov

Really thank you so much for your help.

Happy Automation :grinning:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.