When I try to rebuild the link database I get the following error from the dialog:
Job started: RebuildLinkDatabasesIndex|System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Sitecore.XA.Foundation.Multisite.LinkManagers.LocalizableLinkProvider.GetLocalizedUrl(Item item, String url, UrlOptions options)
at Sitecore.XA.Foundation.Multisite.LinkManagers.LocalizableLinkProvider.GetItemUrl(Item item, UrlOptions options)
at Sitecore.Xml.Xsl.LinkUrl.GetInternalUrl(Database database, String url, String itemID, String anchor, String queryString)
at Sitecore.Xml.Xsl.LinkUrl.GetUrl(XmlField field, Database database)
at Sitecore.Data.Fields.LinkField.get_InternalPath()
at Sitecore.Data.Fields.LinkField.ValidateLinks(LinksValidationResult result)
at Sitecore.Links.ItemLinks.AddLinks(Field field, List`1 links, ItemLinkState linkState)
at Sitecore.Links.ItemLinks.GetLinks(ItemLinkState linkState, Boolean allVersions, Boolean includeStandardValuesLinks)
at Sitecore.Links.ItemLinks.GetAllLinks(Boolean allVersions)
at Sitecore.Links.LinkDatabase.UpdateReferences(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.RebuildItem(Item item)
at Sitecore.Links.LinkDatabase.Rebuild(Database database)
at Sitecore.Shell.Applications.Dialogs.RebuildLinkDatabase.RebuildLinkDatabaseForm.Builder.Build()|Job ended: RebuildLinkDatabasesIndex (units processed: )
I'm using Sitecore 8.2 with SXA. Possibly related; when I view the broken links report many of the broken links show a blank field. Presumably because the content was installed from a package including content and templates which had changed. So those blanks probably relate to removed template fields. It is possible there are orphaned field items lying around, but I'm not sure how I would delete those.
Clean Up Database
task before runningRebuild Link Database
task?Job started: RebuildLinkDatabasesIndex|System.UriFormatException: Invalid URI: The hostname could not be parsed.
Sitecore.XA.Foundation.Multisite.LinkManagers.LocalizableLinkProvider