locked
Sandbox has some extra fields in file generated by CrmSvcUtil.exe RRS feed

  • Question

  • Hi,

    I have a sandbox instance which is a copy of production. However, when I use a customization comparison tool, I can see that it says that there are extra fields in the sandbox. However, these fields are indeed in both production and the sandbox. Then when I generate Xrm.cs for the sandbox using the CrmSvcUtil.exe tool, there are a lot of discrepancies in the sandbox file when compared to the existing production version, example below. How could this happen? I didn't update the field below.

    Are differences such as this one outlined below something to be concerned about? There are extra attributes in the sandbox version. Could I just manually copy over the code for the new fields which I have added?

    THANKS!!

    SANDBOX
    /// <summary>
    /// Type the account's website URL to get quick details about the company profile.
    /// </summary>
    [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")]
    public string WebSiteURL
    {
    	get
    	{
    		return this.GetAttributeValue<string>("websiteurl");
    	}
    	set
    	{
    		this.OnPropertyChanging("WebSiteURL");
    		this.SetAttributeValue("websiteurl", value);
    		this.OnPropertyChanged("WebSiteURL");
    	}
    }
    		
    		
    EXISTING PRODUCTION VERSION	
    /// <summary>
    /// Type the account's website URL to get quick details about the company profile.
    /// </summary>
    [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")]
    public string WebSiteURL
    {
    	get
    	{
    		return this.GetAttributeValue<string>("websiteurl");
    	}
    	set
    	{
    		this.SetAttributeValue<string>("WebSiteURL", "websiteurl", value);
    	}
    }


    • Edited by CRMDev2016 Wednesday, October 19, 2016 4:43 PM
    Wednesday, October 19, 2016 4:42 PM