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.

 

2 Responses to Interesting Support Article Find: 947096

  1. Thank you Mitch a lot. I have similar situation and your article pointed me to right direction.

    I've deleted money attribute from Prieview form and forgot to delete _base field placed there. Then I've deleted attribute and this strange error occurred in my system.

    One more time – thank you!

  2. Sanford says:

    Hey Mitch ran into this issue. Deleted the references, but still can't publish. Can't delete either. Any suggestions?

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>