NTBuddy

A place to learn about Microsoft SharePoint and Microsoft Dynamics CRM

Unable to Create CRM Entities and How to Fix

I had a client this week that was able to add attributes to CRM without any problems. They weren't able to create new entities though which obviously is a problem. The error received was what was below.
 

>MSCRM Application Error Report:
--------------------------------------------------------------------------------------------------------
Error: Method not found: Void Microsoft.Crm.Metadata.AttributeInfo.set_Searchable(Boolean).
Error Message: Method not found: Void Microsoft.Crm.Metadata.AttributeInfo.set_Searchable(Boolean).
Source File: Not available
Line Number: Not available
Request URL: http://crm:5555/AppWebServices/SystemCustomization.asmx
Stack Trace Info:    at Microsoft.Crm.Application.WebServices.SystemCustomization.AttributeCreate.GetAttributeInfo(ParameterBag paramBag, AttributeMetadata attributeMD, DynamicMetadataCache mdChache)
>   at Microsoft.Crm.Application.WebServices.SystemCustomization.AttributeCreate.Execute(User user, ParameterBag paramBag)
>   at Microsoft.Crm.Application.WebServices.SystemCustomization.SystemCustomization.CreateAttribute(XmlNode data)
Type: Application

 The problem was found by turning server tracing on the server as the error that was being shown was to see your System Administrator which isn't all that descriptive and nothing was saved to the Application event log. Nothing had been done on the server recently from an administrative standpoint except that some of the default roles were deleted from the system and a few jscript editions to the onLoad event to a few forms.

 The  system had been running for six months without a problem and no service packs were installed recently (roll-up 1 was installed).

Once I had the error message above I started looking at the DLL's that were registered on the server. There was one file that wasn't loaded in the GAC (General Assembly Cache). The file was the MetadataService.dll file. To correct this error

  1. Logon or open a remote desktop connect (RDP) to the CRM Server
  2. Click on Start
  3. Click on Run
  4. Type in "cmd" (without quotes) and press enter
  5. In the command prompt window type in "C:" (without quotes) and press enter
  6. In the command prompt window type in "CD C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322" (without quotes) and press enter
  7. In the command prompt window type in "gacutil /i "C:\Program Files\Microsoft CRM\CRMWeb\bin\Microsoft.Crm.MetadataService.dll"" (without quotes) and press enter
  8. In the command prompt window type in "IISRESET" (without quotes) and press enter
    1. Note: Only do this during a time that the system can be down for a few minutes

 Now that the above is done you can go into Microsoft Dynamics CRM and create new entities. Test this and verify that you can.

After the above was completed I also installed Roll-up two onto the server to make certain all of the latest updates were on the server. The clients are all web based clients so no updates on the clients were necessary.

 

Posted: Sep 19 2007, 07:08 AM by NTBuddy | with no comments
Filed under: