Symptoms
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceCode.Management.Controls.AddItemCommandHandler.TransferCategoriesOfUncategorised(IAsyncTaskManagerService asyncService, ModelTreeControl page, AddItemView sourceViewModel, ViewModel viewModel)
at SourceCode.Management.Controls.AddItemCommandHandler.<>c__DisplayClasse.b__6()
at SourceCode.Management.Controls.Framework.AsyncTaskManagerService.ProcessAsyncQueue()
Diagnoses
There were two separate errors occurring here.
1. Object reference not set to an instance of an object
2.Target of invocation
Both these issues stopped PandD from creating package.
Resolution
clear the following cache folder.
C:programdataSourceCodeHostServerRuntimeCache
Create the package in separate packages to workaround the Object reference not set to an instance of an object.