How to resolve this Error while packaging?

I am having this error every time I am packaging my files. how much I understand is that its some path error but I don’t know how to solve it.
this is the error message: UATHelper: Packaging (Windows (64-bit)): ERROR: System.ArgumentException: Staged filesystem references cannot end with path separators (MultiplayerShootout/Content/).

UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: DDC Resource Stats
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: =======================================================================================================
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: Asset Type                          Total Time (Sec)  GameThread Time (Sec)  Assets Built  MB Processed
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: ----------------------------------  ----------------  ---------------------  ------------  ------------
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: MaterialShader                                  0.17                   0.17             0          8.83
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: Texture (Inline)                                0.08                   0.08             0         33.97
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: Texture (Streaming)                             0.06                   0.00             0         23.32
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: StaticMesh                                      0.04                   0.04             0          6.62
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: PhysX (BodySetup)                               0.02                   0.02             0          3.81
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: SoundWave                                       0.02                   0.02             0          2.75
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: GlobalShader                                    0.02                   0.02             0          2.63
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: DistanceField                                   0.01                   0.01             0          2.40
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: NavCollision                                    0.00                   0.00             0          0.06
UATHelper: Packaging (Windows (64-bit)):   LogCookCommandlet: Display: SkeletalMesh                                    0.00                   0.00             0          0.68
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display:
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: -----------------------------------
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: LogModuleManager: Warning: No filename provided for module OnlineSubsystemSteam
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: LogModuleManager: Warning: ModuleManager: Unable to load module 'OnlineSubsystemSteam' because the file 'D:/Epic games/UE_4.19/Engine/Binaries/Win64/' was not found.
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: LogBlueprint: Warning: [Compiler BP_Projectile] Set Physics Angular Velocity  is deprecated; Use SetPhysicsAngularVelocityInDegrees instead
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: LogBlueprint: Warning: [Compiler BP_Projectile] [0007.46] Compile of BP_Projectile successful, but with 1 Warning(s) [in 86 ms] (/Game/Blueprints/BP_Projectile.BP_Projectile)
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display:
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display: Success - 0 error(s), 4 warning(s)
UATHelper: Packaging (Windows (64-bit)):   LogInit: Display:
UATHelper: Packaging (Windows (64-bit)):   
UATHelper: Packaging (Windows (64-bit)):   Execution of commandlet took:  3.34 seconds
UATHelper: Packaging (Windows (64-bit)):   LogOnline: Display: OSS: FOnlineSubsystemNull::Shutdown()
UATHelper: Packaging (Windows (64-bit)):   LogOnline: Display: OSS: FOnlineAsyncTaskManager::Stop() ActiveTask:0000000000000000 Tasks[0/0]
UATHelper: Packaging (Windows (64-bit)):   LogOnline: Display: OSS: FOnlineAsyncTaskManager::Exit() started
UATHelper: Packaging (Windows (64-bit)):   LogOnline: Display: OSS: FOnlineAsyncTaskManager::Exit() finished
UATHelper: Packaging (Windows (64-bit)): Took 9.4716883s to run UE4Editor-Cmd.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (Windows (64-bit)): ********** STAGE COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Creating Staging Manifest...
UATHelper: Packaging (Windows (64-bit)): Copying AppLocal dependencies from D:\Epic games\UE_4.19\Engine\Binaries\ThirdParty\AppLocalDependencies\Win64 to Engine/Binaries/Win64
UATHelper: Packaging (Windows (64-bit)): ERROR: System.ArgumentException: Staged filesystem references cannot end with path separators (MultiplayerShootout/Content/).
UATHelper: Packaging (Windows (64-bit)):           at StagedFileSystemReference..ctor(String InName)
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.StageAdditionalDirectoriesFromConfig(DeploymentContext SC, DirectoryReference ProjectContentRoot, StagedDirectoryReference StageContentRoot, ConfigHierarchy PlatformGameConfig, Boolean bUFS, String ConfigKeyName)
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\aniru\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+games+UE_4.19\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

I am having this error irrespective of what project file use. Please help me with the error. if you need more details please feel free to ask I will update.

1 Like

I had the same problem when packaging MultiplayerShootout with 4.19.

  • Go to Edit → Project Settings, then Packaging.
  • Expand the “Packaging” section.
  • Delete the “Additional Non-Asset Directories to Package (1 Array Elements)”, which contains an empty string for some reason.

After doing that, packaging succeeds for me.

11 Likes

Thanks ericwa! It is quite confuses why 419 make this default setting.

This is also the case in 4.20. I’ve filed a bug report.

Thanks, you are a life saver!

Thanks for the share, worked for me in 5.0.3

Thank you so much.
Apparently this is still a problem in 5.4.2