Error Saving Record - TargetAttributeValidationPlugin - CRM 2011

Hello,
I'm having a problem when I save a new record for the quotedetail and this record is opened via "Xrm.Utility.openEntityForm("quotedetail", null, parameters);".
When it opens shows the entity with the parameters loaded correctly, but when I try to save it, it gives this erros:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>An unexpected error occurred.</Message>
  <Timestamp>2012-11-13T12:20:41.3799055Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.TargetAttributeValidationPlugin]
[c754fdb4-ef2f-4f2c-b49f-186214ab4dcd: TargetAttributeValidationPlugin]
</TraceText>
</OrganizationServiceFault>
This error doesn't occur if I'm saving the record opened normally and inserted the information.
I've validated all the parameters passed (if the field exists and if are well written).
I've done some tracing on the server and the error I got was this:
The Web Service plug-in failed in OrganizationId: ccfb7519-dedf-4f88-8a1f-32da85d2e277; SdkMessageProcessingStepId: c754fdb4-ef2f-4f2c-b49f-186214ab4dcd; EntityName: quotedetail; Stage: 5; MessageName: Create; AssemblyName: Microsoft.Crm.ObjectModel.TargetAttributeValidationPlugin,
Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.ObjectModel.TargetAttributeValidationPlugin; Exception: Unhandled Exception: System.Collections.Generic.KeyNotFoundException:
The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Microsoft.Crm.ObjectModel.DefaultCurrency.InheritCurrencyFromParent(Entity entity, BusinessEntity entityPreImage, EntityMetadata entityMetadata, String transactionCurrencyEntityName, String transactionCurrencyFieldName, ExecutionContext context,
Boolean isCreateOperation, Entity parentEntityInContext)
   at Microsoft.Crm.ObjectModel.DefaultCurrency.Execute(EntityDataInformation entityDataInformation)
   at Microsoft.Crm.ObjectModel.DoubleAttributeValidator.GetRecordCurrency(MoneyAttributeMetadata moneyMetadata, Entity entity, ExecutionContext platformContext)
   at Microsoft.Crm.ObjectModel.DoubleAttributeValidator.UpdatePrecision(Nullable`1 decimalValue, Nullable`1 floatValue, Money moneyValue, DoubleAttributeMetadata doubleMetadata, Entity entity, String propertyName, ExecutionContext platformContext)
   at Microsoft.Crm.ObjectModel.DoubleAttributeValidator.Validate(Entity entity, KeyValuePair`2 property, AttributeMetadata attributeMetadata, ExecutionContext platformContext)
   at Microsoft.Crm.ObjectModel.AttributeValidationPlugin.ValidateAttributeValue(Entity entity, KeyValuePair`2 property, AttributeMetadata attributeMetadata, ExecutionContext context, Entity parentEntity)
   at Microsoft.Crm.ObjectModel.AttributeValidationPlugin.PerformValidation(Entity entity, EntityMetadata entityMetadata, ExecutionContext platformContext, Entity parentEntity)
   at Microsoft.Crm.ObjectModel.AttributeValidationPlugin.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context).
I have plugins that run on Pre-Operation (1) and Post-Operation (2) Sync of the entity, and I have Contains validations for the key's I'm trying to access, although the error that gives when I try to save it is related to this: Microsoft.Crm.ObjectModel.TargetAttributeValidationPlugin
- that must be an internal plugin
On the PluginRegistrationTool can't find this SdkMessageProcessingStepId: c754fdb4-ef2f-4f2c-b49f-186214ab4dcd.
Can anyone help on this?
Cheers,
Miguel
Miguel Beja

Hello,
Came across that very same issue today only with Opportunity Products. In my case specifically a required field was not being passed in the request and the error kept coming up.
On this entities it's common that internal plugins use certain fields for different operations so my best guess is you're probably missing one or two parameters in your message request.
You're correct that it is an internal plugin and you won't be able to find it via Plugin Registration tool. It's responsible to validate wether all the required fields are passed for the system entities.
Few exampels of similar problems: 
Decimal limitations
Limit characters

Similar Messages

  • "ERROR SAVING RECORD" Message generated...

    Hi Everyone,
    I have a minor error with an Alert I made. I have an alert
    linked to both the Pre-Insert and Pre-Update Triggers at the
    Block level of my form.
    This alert fires when the Volume entered in the record is >50.
    It asks "Are you are sure the Volume should be larger than 50?"
    and has a Yes and No button on it. When you hit Yes, it saves
    and that is correct. When you press No it doesn't save, and
    that is fine, BUT after you press No, a window with a red X
    comes up and says in all capitals "ERROR SAVING RECORD". How
    can I get rid of this?
    Someone please help me out, I am stumped!
    Thanks in advance.
    Mike

    Didn't you forget to write in your triggers:
    IF alert_button=ALERT_BUTTON2 THEN
    RAISE Form_Trigger_Failure;
    END IF;

  • Export Records from CRM 2011 to Sharepoint 2013

    We currently have CRM 2011 and are about to install Sharepoint 2013.
    We are wondering is it possible to export records from Entities in CRM 2011 to a folder in Sharepoint 2013?
    If this is possible can it be automated to run on a schedule?
    Any help on this is greatly appreciated.
    Thanks.

    You can use a custom timer job in SharePoint 2013 to be scheduled to run. This job could interact with your CRM system to import the entities to a folder or List in SharePoint. Andrew has a link here:
    http://www.andrewconnell.com/Creating-Custom-SharePoint-Timer-Jobs
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Error in Workflow in CRM 2011

    A Workflow has been failing with the following error
    Workflow paused due to error: Unhandled Exception: Microsoft.Crm.CrmException: Cannot create the given type without the required parameters.
       at Microsoft.Crm.Workflow.Services.ExpressionServiceBase.CreateCrmType(WorkflowPropertyType type, Object[] values)
       at Microsoft.Crm.Workflow.Services.ExpressionServiceBase.EvaluateExpression(ExpressionOperator expressionOperator, Object[] parameters, Type targetType)
       at Microsoft.Crm.Workflow.Activities.EvaluateExpression.Execute(CodeActivityContext context)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    I am unable to open a step and it also gives the same message.  Does that mean I will have to recreate the workflow? 
    Thanks.
    JR

    Thanks ...This is a standard workflow and it happens in the step to send an email. In the body of the email,  a value of lookup field has to be displayed. That's where the error is occuring.  CRM does not give an error when the lookup
    field is added and the work flow is activated.  But once the worklow is activated and if I click on view properties in the step, I get an error.  Can a look up field be added?
    Microsoft CRM Error Report:
    Error Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Error Details:
    Exception of type 'System.Web.HttpUnhandledException' was thrown.
    Full Stack:
    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       at Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.GetEntityProperty(ExpressionBase propertyExpression)
       at Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.GetEntityPropertyForProperty(PropertySpecification property, String uiXmlName, String& slugInfo)
       at Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.PopulateEntityProperties(EntitySpecification entitySpec, EntityBase entity, String uiXmlName)
       at Microsoft.Crm.Web.Sfa.EntityForm.get_FormEntity()
       at Microsoft.Crm.Web.Sfa.EntityForm.ConfigurePage()
       at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Other Message:
    Error Number:
    Source File:
    Not available
    Line Number:
    Not available
    Error Trace:
    Microsoft CRM Unhandled Error Details:
    Server Error in '/' Application.
    Index was outside the bounds of the array.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.GetEntityProperty(ExpressionBase propertyExpression) +1496
       Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.GetEntityPropertyForProperty(PropertySpecification property, String uiXmlName, String& slugInfo) +34
       Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.PopulateEntityProperties(EntitySpecification entitySpec, EntityBase entity, String uiXmlName) +380
       Microsoft.Crm.Web.Sfa.EntityForm.get_FormEntity() +1101
       Microsoft.Crm.Web.Sfa.EntityForm.ConfigurePage() +994
       Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +106
       System.Web.UI.Control.PreRenderRecursiveInternal() +113
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201

  • CRM 2011+An error has occurred during report processing. (rsProcessingAborted)

    Hi,
     i have installed CRM 2011 on-premise version in Server A. Database and CRM 2011 Reporting Extenison in Server B. Both the server are 64 bit server and IIS 7.0 . i can able to browse the Report server url. USer as been added in Sql DB Logins and
    as permission to Reportserver and ReportservertempDB.
    i can able to access the CRM Reports only using Admin Credenttials that is from the credential which Report server is installed and configured
    Error in server 1: 
    Web service request SetDataSourceCredentials to Report Server
    (http://servername/Reportserver_XXXSQLSRVR)failed with SoapException. Error: An error has occurred during report processing. (rsProcessingAborted).
    Error in Server 2: took this error From error log file
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Data source 'CRM': An error has occurred. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: An exception has occurred in data source 'CRM'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
     Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'.
    ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    Eventvwr error in server 2:
    Failed to unload app domain DefaultDomain. The following exception occurred: Error while unloading appdomain. (Exception from HRESULT: 0x80131015).
    I tried the Following ways to fix it
    1.added User as content manager
    2.In CRM apppool i have Admin in identity column
    its really paining when i'm unable to access the CRM 2011 Default Reports. got stucked for a day.
    Thanks, Saraswathy Kumaravelu

    Hi All,
    I encountered this same issue today after installing CRM 2011.
    CRM 2011 on Server A
    SQL and SSRS 2008 R2 on Server B
    I found that I got the same errors described here when running the standard reports even after I had installed the Reporting Extension (CRM 2011 replacement for CRM 4.0 Data Connector). The reason I got the error was because the 'Data Source Type' had not
    been updated in Report Manager.
    Here's how I resolved:
    1. Browse to Report Manager (http://SERVERB/Reports)
    2. Open the Organisation_MSCRM folder
    3. Click Show Details
    4. Open the MSCRM_DataSource
    5. Change the Data Source Type from Microsoft SQL Server
    to Microsoft Dynamics CRM SQL
    *Note: - This option is only available once Reporting Extension has been installed on SSRS Server.
    6. Clear the contents of the Connection String box
    7. Set the Connect Using: option to Credentials Supplied by user running the report
    but do NOT check the
    Use as Windows Credentials when connecting to the DataSource option.
    8. Click Apply
    9. Restart the SQL Reporting Services Service in
    Reporting Services Configuration Manager
    10. Test by running one of the Standard CRM Reports (e.g. User Summary)
    Ta Da!! - Success!!
    Hope this helps!

  • Error while saving record in SharePoint 2013 through jQuery

    Dear Support,
    I had successfully created provider hosted app and deployed on SharePoint 2013 online site, in my project I created
    orderservice.asmx.cs web service and write a code for save record on SharePoint 2013 online list as I mentioned below and calling on App1.js file.
    But I am facing error when I am saving record on SharePoint 2013 list on button click event
    “500 Internal Server Error
    <! DOCTYPE html>”
    <html>
    OrderService.asmx.cs
    Public
    int InsertOrder (Order
    orderRecord)
    pwd.MakeReadOnly();
    clientContext.Credentials = new
    SharePointOnlineCredentials (myUserName, pwd);
    try
    Web oWeb = clientContext.Web;
    ListCollection lists = oWeb.Lists;
    List oOrderlist = lists.GetByTitle("Order");
    clientContext.Load<ListCollection>(lists);
    clientContext.Load<List>(oOrderlist);
    ListItemCreationInformation listItemCreationInfo
    = new
    ListItemCreationInformation();
    var listItem = oOrderlist.AddItem(listItemCreationInfo);
         listItem["Title"]
    = orderRecord.OrderProfile;
    listItem["Special_x0020_Instruction"]
    = orderRecord.Instruction;
    listItem ["Customer"] = orderRecord.CustomerId;
    listItem.Update();
           clientContext.ExecuteQuery();
    return 1;
    catch
    return -1;
    App1.JS
    $("#Save").click(function
    debugger;
    var OrderProfile = $('#orderprofile').val();
    var CustomerId = $('#exCustomerlist').jqxComboBox('getSelectedItem');
    var Instruction = $('#instruction').val();
    $.ajax ({
    url: location.pathname + "OrderService.asmx/InsertOrder",
    type: "POST",
    dataType: "json",
    data: "{OrderProfile:'" + OrderProfile
    + "', CustomerId:'" + CustomerId.value
    + "', Instruction:'" + Instruction
    + "}",
    contentType: "application/json; charset=utf-8",
    beforeSend: function (XMLHttpRequest) {
    //Specifying this header ensures that the results will be returned as JSON.
    XMLHttpRequest.setRequestHeader("Accept",
    "application/json");
    success: function (response) {
    $(".errMsg ul").remove();
    var myObject = eval('('
    + response.d + ')');
    if (myObject > 0) {
                                         alert(myObject);
    $(".errMsg").append("<ul><li>Data
    saved successfully</li></ul>");
    else {
    $(".errMsg").append("<ul><li>Opppps
    something went wrong.</li></ul>");
    $(".errMsg").show("slow");
    clear();
    error: function (response) {
    alert(response.status + ' ' + response.statusText
    + ' ' + response.responseText);
    would request for your support.
    Regards,
    Akhilesh

    Hi,
    Can you call your web service using jQuery not in an app successfully?
    As the error message suggests, it might be an error on the server side.
    I suggest you do a simple test to check whether you can call the web service using jQuery.
    Here are two links would provide more information about troubleshooting this error for your reference:
    http://sadomovalex.blogspot.com/2013/08/return-json-from-asmx-when-call-it.html
    http://www.codeproject.com/Tips/761116/Troubleshooting-an-Issue-With-Calling-an-asmx-Web
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Error while saving record "User:johndoe":     Error -14071

    I have added my augmented users from the AD server. When I select user and to apply a setting under Preferences I get this on attempting an "Apply", Error while saving record "User:johndoe":Error -14071. I'm authenticating to my LDAP not AD/All Domains.
    I have the server bound correctly to the AD server. Bound to AD, then promoted to OD master.
    Tried WGM from another Mac, same error.
    I recall my AD admin extending the ad schema last year for OS X 10.4.
    Thoughts? Thanks.

    Thanks David and Mabel, and all for the suggestions. I did go through "Leveraging Active..." prior to posting. I did try your method of canceling the authorization to WGM and viewing Directories. I would select a user from this method and try to apply something from MCX, but still got the -14070 error. Yes, I do have my client bound 1st OD, 2nd AD, with OD first on the search policy for the client.
    I though I had solved my issue by authenticating to WGM and LDAP. Then selecting Groups and the Members tab, I define an OD group and select that group. I can then click the "+" towards the right of the window. Then select my AD there which populates. I can add my AD groups or single users to my OD group. Then I'm able to apply MCX settings. But, no "blue" circle next to the group's silhouette. How is my method possibly incorrect?
    Also, at some point I unbound my client from AD and it seems the client is ok with getting AD info off my OD server. Example, my AD sharepoint mounts for PHD.
    But, I do have a pause of 20 secs. are more when logging into the client as well as accessing applications. Side effect of my method?

  • Error while saving record "john doe":     Error: -14140

    when changing a users preferences i try and save but it comes up with this error
    Error while saving record "john doe": Error: -14140
    and wont allow me to save
    any ideas?
    Many Thanks

    This thread might help you:
    http://www.afp548.com/forum/viewtopic.php?showtopic=16200
    This document is supposed to be very good as well:
    http://www.afp548.com/filemgmt_data/files/AD-OD-2.1.pdf

  • Custom report Fetch XML error in CRM 2011 online version

    When i am trying to connect to my online CRM 2011 server below error appears
    Unable to connect to data source 'DataSource1'.The connection to server "https://{my org name}.crm5.dynamics.com/XRMServices/2011/Discovery.svc"
    could not be established. Make sure that the connection string and credentials are correct, and try again.
    I also tried as per Abhishek Agarwal MSFT suggestion as
    1. Make sure that the credentials are correct.
    2. Try accessing the same URL through the web browser by providing the same credentials.
    3. Try enabling traces for BIDS and look for the detailed error logs. You can do this by creating the regular
    CRM trace registry entries under HKLM\SOFTWARE\Microsoft\MSCRMBidsExtensions or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSCRMBidsExtensions is you have a 64 bit
    machine.
    but nothing happens, trace log is
    ExceptionManager.PrepareException
    >Unhandled Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The connection to server "https://xxx1.crm5.dynamics.com/XRMServices/2011/Discovery.svc"
    could not be established. Make sure that the connection string and credentials are correct, and try again.
    >
    >Inner Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Metadata contains a reference that cannot be resolved: 'https://xxx1.crm5.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'.
    >   at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
    >   at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
    >   at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
    >   at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)
    >   at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpoints(Type contractType, Uri serviceUri)
    >   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri)
    >   at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri)
    >   at Microsoft.Crm.ServiceConfigurationCache`1.GetServiceConfiguration(Uri serviceUrl)
    >   at Microsoft.Crm.ServiceProxyCache`1.GetServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment)
    >Inner Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The remote server returned an error: (407) Proxy Authentication Required.
    >   at System.Net.HttpWebRequest.GetResponse()
    >   at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
    >   at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

    First, please make sure you are using the right version of Microsoft Dynamics CRM 2011 Report Authoring Extension
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=64a09b75-8376-4b9d-aea3-8a83a1837c4d
    Second, please make sure the connection string is correct, for CRM online,
    The connection string should be: <ServerURL>;<OrganizationUniqueName>;<HomeRealmURL>
    In this connection string, only <ServerURL> is mandatory.
    For more details, please refer to
    http://rc.crm.dynamics.com/rc/2011/en-us/online/5.0/help/how_rpt_customcreatefetchrs.htm
    Please remember to click “Mark as Answer” on the post that helps you. Jackie Chen, Microsoft Online Community Support

  • Unhandle error in Silverlight Application MS CRM 2011 with UR-18

    Hi All,
    Will silverligh work in MS CRM 2011 UR-18 /MS CRM 2013/2015, As I am getting the error "Unhandle Silverlight error" in MS CRM 2011 UR-18, But it was working fine in MS CRM 2011 UR-8.
    Please suggest me on the same.
    Thanks
    Srikanth Reddy

    Silverlight is a client-side technology, so shouldn't be impacted by the Crm Server version. Is this error on all clients, or just certain machines ?
    If the error is on all clients, and only after installing UR18, then the most likely problem is with the specific code in the Silverlight web resource. Can you identify where the error is thrown ?
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • CRM 2011 JS giving errors

    I added an OnLoad Event to my Opportunity Form.  When the form loads I get the following error:  "Object doesn't support property or method 'setDisable'.  What am I doing wrong?
    // Microsoft Dynamics CRM 2011 Java Script
    // Name: New_Opportunity_New_Library
    // Modified Date:  4/2/2015
    // Company: 
    // Practice Area SubPractice Area Code
    function Form_OnSave()
    function Form_OnLoad()
          setDisableSubPracticeArea()
    function setDisableSubPracticeArea(){
          if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() == null){
          // If the value is null set field sub-practice area disable field
          Xrm.Page.getControl("cpdc_subpracticearea").setDisable(false);
          else  if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() != null){
          // if value is not null then set visible sub-practicearea field
          Xrm.Page.getControl("cpdc_subpracticearea").setDisable(true);

    Hi,
    Use below code :
    function Form_OnSave() {
    function Form_OnLoad() {
        setDisableSubPracticeArea()
    function setDisableSubPracticeArea() {
        if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() == null) {
            // If the value is null set field sub-practice area disable field
            Xrm.Page.getControl("cpdc_subpracticearea").setDisabled(false);
        else if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() != null) {
            // if value is not null then set visible sub-practicearea field 
            Xrm.Page.getControl("cpdc_subpracticearea").setDisabled(true);
    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
    Vikram Singh. !!!  My Blog

  • Editing "service Activities" records on Mobile express CRM 2011

    Hello,
    I was wondering if there is a way that we can edit service Activity records on mobile express crm 2011. I was able to configure such that we can see the records but they are read only we cannot update or edit those records.
    Please advice.
    Thanks

    I added Notes to mobile express and I can add notes to service activity. So, that's exactly what we wanted but you cannot directly edit service activities from mobile express.

  • CRM 2011 Outlook Client not showing all columns in Opportunity Views

    Versions:
    CRM: 2011 On-Premise - 5.0.9688.1533
    Outlook: 2010 Professional - 14.0.6122.5000 32bit
    CRM Client for Outlook: 5.0.9690.1992
    Basic Problem
    The Outlook Client views that show up in Opportunities do not have all the columns that are in the view. 
    Some of the views do, but not all of them.
    Example:
    View Name: Won Opportunities
    Columns in view: Created on, Location, Quote Type, Scope of Work, Quote Number, Booked Sale Date.....8 other
    columns (many custom columns)
    Columns in View in Outlook: Icon, Quote Number, Categories, Flag....thats all.
    Other Notes
    This only happens in the Opportunity section of the Outlook Client. 
    This does not happen in advanced find in Outlook or anywhere in the web client. This does not happen for any other entity.
    This happens on all of our users Outlook clients.
    I have tried recreating the view.
    No error messages are recording in any logs that I can find.
    Any ideas on why this is happening or how to fix it?
    Thank you
    Paul

    1. Are you sure this is a System View and not a User Defined View? Can you take a screenshot of all the availalbe Outlook views when you click on the little down arrow to add a new view? Yes.  See the screen shot at the bottom.  It is a public
    view.
    2. What happens when you close the view and add it back?  same results.
    3. What happens when you restart Outlook? I ask because if you customized your System Views, those are only persistent for a given session. If your restart Outlook, then it should reset the View.  we have tried that.  and uninstalled Outlook client
    and reinstalled.  And uninstalled Outlook and reinstalled.  Same results.  The only view that works for opportunities is the Default Custom View.  The strange thing is that the filters are working just fine. just not the columns. 
    4. A workaround - have you tried creating a new System View similar to the one you want? Yes.  same results

  • Sharepoint 2013 Online - error while setting up CRM integration

    Hi,
    we use Dynamics CRM 2011 on-premise and Sharepoint 2013 online and since last week CRM integration with Sharepoint stopped working. When I want to set up "Document Management Settings" in CRM administration I got an error
    "An error occured while loading the page. The url may not have been mapped in the Sharepoint server. Ask your system administrator to check the Configure alternate access mappings settings in Sharepoint central administration."
    But we use Sharepoint online, so I can't configure it.
    I think it is common issue after some Sharepoint update in last month, because I tested 2 instances of Sharepoint online with 4 instances of CRM on-premise (3 different versions of CRM 2011 and one last updated CRM 2013).

    Hi  ,
    According to your description, my understanding is that you encountered the error "An error occurred while loading the page. The URL may not have been mapped in the SharePoint server. Ask your system administrator
    to check the Configure alternate access mappings settings in SharePoint central administration" when you want to set up "Document Management Settings" in CRM administration.
    For your issue, please re-install the Microsoft Dynamics CRM 2011 List Component for Microsoft SharePoint Server 2010 and Microsoft SharePoint Server 2013:
    http://www.microsoft.com/en-us/download/details.aspx?id=5283
    Also you can follow the thread:
    http://social.microsoft.com/Forums/en-US/2430e529-1eaa-43c6-8958-f109abe86270/crm-2011-documents-on-sharepoint-online-an-error-occurred-while-loading-the-page?forum=crm
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Problem with CRM 2011 web front end cluster

    Hi.
    We have a CRM 2011 (RU17) environment with a SQL DB server and 2 web front end CRM server in a cluster.
    Since few days (about 10) it seems that one of the 2 nodes is not working, and since yesterday many users report access problems when calling the application by cluster name - as usual since we deployed CRM 1 year ago.
    I tried myself, and I can run the application by cluster name without problems. If it try the separate notes addresses, one of them works, the other doesn't.
    I checked the 2 web front end servers, and are (or seem) both properly configured, with all patches installed.
    Following the information I got from Event viewer. Any suggestion welcomed!
    Many thanks and Best regards
    On the 'faulty' server I have different errors at event viewer level:
    Faulting application name: Microsoft.Crm.Sandbox.HostService.exe, version: 5.0.9690.4150, time stamp: 0x53559982
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1677
    Exception code: 0xe0434352
    Fault offset: 0x000000000000940d
    Faulting process id: 0x6f8
    Faulting application start time: 0x01cf8f93aa9a7ff8
    Faulting application path: C:\PROGRA~1\MICROS~4\Server\bin\Microsoft.Crm.Sandbox.HostService.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: f5019a68-fb86-11e3-9f21-005056853970
    Application: Microsoft.Crm.Sandbox.HostService.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Runtime.InteropServices.COMException
    Stack:
       at Microsoft.Crm.Sandbox.HostService.InitializeThreadProc(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
    The Sandbox Host service has encountered an unexpected error and has stopped.
     Source: Microsoft.Crm.Sandbox.HostService.exe (1784)
     Error: System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational.
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.PropertyValueCollection.PopulateList()
       at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
       at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
       at Microsoft.Crm.SecurityUtils.GetSidFromAD(Guid objectGuid)
       at Microsoft.Crm.Sandbox.SandboxHost.SetPrivilegeUserGroupId(Guid privilegeUserGroupId)
       at Microsoft.Crm.Sandbox.HostService.InitializeThreadProc(Object stateInfo)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
    On the 'running' server event viewer I only have one error, related to mail router:
    #23379 - Could not verify the version of Microsoft Dynamics CRM at http://alkcg106.d30.intra:5555/AkzoNobelIndustrialCoatings. There was no endpoint listening at http://alkcg106:5555/AkzoNobelIndustrialCoatings/XRMServices/2011/Organization.svc that could
    accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

    Apologize for not having indicated here the resolotion I got thanks to MS support...
    We enabled the trace and we got
    a http error page stating maxQueryStringLength was insufficient. We changed the maxQueryStringLength and QueryString values in the CRM web.config value to 10240.
    We also noticed an error related to the DC being unavailable. We checked in the CRM registry hive and see in the non-working server you had a PreferredDc key pointing to “AMDNAD”. On pinging
    AMDNAD we see it is not reachable. We removed the PreferredDc key and after iisreset we can navigate to crm.

Maybe you are looking for