Datatable not packaging

Hey all

Been attempting to package a game with several data tables recently but i’m having an issue with them in the packaged version. All is fine with the editor version and the packaging is smooth but when I try to read the anything from the data table, it contains no elements. From my research I’ve tried using Full Rebuild in packaging, reimported the data (from CSV file), Cooking Everything in Project content directory, and made sure Strip from Client Builds was false with nothing resolving the issue. This is the only data table I can confirm is an issue, though my suspicion is surrounding the fact it is the only data table that is using a CSV File but I maybe mistaken.

If anyone has a solution to this please let me know.

Hey!

I found this answer for me and I’m testing it, it’s a very simple solution if it works. I placed the “File path” of the Data Tables on the “Additional Non-Asset Directories to Package”:

Here’s the link for the answer:

1 Like

Thank you. I have same problum.

Hi,

I am having the same issue, I followed the instruction above to set the datatable.uasset in the “Additional Non-Asset Directories to Package” but it was not successful.

My second attempt as it mentioned in the thread to do a reference, I did in my thirdperson template at EventBeginPlay set the Datatable as variable and try to print rows. At begin play, it does print the row names when calling, however, in my attempt to compare the actor name with the datatable it still stands unresponsive.
Image_Debug


.

What I noticed is that is the packaging log it output this following statement:

[3861.40][838]UATHelper: Packaging (Windows): Unable to find directory "H:\3D_City_Model\2_PROJECTS\2024\2413_PIA\UNREAL\COP_012_240725\Content\02_BP\BLDG_TABLE\DT_BLDG_NAME.uasset" for staging, retrieved from "/Script/UnrealEd.ProjectPackagingSettings" "DirectoriesToAlwaysStageAsUFS"
[3861.40][838]UATHelper: Packaging (Windows): Unable to find directory "H:\3D_City_Model\2_PROJECTS\2024\2413_PIA\UNREAL\COP_012_240725\Content\02_BP\BLDG_TABLE\DT_BLDG_NAME.uasset" for staging, retrieved from "/Script/UnrealEd.ProjectPackagingSettings" "DirectoriesToAlwaysStageAsNonUFS"
[5931.93][526]UATHelper: Packaging (Windows): Unable to find directory "H:\3D_City_Model\2_PROJECTS\2024\2413_PIA\UNREAL\COP_012_240725\Content\02_BP\BLDG_TABLE\DT_BLDG_NAME.uasset" for staging, retrieved from "/Script/UnrealEd.ProjectPackagingSettings" "DirectoriesToAlwaysStageAsUFS"
[5931.94][526]UATHelper: Packaging (Windows): Unable to find directory "H:\3D_City_Model\2_PROJECTS\2024\2413_PIA\UNREAL\COP_012_240725\Content\02_BP\BLDG_TABLE\DT_BLDG_NAME.uasset" for staging, retrieved from "/Script/UnrealEd.ProjectPackagingSettings" "DirectoriesToAlwaysStageAsUFS"
[5931.94][526]UATHelper: Packaging (Windows): Unable to find directory "H:\3D_City_Model\2_PROJECTS\2024\2413_PIA\UNREAL\COP_012_240725\Content\02_BP\BLDG_TABLE\DT_BLDG_NAME.uasset" for staging, retrieved from "/Script/UnrealEd.ProjectPackagingSettings" "DirectoriesToAlwaysStageAsNonUFS"

The table is well loaded at begin play in the packaged game, if opening the debugger I can find the table name. However its rows are empty, I believe as they do not print anything see images.

I found a solution, below are the two step I did in my iterations:

  1. Set the data table as variable at eventBeginPlay so you unsure it is loaded when game start.

  2. Secondly, in the package project settings, ensure you have the checkbox full rebuild selected on. (see image)

Hope it will help newcomers to this issue :slight_smile: