Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 137182

Forum Post: crmsvcutil weirdness?

$
0
0

Hello - I tried generating an object model from the CRM schema using crmsvcutil:

crmsvcutil.exe /url:https://crm5stage.acme.com/GettyImagesUSInc/XRMServices/2011/Organization.svc
/out:c:\Xrm.cs /namespace:Acme.CRM.Common.Xrm /serviceContextName:XrmServiceContext
/codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization,Microsoft.Xrm.Client.CodeGeneration"
/domain:AMER /username:crm5stageinstall /password:MyPassword

After I added the new Xrm.cs to the web project, I received several compilation errors in the web app. The errors happened on a subset of references.  In all cases the errors were case-related.  For example, the code may have referenced new_someXmlData whereas the new generated property name was something like New_SomeXMLData. 

I joined the team as a maintenance dev for the CRM installation so I'm just reporting the current state of the app based on the current state of the object model that was generated from the command above. For one app the errors were all related to the Incident entity. There were some plugin errors for 2 other entities.

Have you ever experienced this behavior before?  How would you explain this?  It seems unusual because when I add entity fields they seem to be added with a certain naming convention, and I'm assuming that CRM uses an automated, consistent method to generate the object model from the schema. So do you have any idea how these discrepancies may have happened? 

I can update the error code references but it seems weird that I have to do that and I'm wondering if there are any steps I might be missing here?


Viewing all articles
Browse latest Browse all 137182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>