Data Tables = Unable to Open Project at all (perma crash)

Greetings.

I am unable to launch my Unreal project anymore. This is what happened.

  • Project compiled and ran just fine. No errors.

  • Imported a .csv using DataTables just fine. Created the proper structure.

  • Added the following code:

      UDataTable* ImportTable;
    
      static ConstructorHelpers::FObjectFinder<UDataTable>
      	ImportTable_BP(TEXT("DataTable'/Content/CoreData/test.test'"));
      ImportTable= ImportTable_BP.Object;
    
  • Recompiled. Everything is fine.

  • Added the following code directly under the constructor:

    int32 maxItems = ImportTable->GetTableData().Num();

  • This caused a crash. Commented out the above code and compiled in Visual Studio 2015.

  • Attempted to open up the project in Unreal and received the following:

Access violation - code c0000005 (first/second chance not available)
UE4Editor_Engine!UDataTable::GetColumnTitles() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\datatable.cpp:465]
UE4Editor_Engine!UDataTable::GetTableData() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.10\engine\source\runtime\engine\private\datatable.cpp:493]

  • Commented out all references to the DataTables. Attempted to compile and received:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ““C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat” … Win64 Development “…” -rocket -waitmutex” exited with code -1.

  • Did clean rebuilds, regenerated project files, recompiled, etc. Still receive the same errors.

As it stands right now, I literally cannot open my project without it crashing, even though there is no reference in my code at all to datatables. I still receive access violations. At this point, I really just want to get my project back.

What is going on here? Any help is appreciated. Thank you.

I found a partial solution to VC++ returning the MSB3073 error.

Basically, I went to my project folder and switched my project from 4.10 to 4.9. I then attempted to open the project in the Unreal Editor. Unreal prompted me to generate new .dlls, which I did. At the end of this process, I received another error - “Unable to compile.”

I then switched the project back to 4.10 and ran the project in Unreal editor again and it worked. I was then able to recompile in Unreal just fine.

This doesn’t address the original issue with datatables, but at least I can code again. The MSB3073 error is awful, especially when it returns -1 as there is really no information on google about it.