Description

For some reason a datatable created in the editor, using a row struct built in c++, is corrupted after re-opening editor. Its row struct property is set to none.

This is a regression.

Steps to Reproduce
  1. Create Blank C++ Project
  2. in Visual Studio open your project header file
    • if your project name is "MyProject" the header file would be MyProject.h located in the Source/MyProject folder
  3. add following code to the header file:
    #include "Engine/DataTable.h"
    #include "MyProject.generated.h" //replace "MyProject" with the name of your project
    USTRUCT(BlueprintType)
    struct FMyStruct : public FTableRowBase
    {
    	GENERATED_BODY()
    
    public:
    	UPROPERTY(EditAnywhere)
    		int32 num1;
    };
    
  4. save
  5. In Editor click compile button
  6. Right Click in Content Browser
  7. Miscellaneous>DataTable
  8. find "MyStruct" in the dropdown list and create a new DataTable
  9. Double click the DataTable to open
  10. Click Add button a few times to add some data to the table
  11. Input data into each row
  12. Save Table and close
  13. Close Editor
  14. Reopen project
  15. Double click the DataTable to open

Expected Result: The Data Table opens and shows the data that was entered into it earlier

Actual Result: You are prompted with a message and if you click yes, the data table will open with no data in it. See screenshot for prompt.

The following Data Tables are missing their row structure and will not be editable.

    * NewDataTable (Row Structure: MyStruct)

Do you want to open these data tables?

Have Comments or More Details?

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

5
Login to Vote

Cannot Reproduce
ComponentUE - Editor
Affects Versions5.0.1
Target Fix5.0.3
Fix Commit20064010
Release Commit20064010
CreatedMay 13, 2022
ResolvedMay 25, 2022
UpdatedJan 25, 2023
View Jira Issue