# Packaging error, Object reference not set to an instance of an object?

**URL:** <https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834>\
**Category:** Platform & Builds\
**Tags:** error, windows, instance, build, unreal-engine, Packaging, question\
**Created:** [November 1, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834 "2018-11-01T15:31:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BdeJong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BdeJong](https://forums.unrealengine.com/u/BdeJong)\
**Post date:** [November 1, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834/1 "2018-11-01T15:31:40Z")

</div>

My project refuses to package for Windows, I cant seem to find a previous topic on this particular problem occuring, so I’m hoping someone here might be able to shed some light on the cause.

I’ve made the log file available on drive: [https://drive.google.com/file/d/1mfPnLeEsX0293C4ftQx0LS73VaLase78/view?usp=sharing](https://drive.google.com/file/d/1mfPnLeEsX0293C4ftQx0LS73VaLase78/view?usp=sharing)

The main error seems to be: **ERROR: System.NullReferenceException: Object reference not set to an instance of an object.**

Thanks!

---

<div class="post-metadata">

**Author:** ![Alex\_Chozabu\_P-B](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alex\_Chozabu\_P-B](https://forums.unrealengine.com/u/Alex_Chozabu_P-B)\
**Post date:** [February 5, 2019, 2:00pm UTC](https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834/2 "2019-02-05T14:00:07Z")

</div>

Just had similar happen to me. **Fix was to disable “Houdini Engine” plugin**

Your log is not identical, so it may not work, but I do see you have the same plugin in your log.

Suspect this could be fixed by configuring the plugin, but untested.

---

<div class="post-metadata">

**Author:** ![LILwayne9870](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LILwayne9870](https://forums.unrealengine.com/u/LILwayne9870)\
**Post date:** [September 14, 2023, 8:52pm UTC](https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834/3 "2023-09-14T20:52:30Z")

</div>

Still have this problem and have no idea how to find the solution. This is the only error I see and I only have 1 instance of it. Here is my full Error log:

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

Please help with a fix. I am unable to package my build because of this error.

---

<div class="post-metadata">

**Author:** ![LILwayne9870](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LILwayne9870](https://forums.unrealengine.com/u/LILwayne9870)\
**Post date:** [September 14, 2023, 8:54pm UTC](https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834/4 "2023-09-14T20:54:33Z")

</div>

Here is my Full output log. It’s not that long, but results in a Build Failed Result.

```auto
LogUObjectHash: Compacting FUObjectHashTables data took 2.31ms
LogTurnkeySupport: Project requires temp target (MotionWarping plugin is enabled)
LogLauncherProfile: Unable to use promoted target - ../../../../../../Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/Binaries/Win64/UnrealGame.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/RunUAT.bat" -ScriptsForProject="C:/Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/KOD-Duality.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=62740 -project="C:/Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/KOD-Duality.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="C:/Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/KOD-Duality.uproject" -unr
ealexe="C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win64 -installed -stage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory="D:/Games" -clientconfig=Development" -nocompile -nocompileuat ]
UATHelper: Packaging (Windows): Running AutomationTool...
UATHelper: Packaging (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Windows): Starting AutomationTool...
UATHelper: Packaging (Windows): Parsing command line: -ScriptsForProject=C:/Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/KOD-Duality.uproject Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=62740 -project=C:/Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/KOD-Duality.uproject BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=C:/Users/wmiip/OneDrive/Documents/Github/KOD-Duality/KOD-Duality/KOD-Duality.uproject -unrealexe="C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" 
-platform=Win64 -installed -stage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory=D:/Games -clientconfig=Development -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules...
UATHelper: Packaging (Windows): Total script module initialization time: 0.13 s.
UATHelper: Packaging (Windows): Executing commands...
UATHelper: Packaging (Windows): Installed Sdk validity:
UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.22621.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags="InstalledSdk_ValidVersionExists")
UATHelper: Packaging (Windows): Scanning for envvar changes...
UATHelper: Packaging (Windows): ... done! 
UATHelper: Packaging (Windows): Cleaning Temp Paths...
UATHelper: Packaging (Windows): BUILD SUCCESSFUL
UATHelper: Packaging (Windows): Setting up ProjectParams for C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\KOD-Duality.uproject
UATHelper: Packaging (Windows): KOD-Duality.uproject requires a temporary target.cs to be generated (MotionWarping plugin is enabled)
UATHelper: Packaging (Windows): Errors generated while parsing 'C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs'
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(3,17): error CS1514: { expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(3,17): error CS1513: } expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(3,17): error CS8803: Top-level statements must precede namespace and type declarations.
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(3,32): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(3,32): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(3,34): error CS0116: A namespace cannot directly contain members such as fields or methods
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(4,2): error CS1513: } expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(5,9): error CS0116: A namespace cannot directly contain members such as fields or methods
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(5,38): error CS1003: Syntax error, ',' expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(5,46): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(5,46): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(5,60): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\wmiip\OneDrive\Documents\Github\KOD-Duality\KOD-Duality\Intermediate\Source\KOD-Duality.Target.cs(11,1): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.CompileAndLoadTargetsAssembly(ProjectProperties Properties, FileReference TargetsDllFilename, Boolean DoNotCompile, List`1 TargetScripts) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 840
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.DetectTargetsForProject(ProjectProperties Properties, List`1 ExtraSearchPaths) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 818
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.DetectProjectProperties(FileReference RawProjectPath, List`1 ClientTargetPlatforms, List`1 ClientTargetConfigurations, Boolean AssetNativizationRequested) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 634
UATHelper: Packaging (Windows): at AutomationTool.ProjectUtils.GetProjectProperties(FileReference RawProjectPath, List`1 ClientTargetPlatforms, List`1 ClientTargetConfigurations, Boolean AssetNativizationRequested) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectUtils.cs:line 175
UATHelper: Packaging (Windows): at AutomationTool.ProjectParams.AutodetectSettings(Boolean bReset) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectParams.cs:line 2306
PackagingResults: Error: System.NullReferenceException: Object reference not set to an instance of an object.
UATHelper: Packaging (Windows): at AutomationTool.ProjectParams..ctor(FileReference RawProjectPath, BuildCommand Command, String Device, String MapToRun, String AdditionalServerMapParams, ParamList`1 Port, String RunCommandline, String StageCommandline, String BundleName, String StageDirectoryParam, String UnrealExe, String UE4Exe, String SignPak, List`1 ClientConfigsToBuild, List`1 ServerConfigsToBuild, ParamList`1 MapsToCook, ParamList`1 MapIniSectionsToCook, ParamList`1 DirectoriesToCook, String DDCGraph, String InternationalizationPreset, ParamList`1 CulturesToCook, ParamList`1 C
lientCookedTargets, ParamList`1 EditorTargets, ParamList`1 ServerCookedTargets, List`1 ClientTargetPlatforms, Dictionary`2 ClientDependentPlatformMap, List`1 ServerTargetPlatforms, Dictionary`2 ServerDependentPlatformMap, Nullable`1 Build, Nullable`1 SkipBuildClient, Nullable`1 SkipBuildEditor, Nullable`1 Cook, Nullable`1 Run, Nullable`1 SkipServer, Nullable`1 Clean, Nullable`1 Compressed, Nullable`1 ForceUncompressed, String AdditionalPakOptions, String AdditionalIoStoreOptions, Nullable`1 IterativeCooking, String IterateSharedCookedBuild, Nullable`1 IterateSharedBuildUsePrecompiledExe, Nulla
ble`1 CookAll, Nullable`1 CookPartialGC, Nullable`1 CookInEditor, String CookOutputDir, Nullable`1 CookMapsOnly, Nullable`1 CookOnTheFly, Nullable`1 CookOnTheFlyStreaming, Nullable`1 UnversionedCookedContent, Nullable`1 OptionalContent, Nullable`1 EncryptIniFiles, Nullable`1 EncryptPakIndex, Nullable`1 EncryptEverything, Nullable`1 SkipCookingEditorContent, String AdditionalCookerOptions, String OriginalReleaseVersion, String BasedOnReleaseVersion, String CreateReleaseVersion, String CreateReleaseVersionBasePath, String BasedOnReleaseVersionBasePath, String ReferenceContainerGlobalFileName, St
ring ReferenceContainerCryptoKeys, Nullable`1 GeneratePatch, Nullable`1 AddPatchLevel, Nullable`1 StageBaseReleasePaks, String DiscVersion, String DLCName, String DLCOverrideCookedSubDir, String DLCOverrideStagedSubDir, String DiffCookedContentPath, Nullable`1 DLCIncludeEngineContent, Nullable`1 DLCPakPluginFile, Nullable`1 DLCActLikePatch, Nullable`1 CrashReporter, Nullable`1 DedicatedServer, Nullable`1 Client, Nullable`1 Deploy, String DeployFolder, String GetFile, Nullable`1 FileServer, Nullable`1 Foreign, Nullable`1 ForeignCode, Nullable`1 LogWindow, Nullable`1 NoCleanStage, Nullable`1 NoC
lient, Nullable`1 NoDebugInfo, Nullable`1 SeparateDebugInfo, Nullable`1 MapFile, Nullable`1 NoXGE, Nullable`1 SkipPackage, Nullable`1 NeverPackage, Nullable`1 Package, Nullable`1 Pak, Nullable`1 IgnorePaksFromDifferentCookSource, Nullable`1 IoStore, Nullable`1 Cook4IoStore, Nullable`1 ZenStore, String NoZenAutoLaunch, Nullable`1 SkipIoStore, Nullable`1 GenerateOptimizationData, Nullable`1 Prereqs, String AppLocalDirectory, Nullable`1 NoBootstrapExe, Nullable`1 SignedPak, Nullable`1 PakAlignForMemoryMapping, Nullable`1 RehydrateAssets, Nullable`1 NullRHI, Nullable`1 FakeClient, Nullable`1 Edito
rTest, Nullable`1 RunAutomationTests, String RunAutomationTest, Nullable`1 CrashIndex, Nullable`1 SkipCook, Nullable`1 SkipCookOnTheFly, Nullable`1 SkipPak, Nullable`1 PrePak, Nullable`1 SkipStage, Nullable`1 Stage, Nullable`1 Manifests, Nullable`1 CreateChunkInstall, Nullable`1 SkipEncryption, Nullable`1 Unattended, Nullable`1 NumClients, Nullable`1 Archive, String ArchiveDirectoryParam, Nullable`1 ArchiveMetaData, Nullable`1 CreateAppBundle, String SpecifiedClientTarget, String SpecifiedServerTarget, ParamList`1 ProgramTargets, Nullable`1 Distribution, String PackageEncryptionKeyFile, Nullab
le`1 Prebuilt, Nullable`1 RunTimeoutSeconds, String SpecifiedArchitecture, String UbtArgs, String AdditionalPackageOptions, Nullable`1 IterativeDeploy, Nullable`1 FastCook, Nullable`1 IgnoreCookErrors, Nullable`1 CodeSign, Nullable`1 TreatNonShippingBinariesAsDebugFiles, Nullable`1 UseExtraFlavor, String Provision, String Certificate, String Team, Boolean AutomaticSigning, String Trace, String TraceHost, String TraceFile, String SessionLabel, ParamList`1 InMapsToRebuildLightMaps, ParamList`1 InMapsToRebuildHLOD, ParamList`1 TitleID) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Pro
grams\AutomationTool\AutomationUtils\ProjectParams.cs:line 1223
UATHelper: Packaging (Windows): at BuildCookRun.SetupParams() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 49
UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 40
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 344
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.ExecuteAsync() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 353
UATHelper: Packaging (Windows): at AutomationTool.Automation.ExecuteAsync(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 257
UATHelper: Packaging (Windows): at AutomationTool.Automation.ProcessAsync(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet`1 ScriptModuleAssemblies) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 156
UATHelper: Packaging (Windows): (see C:\Users\wmiip\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 0s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

```

---

<div class="post-metadata">

**Author:** ![khayasenpai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@khayasenpai](https://forums.unrealengine.com/u/khayasenpai)\
**Post date:** [March 19, 2025, 9:28pm UTC](https://forums.unrealengine.com/t/packaging-error-object-reference-not-set-to-an-instance-of-an-object/436834/5 "2025-03-19T21:28:57Z")

</div>

For me, my shipping was working until I enabled Movie Render Queue and MRQ Render Passes. I just disabled them and shipping worked again (not sure if it was one or the other but I just disabled both)
