# Unreal can't read UFS file after packaged

**URL:** <https://forums.unrealengine.com/t/unreal-cant-read-ufs-file-after-packaged/2424376>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [March 28, 2025, 2:18pm UTC](https://forums.unrealengine.com/t/unreal-cant-read-ufs-file-after-packaged/2424376 "2025-03-28T14:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TaMi\_XAlter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaMi\_XAlter](https://forums.unrealengine.com/u/TaMi_XAlter)\
**Post date:** [March 28, 2025, 2:18pm UTC](https://forums.unrealengine.com/t/unreal-cant-read-ufs-file-after-packaged/2424376/1 "2025-03-28T14:18:14Z")

</div>

Hi!!  
I’m currently experiencing some issues while packaging my game in Windows with UE 5.3, specifically with loading (.csv) files as String File.

My current implementation for retrieving the CSV path is as follows:

```cpp
FString UCSV2MapDataComponent::TryGetCSVPath() {
    FString FilePath = FPaths::Combine(TEXT("Csv"), TEXT("Map.csv"));
    
#if WITH_EDITOR
    FString OutputString = FPaths::Combine(FPaths::ProjectContentDir(), FilePath);
#else 
    FString OutputString = FPaths::Combine(FPaths::ProjectContentDir(), FilePath);
    OutputString = FPaths::ConvertRelativePathToFull(OutputString);
#endif

    if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*OutputString)) {
       return OutputString;
    } else {
       UE_LOG(LogTemp, Warning, TEXT("CSV does not exist: %s"), *OutputString);
       return FString(); 
    }
}

```

It works in editor mode ,  
And i have added the folder to “Additional Non-Asset Directories to Copy”  
The csv file appears correctly in the content folder  
But When I package the game, I’m encountering a specific log warning:

> [2025.03.28-13.24.58:380][496]LogTemp: Warning: CSV does not exist: D:/Project/ShapeOfAsh/Package/Windows/ShapeOfAsh/Content/Csv/Map.csv

The CSV file is located at the path mentioned in the warning, but the game cannot seem to locate or read it during packaging.

And also Some critical scripts in my Player Controller and Widgets are not executing correctly when opening a new level in the packaged build, whereas everything works fine in the editor.  
but their is no any log comes out

Any debugging tips or potential solutions would be extremely helpful!

---

<div class="post-metadata">

**Author:** ![TaMi\_XAlter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaMi\_XAlter](https://forums.unrealengine.com/u/TaMi_XAlter)\
**Post date:** [March 28, 2025, 3:03pm UTC](https://forums.unrealengine.com/t/unreal-cant-read-ufs-file-after-packaged/2424376/2 "2025-03-28T15:03:55Z")

</div>

UPDATE:  
I have resolved the previous issues with my PlayerController and Widget - it was just a C++ and Blueprint conflict. However, I am still unable to read the CSV file.

---

<div class="post-metadata">

**Author:** ![TaMi\_XAlter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaMi\_XAlter](https://forums.unrealengine.com/u/TaMi_XAlter)\
**Post date:** [March 30, 2025, 5:18am UTC](https://forums.unrealengine.com/t/unreal-cant-read-ufs-file-after-packaged/2424376/3 "2025-03-30T05:18:22Z")

</div>

UPDATE:  
I just updated some of my code and followed the link below to make the function call in the level blueprint, and it works  
[FFileHelper::LoadFileToString does not work on packaged project - Development / Platform & Builds - Epic Developer Community Forums](https://forums.unrealengine.com/t/ffilehelper-loadfiletostring-does-not-work-on-packaged-project/468567/4)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 29, 2025, 5:18am UTC](https://forums.unrealengine.com/t/unreal-cant-read-ufs-file-after-packaged/2424376/4 "2025-04-29T05:18:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
