# 5.4 Cant package project with Unknown Error

**URL:** <https://forums.unrealengine.com/t/5-4-cant-package-project-with-unknown-error/1934460>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [July 11, 2024, 8:34pm UTC](https://forums.unrealengine.com/t/5-4-cant-package-project-with-unknown-error/1934460 "2024-07-11T20:34:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darktaco123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@darktaco123](https://forums.unrealengine.com/u/darktaco123)\
**Post date:** [July 11, 2024, 8:34pm UTC](https://forums.unrealengine.com/t/5-4-cant-package-project-with-unknown-error/1934460/1 "2024-07-11T20:34:00Z")

</div>

I recently upgraded my project form 5.1 to 5.4 and now my project cant be packaged. any ideas would be apricated.

`LogUObjectHash: Compacting FUObjectHashTables data took 1.16ms`

`LogTurnkeySupport: Project requires temp target (ElectraPlayer plugin is enabled)`

`LogLauncherProfile: Unable to use promoted target - ../../../../Unreal Projects/ProjectSTACKABLES5.4/Binaries/Win64/UnrealGame-Win64-Shipping.target does not exist.`

`LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""E:/UE_5.4/Engine/Build/BatchFiles/RunUAT.bat" -ScriptsForProject="E:/Unreal Projects/ProjectSTACKABLES5.4/ProjectStackables5.4.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=61075 -project="E:/Unreal Projects/ProjectSTACKABLES5.4/ProjectStackables5.4.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="E:/Unreal Projects/ProjectSTACKABLES5.4/ProjectStackables5.4.uproject" -unrealexe="E:\UE_5.4\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=W`

`in64 -installed -stage -archive -package -build -clean -pak -iostore -compressed -prereqs -archivedirectory="E:/packaged products" -nodebuginfo" -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="E:/Unreal Projects/ProjectSTACKABLES5.4/ProjectStackables5.4.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=61075 -project="E:/Unreal Projects/ProjectSTACKABLES5.4/ProjectStackables5.4.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="E:/Unreal Projects/ProjectSTACKABLES5.4/ProjectStackables5.4.uproject" -unrealexe=E:\UE_5.4\Engine\Binaries\Win64\UnrealEditor-Cmd.exe -platform=Win64 -installed -stage -archive -package -build -clean -pa`

`k -iostore -compressed -prereqs -archivedirectory="E:/packaged products" -nodebuginfo -nocompile -nocompileuat`

`UATHelper: Packaging (Windows): Initializing script modules...`

`UATHelper: Packaging (Windows): Total script module initialization time: 0.23 s.`

`UATHelper: Packaging (Windows): Using C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe`

`UATHelper: Packaging (Windows): Executing commands...`

`UATHelper: Packaging (Windows): Installed Sdk validity:`

`UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.18362.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.22621.0, Allowed_AutoSdk=10.0.19041.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 E:\Unreal Projects\ProjectSTACKABLES5.4\ProjectStackables5.4.uproject`

`UATHelper: Packaging (Windows): Errors generated while parsing 'E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs'`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(3,32): error CS1514: { expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(3,32): error CS1513: } expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(3,32): error CS8803: Top-level statements must precede namespace and type declarations.`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(3,34): error CS1002: ; expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(3,54): error CS1002: ; expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(4,2): error CS1513: } expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(5,9): error CS0116: A namespace cannot directly contain members such as fields, methods or statements`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(5,29): error CS1002: ; expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(5,47): error CS1003: Syntax error, ',' expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(5,55): error CS1002: ; expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(5,55): error CS1022: Type or namespace definition, or end-of-file expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(5,69): error CS1002: ; expected`

`UATHelper: Packaging (Windows): E:\Unreal Projects\ProjectSTACKABLES5.4\Intermediate\Source\ProjectStackables5.4.Target.cs(12,1): error CS1022: Type or namespace definition, or end-of-file expected`

`UATHelper: Packaging (Windows): System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\kinze\AppData\Local\Temp\UAT\E+UE_5.4\Rules\UATRules-39b0c727c4f5e25641db933c955e1807Manifest.json'.`

`UATHelper: Packaging (Windows): at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)`

`UATHelper: Packaging (Windows): at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)`

`UATHelper: Packaging (Windows): at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)`

`UATHelper: Packaging (Windows): at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)`

`UATHelper: Packaging (Windows): at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)`

`UATHelper: Packaging (Windows): at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)`

`UATHelper: Packaging (Windows): at System.IO.StreamWriter..ctor(String path)`

`UATHelper: Packaging (Windows): at EpicGames.Core.JsonWriter..ctor(FileReference fileName, JsonWriterStyle style) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\Shared\EpicGames.Core\JsonWriter.cs:line 55`

`UATHelper: Packaging (Windows): at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, IEnumerable\`1 SourceFileNames, ILogger Logger, IEnumerable`1 ReferencedAssembies, IEnumerable`1 PreprocessorDefines, Boolean DoNotCompile, Boolean ForceCompile, Boolean TreatWarningsAsErrors) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 344`

`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 483`

`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 461`

`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 266`

`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 178`

`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 2453`

`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 ClientCo`

`okedTargets, ParamList\`1 EditorTargets, ParamList`1 ServerCookedTargets, List`1 ClientTargetPlatforms, Dictionary`2 ClientDependentPlatformMap, List`1 ServerTargetPlatforms, Dictionary`2 ServerDependentPlatformMap, List`1 ConfigOverrideParams, 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, String ForceOodleDllVersion, Nullable`1 IterativeCooking, String IterateSharedCookedBuild, Nu`

`llable\`1 IterateSharedBuildUsePrecompiledExe, Nullable`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 BasedOnReleaseVersionBa`

`sePath, String ReferenceContainerGlobalFileName, String 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 NoClient, 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 ZenStore, String NoZenAutoLaunch, Nullable`1 SkipIoStore, Nullable`1 GenerateOptimizationData, Nullable`1 Prereqs, String AppLocalDirectory, String CustomDeploymentHandler, Nullable`1 NoBootstrapExe, Nullable`1 SignedPak, Nullable`1 PakAlignForMemoryMapping, Nullable`1 RehydrateAssets, N`

`ullable\`1 NullRHI, Nullable`1 FakeClient, Nullable`1 EditorTest, 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, Nullab`

`le\`1 Distribution, String PackageEncryptionKeyFile, Nullable`1 Prebuilt, Nullable`1 RunTimeoutSeconds, String SpecifiedArchitecture, String ServerArchitecture, String EditorArchitecture, String ClientArchitecture, String ProgramArchitecture, String UbtArgs, String AdditionalPackageOptions, Nullable`1 IterativeDeploy, Nullable`1 FastCook, Nullable`1 IgnoreCookErrors, Nullable`1 KeepFileOpenLog, Nullable`1 CodeSign, Nullable`1 TreatNonShippingBinariesAsDebugFiles, Nullable`1 UseExtraFlavor, String Provision, String Certificate, String Team, Boolean AutomaticSigning, String Trace, String TraceHos`

`t, String TraceFile, String SessionLabel, ParamList\`1 InMapsToRebuildLightMaps, ParamList`1 InMapsToRebuildHLOD, ParamList`1 TitleID, String Upload) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectParams.cs:line 1295`

`UATHelper: Packaging (Windows): at BuildCookRun.SetupParams() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 50`

`UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41`

`UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 345`

`UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.ExecuteAsync() in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 354`

`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 270`

`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 164`

`UATHelper: Packaging (Windows): (see C:\Users\kinze\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE_5.4\Log.txt for full exception trace)`

`UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 1s`

`UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)`

`UATHelper: Packaging (Windows): BUILD FAILED`

`PackagingResults: Error: Unknown Error`

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [July 12, 2024, 12:21pm UTC](https://forums.unrealengine.com/t/5-4-cant-package-project-with-unknown-error/1934460/2 "2024-07-12T12:21:08Z")

</div>

Greetings @darktaco123

There’s a few errors in that log. When you upgraded the project to 5.4 did you also update any plugins that you may have enabled? If not, I’d start there and ensure they’re all compatible with 5.4.

---

<div class="post-metadata">

**Author:** ![Savas\_Cetin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Savas\_Cetin](https://forums.unrealengine.com/u/Savas_Cetin)\
**Post date:** [November 22, 2025, 6:09pm UTC](https://forums.unrealengine.com/t/5-4-cant-package-project-with-unknown-error/1934460/3 "2025-11-22T18:09:28Z")

</div>

For everyone looking for ErrorCode=1  
I have recently received a similar error code. My solution was to delete everything except .uproject file, config and contend folders. (I zipped the project from editor, and extracted on a separate folder)  
Project started compiling again.
