UE5 possible Bug with UDataTable preventing Packaging build Windows

After several failed builds of a new project, and looking through the log files in %AppData% I have discovered a possible bug.

const TArray<FString> UCON_DataTable::GetDTColumnTitles(UDataTable* TheDataTable)
{
	TArray<FString> ColumnNamesArray = TheDataTable->GetColumnTitles();

	return ColumnNamesArray;
}

The method returns the column titles of a datatable for debugging purposes only. However the project runs fine in the editor and logs as expected when calling this function, but I tried a package for windows, just to check after 2 weeks programming, and it wont package (or cook).

The error I get in the log is that GetColumnTitles() is not a member of UDataTable. However the documentation says it is

If I comment out the line, the package will build as expected with no errors

const TArray<FString> UCON_DataTable::GetDTColumnTitles(UDataTable* TheDataTable)
{
	TArray<FString> ColumnNamesArray; // = TheDataTable->GetColumnTitles();

	return ColumnNamesArray;
}

I don’t know a huge amount about packaging, so maybe its just me doing something wrong ?? or is this a bug??