PackagingResults: Error: Unknown Error

Hey! I’m trying to package a game for Windows. When I attempt to do so, I get this error:

image

After doing some research, I’ve heard that disabling pak encryption and source control are potential fixes, but I have neither of these enabled. The game packaged just fine about a month ago, does anyone know what could be causing this?

Here’s the full log:

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/Katie/Projects/Realtime Graphics Project/Unreal Engine Project Files/Fixes V12/kathal-2_PRJ015.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=52517 -project="C:/Users/Katie/Projects/Realtime Graphics Project/Unreal Engine Project Files/Fixes V12/kathal-2_PRJ015.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="C:/Users/Katie/Projects/Realtime Graphics Project/Unreal Engine Project Files/Fixes V12/kathal-2_PRJ015.uproject" -unr
ealexe="C:\Program Files\Epic Games\UE_5.2\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory="C:/Users/Katie/Projects/Realtime Graphics Project/Unreal Engine Project Files/Package12" -clientconfig=Shipping -nodebuginfo -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules...
UATHelper: Packaging (Windows): Total script module initialization time: 0.20 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.19041.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\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\kathal-2_PRJ015.uproject
UATHelper: Packaging (Windows): kathal-2_PRJ015.uproject requires a temporary target.cs to be generated (RigLogic plugin is enabled)
UATHelper: Packaging (Windows): Errors generated while parsing 'C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs'
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(3,20): error CS1514: { expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(3,20): error CS1513: } expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(3,20): error CS8803: Top-level statements must precede namespace and type declarations.
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(3,21): error CS1013: Invalid number
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(3,23): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(3,49): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(4,2): error CS1513: } expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,9): error CS0116: A namespace cannot directly contain members such as fields or methods
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,16): error CS1013: Invalid number
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,18): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,42): error CS1003: Syntax error, ',' expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,50): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,50): error CS1022: Type or namespace definition, or end-of-file expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.Target.cs(5,64): error CS1002: ; expected
UATHelper: Packaging (Windows): C:\Users\Katie\Projects\Realtime Graphics Project\Unreal Engine Project Files\Fixes V12\Intermediate\Source\kathal-2_PRJ015.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.
PackagingResults: 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 850
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 828
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 633
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 2362
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 ServerArchitecture, String EditorArchitecture, String ClientArchitecture, String ProgramArchitecture, 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, ParamL
ist`1 InMapsToRebuildHLOD, ParamList`1 TitleID, Nullable`1 RetainStagedDirectory) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\ProjectParams.cs:line 1249
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\Katie\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.2\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 3s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error