Description

Error log is output when including spaces when packaging binary configurations.

The following log contains the string "Test Test" with spaces in the file path.

ERROR: Failed to copy D:\Projects\Test Test\BinConfTest\Intermediate\Config\Windows\BinaryConfig.ini to D:\Projects\Test Test\BinConfTest\Saved\Temp\Win64\BinConfTest\Config\BinaryConfig.ini

The BinaryConfig.ini was not created in the Intermediate folder during staging, and the failure log is output as follows.

Skip copying file D:\Projects\Test Test\BinConfTest\Intermediate\Config\Windows\BinaryConfig.ini because it doesn't exist.
Failed to copy D:\Projects\Test Test\BinConfTest\Intermediate\Config\Windows\BinaryConfig.ini to D:\Projects\Test Test\BinConfTest\Saved\Temp\Win64\BinConfTest\Config\BinaryConfig.ini, deleting, waiting 10s and retrying.
Steps to Reproduce

1. Create a blank project in a location that includes spaces in the file path and open with editor.

(ex: "c:/projects/Test Test/Blank/Blank.uproject")

2. Open the Project Launcher

3. Packaging with BinaryConfig enabled. 

-ScriptsForProject="C:/Projects/Test Test/Blank/Blank.uproject" BuildCookRun -project="C:/Projects/Test Test/Blank/Blank.uproject" -noP4 -clientconfig=Development -serverconfig=Development -nocompileeditor -installed -unrealexe=C:\Launcher\UE_5.0\Engine\Binaries\Win64\UnrealEditor-Cmd.exe -utf8output -platform=Win64 -build -cook -map= -CookCultures=en -unversionedcookedcontent -ddc=InstalledDerivedDataBackendGraph -pak -iostore -makebinaryconfig -compressed -stage -package -cmdline=" -Messaging" -addcmdline="-SessionId=*** -SessionOwner='***' -SessionName='***' " -archive -archivedirectory=C:/Projects/Archive/

Then, Logs are outputting that packaging succeeds but copying of binary configurations at staging fails.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-156464 in the post.

1
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - Automation Tool
Affects Versions5.0
Target Fix5.1
Fix Commit18845601
Release Commit21966112
CreatedJun 13, 2022
ResolvedAug 15, 2022
UpdatedSep 14, 2022
View Jira Issue