Error trying to store a UDataTable in a TMap as value

You cannot store any UObject in a TMap by value, just as you cannot construct a UObject directly on the stack. You need to change your map definition to:


 TMap< FString, UDataTable* > 

and modify your code accordingly.