PackagingResults: Error: Unknown Error, AutomationTool exiting with ExitCode=6 (6)

I’m getting PackagingResults: Error: Unknown Error, with AutomationTool exiting with ExitCode=6 (6) while trying to package a template project on UE5.6.1 for the Windows platform. The following is my generated log:

Log started at 09/03/2025 10:29:10 (2025-09-03T04:59:10Z)
Resolved project argument E:\Project\On-Going\UE5\TEST\TEST.uproject to E:\Project\On-Going\UE5\TEST\TEST.uproject
No config file at C:\ProgramData\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
No config file at C:\Users\suman\AppData\Local\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
No config file at C:\Users\suman\OneDrive\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Configuration will be read from:
  C:\Users\suman\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Reading configuration file from cache (E:\Project\On-Going\UE5\TEST\Intermediate\Build\XmlConfigCache.bin): C:\Users\suman\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Reading configuration file from cache (E:\Project\On-Going\UE5\TEST\Intermediate\Build\XmlConfigCache.bin): E:\Project\On-Going\UE5\TEST\Saved\UnrealBuildTool\BuildConfiguration.xml
Reading configuration file from cache (E:\Project\On-Going\UE5\TEST\Intermediate\Build\XmlConfigCache.bin): C:\Users\suman\AppData\Local\UnrealEngine\Intermediate\Build\UnrealBuildTool.Env.BuildConfiguration.xml
Log file: C:\Users\suman\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.6\UBA-TEST-Win64-Development.txt

Setting temp directory to 'C:\Users\suman\AppData\Local\Temp\UnrealBuildTool\12c8af0c'
    Registering build platform: UnrealBuildTool.AndroidPlatformFactory
    Registering build platform: UnrealBuildTool.IOSPlatformFactory
    Registering build platform: UnrealBuildTool.LinuxPlatformFactory
    Registering build platform: UnrealBuildTool.MacPlatformFactory
    Registering build platform: UnrealBuildTool.TVOSPlatformFactory
    Registering build platform: UnrealBuildTool.WindowsPlatformFactory
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (1)
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (2)
Found Windows 10 SDK version 10.0.19041.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.19041.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.22621.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.22621.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.26100.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.26100.0 at C:\Program Files (x86)\Windows Kits\10
Win64 Installed SDK(s): MinVersion_Sdk=10.0.19041.0, MaxVersion_Sdk=10.9.99999.0, CurrentVersion_Sdk=10.0.22621.0, Version_AutoSdk=10.0.22621.0, CurrentVersion_AutoSdk=
        Registering build platform: Win64 - buildable: True
    Registering build platform: UnrealBuildTool.VisionOSPlatformFactory
Command line: "C:\Program Files\Epic Games\UE_5.6\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" TEST Win64 Development -Project=E:\Project\On-Going\UE5\TEST\TEST.uproject -Manifest=E:\Project\On-Going\UE5\TEST\Intermediate\Build\Manifest.xml -remoteini=E:\Project\On-Going\UE5\TEST -skipdeploy "-log=C:\Users\suman\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.6\UBA-TEST-Win64-Development.txt"
No target name was specified on the command-line.
BuildException: No target name was specified on the command-line.
   at UnrealBuildTool.TargetDescriptor.ParseSingleCommandLine(CommandLineArguments Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bCreateSimplifiedDescriptors, List`1 TargetDescriptors, ILogger Logger)
   at UnrealBuildTool.TargetDescriptor.ParseCommandLine(CommandLineArguments Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bCreateSimplifiedDescriptors, List`1 TargetDescriptors, ILogger Logger)
   at UnrealBuildTool.TargetDescriptor.ParseCommandLine(CommandLineArguments Arguments, Boolean bUsePrecompiled, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, List`1 TargetDescriptors, ILogger Logger)
   at UnrealBuildTool.TargetDescriptor.ParseCommandLine(CommandLineArguments Arguments, BuildConfiguration BuildConfiguration, ILogger Logger)
   at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger)
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray)
WriteFileIfChanged() wrote 0 changed files of 1 requested writes.

Timeline:
[  0.001]  +1.025 Main
   0.151          [  0.149]  +0.407 Apply XmlConfig
   0.756          [  0.755]  +0.270 RegisterPlatforms
[  1.027]  +0.031 BuildMode
   1.044          [  0.016]  +0.014 Saving caches
[  1.077]  +0.001 TelemetryService.FlushEvents
[  1.080]

Result: Failed (OtherCompilationError)
Total execution time: 1.08 seconds

Solutions tried:

  1. Resetting the game icon
  2. Copying the Hostfxr.dll to the automation tools folder

How to solve this error ???

Hey there @Sumant_Bag_1992! It seems like you could have run into an esoteric issue involving how the command for Unreal Built Tool works. I remember seeing a thread where a user had also named their project TEST and was having the same issue closely related to issue UE-74975.

Do other projects build normally?

Thank you, I changed the folder name to something other than TEST, and it worked properly.