DataAsset not being found after starting the editor or recompiling code.

I am using 5.4.4

I have been using a Primary Data Asset to make items. I have had to make a workaround by putting a boolean in them that I can toggle on and off since this is the only way to make my Data Assets get registered.

After every restart or recompile I have to flip it again so they can be used.

Anyone know what might be causing this? I have spent so much time trying to debug the problem, even making a new project in 5.5 to see if that changes anything, even with a controlled setup it still created the exact same problem.

const FPrimaryAssetType AssetType(AssetTypeName);
	TArray<FPrimaryAssetId> AssetIds;
	AssetManager->GetPrimaryAssetIdList(AssetType, AssetIds);
	
	UE_LOG(LogTemp, Log, TEXT("Asset IDs Found: %d"), AssetIds.Num());
	for (const auto& Id : AssetIds) {
		UE_LOG(LogTemp, Log, TEXT("Asset ID: %s"), *Id.ToString());
	}
}

Images: