Interesting Support Article Find: 947096

On November 16, 2009, in Customization, Dynamics CRM, by Mitch Milam

When trying to export and/or publish, I ran into this issue this week:

Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace:
[NullReferenceException: Object reference not set to an instance of an object.] at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoaderAllLanguages.LoadMetadataLabel(Int32 entityType, String attributeName, ExecutionContext context) at Microsoft.Crm.ObjectModel.OrganizationUIService.LabelLoader.LoadCellLabel(Guid cellObjectId, String cellObjectColumnName, Int32 objectType, String attributeName, ExecutionContext context) at …..

After doing some digging, I found this article:

Error message when you export or delete entities in Microsoft Dynamics CRM 4.0: "An unhandled exception occurred during the execution of the current web request"

 

For some reason, we have an issue where something has been deleted from CRM but a reference it still exists somewhere: on the form, a view, etc.  Maybe you deleted the item on purpose or maybe you are moving customizations between servers and you didn’t get all of the referenced entities when you exported.

It’s a little hard to track down sometimes, but you can see things like this on your form:

image

Or you’ll see the yellow warning symbol on a view column within the View Designer.

Good luck.