ERROR: AutomationTool terminated with exception: System.Exception: Couldn't update resource

I’ve seen some older threads about this error but the modification suggested in them (marking a file attribute writable in cs file) appears to be implemented in the engine now.

This is trying to package a content only plugin - intended as a DLC pack.

The error occurs in the project launcher during the “Packaging content for Win64” phase.

139028-projectlauncherfailabortpoint.jpg

Callstack given is below:

Project.Package: ********** PACKAGE COMMAND STARTED **********
Program.Main: ERROR: AutomationTool terminated with exception: System.Exception: Couldn't update resource
   at ModuleResourceUpdate.SetData(Int32 ResourceId, ResourceType Type, Byte[] Data)
   at ModuleResourceUpdate.SetIcons(Int32 ResourceId, GroupIconResource GroupIcon)
   at UnrealBuildTool.BaseWindowsDeploy.PrepForUATPackageOrDeploy(FileReference ProjectFile, String ProjectName, String ProjectDirectory, String ExecutablePath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bIsDataDeploy)
   at BaseWinPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 175
   at Project.Package(ProjectParams Params, Int32 WorkingCL) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\Scripts\PackageCommand.Automation.cs:line 37
   at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 240
   at BuildCookRun.ExecuteBuild() in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 43
   at AutomationTool.BuildCommand.Execute() in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 100
   at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 561
   at AutomationTool.Automation.Process(String[] Arguments) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 531
   at AutomationTool.Program.MainProc(Object Param) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\Program.cs:line 135
   at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
   at AutomationTool.Program.Main() in D:\Projects\UnrealEngineFork\Engine\Source\Programs\AutomationTool\Program.cs:line 59
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED

I’ve attached the [log][2].

Content browser looks like:

139041-contentbrowser.jpg

And patching settings for the DLC:

.

The uplugin:

{
	"FileVersion": 3,
	"Version": 1,
	"VersionName": "1.0",
	"FriendlyName": "SpaceFlyerRun",
	"Description": "",
	"Category": "Other",
	"CreatedBy": "",
	"CreatedByURL": "",
	"DocsURL": "",
	"MarketplaceURL": "",
	"SupportURL": "",
	"CanContainContent": true,
	"IsBetaVersion": false,
	"Installed": false
}

The DLC test content is a level, skysphere and model.

Verified the same behavior on a new empty plugin and also in another project that uses vanilla 4.15 (not source, no C++ of mine at all in fact).

Perhaps content only plugins are just broken in 4.15?

check the section of Package → How would you like to package the build?.
That should be Do not package.

Well blow me down… :slight_smile:

Works!