Data Table And Structs - Get Data Table Column As String - Empty Result Array Issue

Hey guys, was stuck on this for an hour, so thought might help someone since it’s a weird bug.

Only Tested On Unreal Engine 4.27.x

Problem: The BP function ‘Get Data Table Column As String’ returns an empty array in packaged builds but returns fine in the PIE (editor).

The Fix: Simply remove any spaces from the data table column names (or from the field names of structs they are based on).

Due to some bug, when packaged (only tested on android), any column that has spaces in it won’t work in this function and would return an empty array of strings. The worst thing is that it might go unnoticed very easily and your game functionality won’t be as expected.

1 Like

Hey, thanks for this - really helped me troubleshoot a similar issue in UE5.

I’d tried deleting the spaces as you suggest but that initially did nothing. However, I’d included punctuation (a colon : ) at the end of the column names which was fine in PIE but not in a packaged build. Removing them now meant that the string array was returning correctly.

Was a silly error that I should’ve realized, posting incase anyone else gets thrown by something similar too :slight_smile:

1 Like

Thank you!!! This just solved my same problem in 5.4.4 as well.