PackagingResults: Error: Unknown Error

Hello,

I get this error “PackagingResults: Error: Unknown Error”
But this time I don’t see any additional information in the logs about the blueprint caused it.

I have started to get this error after updating the engine from 5.3 to 5.4. It worked fine on the 5.3 version.

Please let me know where should I dig?

Please look again for an error further up in the packaging log. This could be anything from a faulty blueprint or C++ class to linker errors, or plugins that cannot be compiled on the desired target.

Would be helpful if you would provide us a copy of the packaging log.

Hello @OrbitalZones,
Thank you for your reply. Usually I search for “error” in the log and find it with the reffering on a certain blueprint. Now, there is no “error” line in the log. Here is the log:

Log started at 09/24/2024 00:22:17 (2024-09-23T18:22:17Z)
No config file at C:\ProgramData\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
No config file at C:\Users\Alex\AppData\Local\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
No config file at C:\Users\Alex\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Configuration will be read from:
  C:\Users\Alex\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Log file: C:\Users\Alex\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Game001-Win64-Shipping.txt

Setting temp directory to 'C:\Users\Alex\AppData\Local\Temp\UnrealBuildTool\6e23c306'
    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.18362.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.18362.0 at C:\Program Files (x86)\Windows Kits\10
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.20348.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.20348.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
Win64 Installed SDK(s): MinVersion_Sdk=10.0.18362.0, MaxVersion_Sdk=10.9.99999.0, CurrentVersion_Sdk=10.0.19041.0, Version_AutoSdk=10.0.19041.0, CurrentVersion_AutoSdk=
        Registering build platform: Win64 - buildable: True
    Registering build platform: UnrealBuildTool.VisionOSPlatformFactory
Command line: "C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Game001 Win64 Shipping "-Project=C:\Users\Alex\Documents\Unreal Projects\Game001\Game001.uproject" "-Manifest=C:\Users\Alex\Documents\Unreal Projects\Game001\Intermediate\Build\Manifest.xml" "-remoteini=C:\Users\Alex\Documents\Unreal Projects\Game001" -skipdeploy "-log=C:\Users\Alex\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Game001-Win64-Shipping.txt"
Ignoring plugin 'ModelingToolsEditorMode' for platform/configuration
Ignoring plugin 'GraphNUnrealPlugin' for platform/configuration
Ignoring plugin 'GitSourceControl' for platform/configuration
Ignoring plugin 'PythonScriptPlugin' for platform/configuration
Ignoring plugin 'XCodeSourceCodeAccess' due to unsupported platform in plugin descriptor
Ignoring plugin 'ContentBrowserFileDataSource' for platform/configuration
Ignoring plugin 'MeshModelingToolset' for platform/configuration
Ignoring plugin 'MeshModelingToolsetExp' for platform/configuration
Ignoring plugin 'PlanarCut' for platform/configuration
Ignoring plugin 'MeshModelingToolsetExp' for platform/configuration
Ignoring plugin 'BaseCharacterFXEditor' for platform/configuration
Ignoring plugin 'ContentBrowserFileDataSource' for platform/configuration
Ignoring plugin 'MediaPlayerEditor' for platform/configuration
Ignoring plugin 'MediaPlayerEditor' for platform/configuration
Ignoring plugin 'MeshModelingToolset' for platform/configuration
Ignoring plugin 'OnlineSubsystemGooglePlay' due to unsupported platform in plugin descriptor
Ignoring plugin 'OnlineSubsystemIOS' due to unsupported platform in plugin descriptor
Ignoring plugin 'PythonScriptPlugin' for platform/configuration
Ignoring plugin 'XCodeSourceCodeAccess' due to unsupported platform in plugin descriptor
Ignoring plugin 'ContentBrowserFileDataSource' for platform/configuration
Ignoring plugin 'MeshModelingToolset' for platform/configuration
Ignoring plugin 'MeshModelingToolsetExp' for platform/configuration
Ignoring plugin 'PlanarCut' for platform/configuration
Ignoring plugin 'MeshModelingToolsetExp' for platform/configuration
Ignoring plugin 'BaseCharacterFXEditor' for platform/configuration
Ignoring plugin 'ContentBrowserFileDataSource' for platform/configuration
Ignoring plugin 'MediaPlayerEditor' for platform/configuration
Ignoring plugin 'MediaPlayerEditor' for platform/configuration
Ignoring plugin 'MeshModelingToolset' for platform/configuration
Ignoring plugin 'OnlineSubsystemGooglePlay' due to unsupported platform in plugin descriptor
Ignoring plugin 'OnlineSubsystemIOS' due to unsupported platform in plugin descriptor
Existing makefile is older than Build.version, ignoring it
Creating makefile for Game001 (Build.version is newer)
Skipping C:\Program Files\Epic Games\UE_5.4\Engine\Intermediate\Build\BuildRules\UE5Rules.dll: File is installed
Skipping C:\Program Files\Epic Games\UE_5.4\Engine\Intermediate\Build\BuildRules\UE5ProgramRules.dll: File is installed
Found VisualStudio2022 installation: C:\Program Files\Microsoft Visual Studio\2022\Community (Product=Microsoft.VisualStudio.Product.Community, Version=17.8.34525.116)
Found Visual Studio toolchain: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130 (Family=14.38.33130, FamilyRank=0, Version=14.38.33135, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64, Error=False, Redist=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.38.33135)
Using EngineIncludeOrderVersion.Latest for target Game001.Target.cs
Warning: [Upgrade]
Warning: [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:
Warning: [Upgrade]     CppStandard = CppStandardVersion.Default        => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).
Warning: [Upgrade]     WindowsPlatform.bStrictConformanceMode = true   => Updates MSVC strict conformance mode to true (Previously: false).
Warning: [Upgrade]     bValidateFormatStrings = true                   => Enables compile-time validation of strings+args passed to UE_LOG. (Previously: false).
Warning: [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V5;' in Game001.Target.cs, and explicitly overriding settings that differ from the new defaults.
Warning: [Upgrade]
Total execution time: 1.19 seconds
Game001 modifies the values of properties: [ bStrictConformanceMode ]. This is not allowed, as Game001 has build products in common with UnrealGame.
Remove the modified setting, change Game001 to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the Game001Target constructor, or set bOverrideBuildEnvironment = true to force this setting on.
BuildException: Game001 modifies the values of properties: [ bStrictConformanceMode ]. This is not allowed, as Game001 has build products in common with UnrealGame.
Remove the modified setting, change Game001 to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the Game001Target constructor, or set bOverrideBuildEnvironment = true to force this setting on.
   at UnrealBuildTool.UEBuildTarget.ValidateSharedEnvironment(RulesAssembly RulesAssembly, String ThisTargetName, CommandLineArguments Arguments, TargetRules ThisRules, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1407
   at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, UnrealIntermediateEnvironment IntermediateEnvironment, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1320
   at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, BuildConfiguration BuildConfiguration, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1226
   at UnrealBuildTool.BuildMode.CreateMakefileAsync(BuildConfiguration BuildConfiguration, TargetDescriptor TargetDescriptor, ISourceFileWorkingSet WorkingSet, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 1114
   at UnrealBuildTool.BuildMode.BuildAsync(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger, Boolean bSkipPreBuildTargets) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 396
   at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 252
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 660
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:

[ 0.000]
[ 0.000](+1.234) <unknown>
[ 1.234]

I tried to enter “bOverrideBuildEnvironment = true” in the command line, but it hasn’t helped.

To be honest, I don’t know what is causing that conflict between the two build environments. You should try and add this entry to your target.cs file and see if it works:

BuildEnvironment = TargetBuildEnvironment.Unique;

Cool, thank you. I’ll try it tomorrow morning after sleep and update this page with the result.

Have a great day @OrbitalZones

Nah, I’ve just added it and now it says:

C:\Users\Alex\Documents\Unreal Projects\Game001\Intermediate\Source\Game001.Target.cs(2,1): error CS8805: Program using top-level statements must be an executable.

C:\Users\Alex\Documents\Unreal Projects\Game001\Intermediate\Source\Game001.Target.cs(2,1): error CS0103: The name 'BuildEnvironment' does not exist in the current context

So your target.cs file in the projectfolder/source directory is looking like that now?
Please delete/rename the intermediate folder and try to recompile.

using UnrealBuildTool;
using System.Collections.Generic;

public class Game001Target : TargetRules
{
    public Game001Target(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Game;
        DefaultBuildSettings = BuildSettingsVersion.V5;
        IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_4;
        BuildEnvironment = TargetBuildEnvironment.Unique;

        ExtraModuleNames.AddRange(new string[] { "Game001" });
    }
}

Hello @OrbitalZones
For some reason renaming of the folder has helped, but now I have other errors. So, I’ll probably update you later after resolving them.
Many thanks for the advice man.