how to solve packaging error

UATHelper: Packaging (Windows): LogConfigBuildDependencyTracker: Display: Config Accesses (335 referencing packages with a total of 2029 unique accesses). 3025 unique accesses that were not associated with a package.
UATHelper: Packaging (Windows): LogCook: Display: Done!
UATHelper: Packaging (Windows): LogSavePackage: Display: Took 0.000346s to verify the EDL loading graph.
UATHelper: Packaging (Windows): LogInit: Display:
UATHelper: Packaging (Windows): LogInit: Display: Success - 0 error(s), 0 warning(s)
UATHelper: Packaging (Windows): LogInit: Display:
UATHelper: Packaging (Windows): Execution of commandlet took: 5.50 seconds
UATHelper: Packaging (Windows): LogStudioTelemetry: Display: Shutdown StudioTelemetry Module
UATHelper: Packaging (Windows): Took 12.38s to run UnrealEditor-Cmd.exe, ExitCode=0
UATHelper: Packaging (Windows): Cook command time: 12.39 s
UATHelper: Packaging (Windows): ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (Windows): ********** STAGE COMMAND STARTED **********
UATHelper: Packaging (Windows): Creating Staging Manifest…
UATHelper: Packaging (Windows): Patching bootstrap executable; C:\Users\big20\OneDrive\文档\Unreal Projects\DaisyTheHuman\Intermediate\Staging\DaisyTheHuman.exe
UATHelper: Packaging (Windows): Begin update resource ‘C:\Users\big20\OneDrive\文档\Unreal Projects\DaisyTheHuman\Intermediate\Staging\DaisyTheHuman.exe’ (123)
UATHelper: Packaging (Windows): Add resource 101, length 20 (False)
UATHelper: Packaging (Windows): End update resource (False/87)
UATHelper: Packaging (Windows): System.Exception: Couldn’t update resource
UATHelper: Packaging (Windows): at ModuleResourceUpdate.SetData(Int32 ResourceId, ResourceType Type, Byte Data) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Win\WinResources.cs:line 265
UATHelper: Packaging (Windows): at ModuleResourceUpdate.SetIcons(Int32 ResourceId, GroupIconResource GroupIcon) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Win\WinResources.cs:line 272
UATHelper: Packaging (Windows): at Win64Platform.StageBootstrapExecutable(DeploymentContext SC, String ExeName, FileReference TargetFile, StagedFileReference StagedRelativeTargetPath, String StagedArguments) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 223
UATHelper: Packaging (Windows): at Win64Platform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 162
UATHelper: Packaging (Windows): at AutomationScripts.Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 1341
UATHelper: Packaging (Windows): at AutomationScripts.Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 5765
UATHelper: Packaging (Windows): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 254
UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 43
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 372
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.ExecuteAsync() in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 381
UATHelper: Packaging (Windows): at AutomationTool.Automation.ExecuteAsync(List1 CommandsToExecute, Dictionary2 Commands) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 284
UATHelper: Packaging (Windows): at AutomationTool.Automation.ExecuteAsync(List1 CommandsToExecute, Dictionary2 Commands) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 308
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 168
UATHelper: Packaging (Windows): (see C:\Users\big20\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.5\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 13s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows): BUILD FAILED
LogStreaming: Display: FlushAsyncLoading(344): 1 QueuedPackages, 0 AsyncPackages
PackagingResults: Error: Unknown Error

Hello there @StarshineXI!

Checking through your log, the cook process is able to finish, which is great news. Meaning, your project itself is most likely fine, and the issue happens at some point afterwards, I’m thinking in these lines below:

UATHelper: Packaging (Windows): Patching bootstrap executable; C:\Users\big20\OneDrive\文档\Unreal Projects\DaisyTheHuman\Intermediate\Staging\DaisyTheHuman.exe
UATHelper: Packaging (Windows): Begin update resource ‘C:\Users\big20\OneDrive\文档\Unreal Projects\DaisyTheHuman\Intermediate\Staging\DaisyTheHuman.exe’ (123)
UATHelper: Packaging (Windows): Add resource 101, length 20 (False)
UATHelper: Packaging (Windows): End update resource (False/87)
UATHelper: Packaging (Windows): System.Exception: Couldn’t update resource

This means that UE is trying to access your .exe file, and failing to update it. The error code received suggests a permition conflict, or an invalid parameter in the mix. Please test the following:

  • First, move your project outside of the OneDrive folder, remove any non-ASCII characters, and re-locate it to a shorter path, like C:\UEProjects\DaisyTheHuman

  • Next, run UE as administrator, so we can avoid permission conflicts during the staging step

  • FInally, either temporary pause any active antivirus in your system, or add exceptions for UE5 and your project folder