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

Similar Messages

  • 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

  • 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!

  • 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

  • Import Fail crm 2011 to crm 2013 Legacy component issue

    Hi All
    We are getting issues during organization import from crm 2011 to crm 2013 , the error is 
    "We have detected the presence of legacy component(s) during upgrade, these components are not supported in Dynamics CRM 2013. Please refer to upgrade log file C:\Users\Administrator\AppData\Roaming\Microsoft\MSCRM\Logs\LegacyFeatureCheck.xml
    for more information."
    when we check log file it shows the error "ISV folder under CRM Website contains one or more files"
    Even we removed everything from ISV folder , Iframe urls from app , solution which is using ISV urls ,plugins and custom workflows but still the error is same
    Please help to resolve this issue .
    Thank you
    Sharique

    Hi,
    Please refer below blog having details about "Removal of the 2007 Endpoint and Legacy Features"
    http://blog.simonjackson.info/2013/07/whats-changing-in-crm-2013-from-sdk.html
    The following legacy Microsoft Dynamics CRM 4.0 features will be removed or will no longer be supported in the next major product release:
    ISV folder support for custom web applications
    Microsoft Dynamics CRM 4.0 plug-ins
    Microsoft Dynamics CRM 4.0 client-side scripting
    Microsoft Dynamics CRM 4.0 custom workflow activities
    Also you can download a tool that can detect legacy feature on your server
    http://go.microsoft.com/fwlink/p/?LinkID=309565
    Entire documentation is available at below article.
    http://msdn.microsoft.com/en-us/library/dn281891.aspx
    Hope this helps.
    Ajay Chawla

  • 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.

  • Error in Action when CRM Order is updated as Error from R/3 update

    Hi,
    Currently we are in CRM 6.0 SP04 and R/3 4.7 SP14
    Process:
    1) B2B user places order through ISA
    2) Order gets replicated R/3 from CRM through middleware (Scenario A setting)
    3) If there are any changes in order on either side, changes gets replicated.
    Requirement:
    We have a requirement from business to trigger workflow in CRM if order is in error. Following are the possible scenarios
    1) Error while saving order in CRM
    2) No errors in CRM. However, Order will get error in R/3 because of inconsistent configuration or master data between CRM and R/3. The BDOC will be green while replicating to R/3 and acknowledgement to CRM.
    3) BDOC status is in error
    Solution approach:
    We created an action to trigger event when order status set to "Contains error". The condition for Action trigger are Order have error free flag NE X(BUS 2000115 )  OR Status = I1030 OR status = I1056.
    Issues:
    1)     Scenario : Order is successfully create in CRM without any error. Order gets replicated to R/3 u2013 BDOC is green. However, the order gets error status in R/3 because of inconsistent configuration or master data. The acknowledgement BDOC updates the error status in CRM. However, Action does not get trigger when the order is updated as Error from R/3.
    Pls advise possible solution and also suggest any other way to achieve the required functionality to generate workflow for CRM order updated as Error from R/3.
    Regards,
    Anil Rithe

    Hi Anil,
    Try this, implement ORDER_SAVE BAdI.  This BAdI is triggered every time an order is saved, you could put in your logic to see if the order has errors, if yes trigger your workflow.
    I haven't tested but this should work for your case when the crm order is set to error status after the replication to R/3(the BDOC scenario).
    This may not be the most efficient method of doing, but this would definitely work.
    Make sure you use proper checks at the beginning  of your order_save BAdI implementation as this badi would get executed on save of every 1-order object.
    ~Kiran

  • 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

  • You do not have sufficient permission to perform the operation on the specified organization database- MS CRM 2011

    Hi All,
    I am gettingn the below error message while importing the organization from MS CRM 4.0 to MS CRM 2011.
    I am importing the organization using service account and the same account was added as db owner in the DB which I was trying to impot. It would be greate if you provide the solution. 
    Thanks
    Srikanth

    The Import Wizard checks if the logged-on user is a System Administrator in SQL, and if not, throws this error. If you can get System Administrator rights, then this is the simplest solution.
    Alternatively, I think you can get around this without having System Administrator rights:
    Add the IgnoreChecks registry value to allow you to get past the error in the wizard
    The import process will check if the CRM Sql logins (SqlAccessGroup, ReportingGroup and PrivReportingGroup) exist. For this, your account will need to be a member of the securityadmin server role, or you could just have the VIEW DEFINITION object permission
    on each of these logins
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • CRM 2011 - Exporting a view in 2011 Outlook Client

    Using CRM 2011 on - premise with 2011 outlook client RU17
    For a few custom entities exporting the default view to excel within Outlook Client results in a generic error pop up.
    With tracing on I see the following error:
    System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #0086DABC: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown.
    ---> Microsoft.Crm.CrmException: Number of link entities in query exceeded maximum limit.
    The same view exports to Excel with no issues via IE.
    I have seen references to this error but nothing that has helped or pointed out a difference to look at between the Outlook Client versus IE.
    Regards
    Robert

    if this is machine specific and Outlook Client related then I would start with ensuring the machine has all the latest Office and OS updates not just the latest security patch but all the latest updates.  You'll also want to ensure there are no other
    add-ins causing a conflict in Outlook, virus protection is not causing an issue, the machine has sufficient memory, etc.  Basically ensure the machine has been optimized for the Outlook Client.
    https://curah.microsoft.com/211516/crm-2015-helpful-resources
    Regards, Donna

  • Event Receiver ItemAdded MS CRM 2011

    Hi,
    I'm playing with SharePoint 2010 and MS CRM 2011.
    I developed simple event receiver on the document library which fire on ItemAdded and ItemAdding. Event receiver fire when I create folder inside SharePoint UI document
    library and everything works fine.
    Now, in MS CRM 2011 one of new feature is document management. MS CRM 2011 use SharePoint Foundation 2010 and create folder for each Account. In this case, when MS CRM
    create folder in document library event receivers not fire.
    Is there anybody who has some idea why?
    Exolit

    That's a strange issue that I also encountered, but only on our server. When I installed it on client's test server, it worked!! On our server I solved it by chance. I tried to make it some other way so I implemented some easy workflow that changed the
    item's title to the item's ID. When I did it I found out that ItemAdded event was fired and everything worked. I was also curious, what if remove this workflow now. Suprisingly everything works now!! :D

  • Issues connecting BizTalk 2013 WCF to Microsoft CRM 2011 using ADFS

    I have a Microsoft CRM 2011 instance I'm trying to connect to from BizTalk 2013 using WCF. The CRM instance is using ADFS based security
    and basic "domain/user" "password" security. The OrganizationService has the following policy in the WSDL.
    <wsp:Policy wsu:Id="CustomBinding_IOrganizationService_policy">
    <wsp:ExactlyOne>
    <wsp:All>
    <ms-xrm:AuthenticationPolicy xmlns:ms-xrm="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
    <ms-xrm:Authentication>Federation</ms-xrm:Authentication>
    <ms-xrm:SecureTokenService>
    <ms-xrm:Identifier>http://example.com/adfs/services/trust</ms-xrm:Identifier>
    </ms-xrm:SecureTokenService>
    </ms-xrm:AuthenticationPolicy>
    <sp:TransportBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <wsp:Policy>
    <sp:TransportToken>
    <wsp:Policy>
    <sp:HttpsToken/>
    </wsp:Policy>
    </sp:TransportToken>
    <sp:AlgorithmSuite>
    <wsp:Policy>
    <sp:Basic256/>
    </wsp:Policy>
    </sp:AlgorithmSuite>
    <sp:Layout>
    <wsp:Policy>
    <sp:Strict/>
    </wsp:Policy>
    </sp:Layout>
    <sp:IncludeTimestamp/>
    </wsp:Policy>
    </sp:TransportBinding>
    <sp:EndorsingSupportingTokens xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <wsp:Policy>
    <sp:IssuedToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
    <Issuer xmlns="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <Address xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous</Address>
    <Metadata xmlns="http://www.w3.org/2005/08/addressing">
    <Metadata xmlns="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <wsx:MetadataSection xmlns="">
    <wsx:MetadataReference>
    <Address xmlns="http://www.w3.org/2005/08/addressing">
    https://example.com/adfs/services/trust/mex
    </Address>
    </wsx:MetadataReference>
    </wsx:MetadataSection>
    </Metadata>
    </Metadata>
    </Issuer>
    <sp:RequestSecurityTokenTemplate>
    <trust:KeyType xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
    http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey
    </trust:KeyType>
    <trust:KeySize xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">256</trust:KeySize>
    <trust:Claims xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512" Dialect="http://schemas.xmlsoap.org/ws/2005/05/identity">
    <wsid:ClaimType xmlns:wsid="http://schemas.xmlsoap.org/ws/2005/05/identity" Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"/>
    </trust:Claims>
    <trust:KeyWrapAlgorithm xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p</trust:KeyWrapAlgorithm>
    <trust:EncryptWith xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/04/xmlenc#aes256-cbc</trust:EncryptWith>
    <trust:SignWith xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2000/09/xmldsig#hmac-sha1</trust:SignWith>
    <trust:CanonicalizationAlgorithm xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/10/xml-exc-c14n#</trust:CanonicalizationAlgorithm>
    <trust:EncryptionAlgorithm xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/04/xmlenc#aes256-cbc</trust:EncryptionAlgorithm>
    </sp:RequestSecurityTokenTemplate>
    <wsp:Policy>
    <sp:RequireInternalReference/>
    </wsp:Policy>
    </sp:IssuedToken>
    </wsp:Policy>
    </sp:EndorsingSupportingTokens>
    </wsp:All>
    </wsp:ExactlyOne>
    </wsp:Policy>
    I've set up the following client configuration:
    <binding name="ws2007FederationHttpBinding">
    <security mode="TransportWithMessageCredential">
    <message>
    <issuer address="https://adfs20.example.com/adfs/services/trust/2005/usernamemixed"
    binding="wsHttpBinding"
    bindingConfiguration="stsBinding" />
    <issuerMetadata address="https://adfs20.example.com/adfs/services/trust/mex" />
    </message>
    </security>
    </binding
    And referencing this for adfs specific communication
    <wsHttpBinding>
    <clear />
    <binding name="stsBinding">
    <security mode="TransportWithMessageCredential">
    <transport clientCredentialType="None"/>
    <message clientCredentialType="UserName" establishSecurityContext="false"/>
    </security>
    </binding>
    </wsHttpBinding>
    As I try using it I get the receive the following error message
    A message sent to adapter "WCF-Custom" on send port "SendPort6" with URI "https://crm-test.example.com/XRMServices/2011/Organization.svc" is suspended.
    Error details: System.ServiceModel.FaultException: MSIS3127: The specified request failed.
    Server stack trace:
    at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
    at System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.Tokens.IssuedSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.SecurityProtocol.TryGetSupportingTokens(SecurityProtocolFactory factory, EndpointAddress target, Uri via, Message message, TimeSpan timeout, Boolean isBlockingCall, IList`1& supportingTokens)
    at System.ServiceModel.Security.TransportSecurityProtocol.SecureOutgoingMessageAtInitiator(Message& message, String actor, TimeSpan timeout)
    at System.ServiceModel.Security.TransportSecurityProtocol.SecureOutgoingMessage(Message& message, TimeSpan timeout)
    at System.ServiceModel.Security.SecurityProtocol.SecureOutgoingMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState)
    at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open()
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at System.ServiceModel.ICommunicationObject.Open()
    at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.GetChannel[TChannel](IBaseMessage bizTalkMessage, ChannelFactory`1& cachedFactory)
    at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)
    MessageId: {0A8D8BB1-0838-43AF-B3A1-D63D432C22AA}
    InstanceID: {B57B4979-2187-4CF7-8115-4D65B3952982}
    What am I missing ..?
    http://www.richardhallgren.com

    Hi Angie and Richard
    Currently I am also having the similar issue and I tried the settings you mentioned. But I get his error 
    The adapter failed to transmit message going to send port "WcfSendPort_OrganizationService_CustomBinding_IOrganizationService" with URL "https://examplecrm.com/XRMServices/2011/Organization.svc".
    It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ServiceModel.FaultException: The message with Action 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' cannot be processed at the receiver, due
    to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver
    have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    By any chance did you go through this error or do you have any suggestions?I am trying to connect from WCF-Custom adapter on BizTalk 2010 to CRM 2013 using ADFS. 
    Thanks 
    Narri

Maybe you are looking for

  • Pm-hibernate stalls trice upon resume

    Every stall is followed with a short beep, and lasts about 30-40 seconds during which the laptop is not doing anything. It is not reading from disk, it is no calculating anything. It is just waiting for something. Here are the logs starting before hi

  • How do i show the filename.type instead of the entire file path?

    How do i show the filename.type instead of the entire file path? I want it to show "ProgramSetup.exe" instead of "C:/Program Files/Oracle/JavaFX/ProgramSetup.exe" I have created a JavaFX program with the help of my manager below are the code         

  • Users using Windows Authentication unable to login after upgrade to SQL Server 2012 SP2 CU1

    We upgraded from SQL Server 2008 R2 to SQL Server 2012 SP2 CU1.  Upgrade was successful.  Users that have SQL Server Management Studio 2012 can successfully log in via Windows Authentication, but users with an older version of SQL Server Management S

  • How to flip an object

    I've tried the obvious tools of reflect and rotate and all the transform options.  Each time the object is flipped but not on ONLY the axis I want.  For example, if I flip on the horizontal axis, I would expect (or want) the upper left corner to be f

  • Please review my Lesson 1 Homework

    This app uses a single timer to run two tasks, a 5 minute task and a 30 second task.  Both tasks use callbacks to communicate with the MIDlet.  The 5 minute task starts the 30 second task on odd 5 minute periods and cancels it on even 5 minute period