ERROR: System.ArgumentException: Empty path fragment in staged filesystem reference

After the 4.18 update I’m getting this annoying error when packaging. Did anyone else run into this problem?

UATHelper: Packaging (Windows (64-bit)): ERROR: System.ArgumentException: Empty path fragment in staged filesystem reference (HideAndGoBoom/Content/)
UATHelper: Packaging (Windows (64-bit)):           at StagedFileSystemReference..ctor(String Name)
UATHelper: Packaging (Windows (64-bit)):           at StagedDirectoryReference..ctor(String Name)
UATHelper: Packaging (Windows (64-bit)):           at StagedDirectoryReference.Combine(StagedDirectoryReference BaseDir, String[] Fragments)
UATHelper: Packaging (Windows (64-bit)):           at Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC)
UATHelper: Packaging (Windows (64-bit)):           at Project.CopyBuildToStagingDirectory(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):           at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):           at BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)):           at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)):           at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands)
UATHelper: Packaging (Windows (64-bit)):           at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)):           at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)):           at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)):           at AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)):        (see C:\Users\raspe\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE4+UE_4.18\UAT_Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

Dunno if this helps!? I just had this issue after an upgrade to 4.17 and it turned out to be a blank array entry in my Project Settings > Packaging > ‘Directories to never cook’. The error disappeared and built successfully as soon as I deleted the entry.

You are a legend, I had one in “additional asset directories to cook”.

How on earth did you find that!? I spent days trying to figure out what was going on. Thanks!!!

Silly me quickly checked for Directories Never To Cook a few days ago, but skipped looking at “Additional Asset Directories to Cook.” My problem was also a blank array entry in “Additional Asset Directories to Cook” under Project Settings > Packaging.

haha pure luck really! (and a couple of hours of google searches and trial and error!) Glad it helped :slight_smile:

Hi, I have add a value “Version” in Additional No-Asset Directories to stage package,but it looks like I meet same problem.What should I do?