in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

Error: Entity Id is Invalid when viewing Business Data Catalog entity

Recently, I was troubleshooting and Enterprise Search / BDC issue and I encountered the following error when trying to view the entity page of a given LOB system.

Entity id is invalid

As usual, this error was completely and totally useless.  I really needed to be able to view the details of my entity to ensure proper configuration and security settings, so I decided to pursue an answer.  After looking at the 12 hive logs as well as the event log, I found the following error.

Runtime Error in method ViewBDCEntity.OnLoad of type System.UriFormatException.The exception was System.UriFormatException: Invalid URI: The hostname could not be parsed.

In this particular application definition, I am appending a relative URL onto a server name.  So in this case, my action url looks like http://server{0} where my Action Paramter would contain something like /Sites/SomeSubSite.  SharePoint does not like this one bit.  Although, the search crawler has no issue with it and you will be able to link to sites fine, this causes the BDC entity page on your SSP to completely die.

How did I resolve it?  I tried just adding a slash after the server name (i.e.: http://server/{0}).  This works, but you do end up with two slashes in your URL.  I’m not sure of a better way to fix it for now, so it will have to do for now.

Follow me on twitter.

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2015 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems