Orchestrator Publication 2019: Object Reference not set to an instance of an object

Hello,

When trying to publish my project package (local or directly to Orchestrator), the error below occurs.

19.10.4+Branch.support-v2019.10.Sha.fe819a658cad0585a64d2f8af94fad5c30b8d122

Error: Object reference not set to an instance of an object.

Error: System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Project.Deploy.ProjectPackageManager.g__UpdateEntry|11_3(ZipArchive package, String oldName, String newName, Action 2 transformer)
at UiPath.Project.Deploy.ProjectPackageManager.<>c__DisplayClass11_1.b__8(ValueTuple 2 file)
at UiPath.Shared.EnumerableExtensions.EnumerableExtensions.ForEach[TSource](IEnumerable 1 source, Action 1 action)
at UiPath.Project.Deploy.ProjectPackageManager.CheckUnicodeId(String id, String destinationFilePath)
at UiPath.Project.Deploy.ProjectPackageManager.BuildPackage(IWorkflowProject project, String destinationFolder, String releaseNotes)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.<>c__DisplayClass49_0.b__0()
at System.Threading.Tasks.Task 1.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.Shared.Project.BaseWorkflowProjectFactory.d__49.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.Shared.Project.BaseWorkflowProjectFactory.d__48.MoveNext(), HResult -2147467261

The project runs to completion in Studio. The package dependencies are as follows:

"UiPath.System.Activities": "[19.10.1]",
"UiPath.Excel.Activities": "[2.7.2]",
"UiPath.Mail.Activities": "[1.7.2]",
"UiPath.Credentials.Activities": "[1.1.6479.13204]",
"DataTableSolutions": "[1.0.11]",
"UiPath.UIAutomation.Activities": "[19.11.2]"

Same! Any solutions yet?

Was the project created in the same studio (and machine), where you are trying to publish it from? Is this the first version of it to be published? Sometimes it is about the activities packages missing from that particular machine.

If this built using an older version of the UiPath REFramework, the issue may be any files that contain %20 in the filename.

Under the Documentation folder, there is a REFramework%20documentation.pdf that could be causing the null reference error. This also applies for files that have spaces in the filename (or %20).

See the resolution in the thread below:

6 Likes

Thank you dzhou. This fixed it.

My observations - If you are able to run main.xaml with no errors, then there likely is a file in your project with spaces in the file name. This space was replaced by %20% in the package when you last published your project. Now after making a minor change if you re-upload, then you will encounter this publish error. In my case it was a file was under a rarely used folder in my project tree so spotting it was not obvious. After removing the %20% character from the filename, was able to publish.

Link in dhzou’s reply - seems like publishing process replaces space in the file name with %20%, so if it sees a %20% character already in any of the file names in the project, then doesn’t like it and throws an error during publish.

1 Like

This works :grinning: :grinning:

That was exactly the problem. In particular, as @dzhou said, the documentation of the REFramework is one culprit which causes this issue. I’ve also seen this happen in projects with pdfs that have spaces in other project folders.

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