SharePoint listdata.svc Returns Error – FIXED

With SharePoint 2016 and 2013:
If you try to access listdata.svc you receive an error This page can’t be displayed or Sorry, something went wrong.
SharePoint Designer you try to open Lists and Libraries and receive a message of There are no items to show in this view.

The root problem is that the Farm is missing a feature. In SPD, if you click on All Files, Lists, then click on each list and click the Preview in Browser button (ribbon). You will sooner or later find the problem list. From there, you can remove the list or find the problem feature and unhook it.

Basic script to find the problem list in SharePoint 2013 and 2013:

function Get-WebPage([string]$url)
	$pageContents = ""
		$wc = new-object net.webclient;
		$wc.credentials = [System.Net.CredentialCache]::DefaultCredentials;
		$pageContents = $wc.DownloadString($url);
    return $pageContents;

$webX = Get-SPWeb "https://yourSpWebUrl"

foreach($list in $webX.Lists)
	$listUrl = $list.ParentWeb.Url + "/" + $list.RootFolder.Url
	$xo = Get-WebPage -url $listUrl 

	if($xo -like "*Sorry, something went wrong*")
		Write-Host $listUrl