Operator="in" , Fetch Xml, MS CRM 2011

hi,
i have a guid's string array.
ex: string[] recordGuids;
i want to use this in fetchxml by using condition operator "in".
i have tried this below code but no success ("The remote server returned an error: NotFound.").
var fetchXml = @"<fetch mapping='logical'>
<entity name='annotation'>
<attribute name='filename' />
<filter>
<condition attribute='objectid' operator='in'>"+
"<value>" + recordGuids + "</value>" +
"</condition>"+
"</filter>"+
"</entity>"+
"</fetch>";
when i debug and check the query, that was something like this( which is wrong query ).
<fetch mapping='logical'>
<entity name='annotation'>
<attribute name='filename' />
<filter>
<condition attribute='objectid' operator='in'> <value>System.String[]</value> </condition> </filter> </entity></fetch>
can anyone give me an idea to retrieve set of records by using condition operator "in" by passing string array.
Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

hi Can you please try below code,
var fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>" +
"<entity name='new_pledge'>" +
"<attribute name='new_name' />" +
"<attribute name='new_pledgeid' />" +
"<attribute name='new_marketvalue' />" +
"<order attribute='new_name' descending='false' />" +
"<filter type='or'>" +
"<condition attribute='new_pledgeid' operator='eq' value='";
for(var i = 1; i<= Pledgeid.length;i++)
fetchXml += "<value>" + Pledgeid[i] + "</value>";
fetchXml += "' />"+
"</filter>" +
"</entity>" +
"</fetch>";
var layoutXml = "<grid name='resultset' object='1' jump='name' select='1' icon='1' preview='1'>" +
"<row name='result' id='new_pledgeid'>" +
"<cell name='new_name' width='300' />" +
"<cell name='new_pledgeid' width='100' />" +
"<cell name='new_marketvalue' width='100' />" +
// "<cell name='new_by_months' width='100' />" +
"</row>" +
"</grid>";
By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

Similar Messages

  • 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

  • How to read XML file and update the data in MS CRM 2011?

    Hi Folks,
    Can anyone please help me finding some references to read XML files and push the data to MS CRM 2011 preferably by using a console application.
    Please let me know if any ways of handling it in simple ways.
    Thanks,
    Sri

    HI,
    How to read XML file:
    https://social.msdn.microsoft.com/Forums/en-US/5dd7261b-86c4-4ca8-ba87-95196ef3ba50/need-to-display-xml-file-in-textboxes-edit-the-data-and-save-the-new-xml-file?forum=csharpgeneral
    How to work with CRM:
    ClientCredentials credentials = new ClientCredentials();
    credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
    Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
    OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
    proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
    IOrganizationService service = (IOrganizationService)proxy;
    //using "service" you can create, update and retrieve entities.
    More information here about service functions:
    https://msdn.microsoft.com/en-us/library/gg328198.aspx

  • Fetch-Xml based report (to count User Access in the last 6 months ) for Microsoft Dynamics CRM Online

    Hi,
    I have created a User Access report for CRM on-premise using SQl query in the following format. One row corresponds to one user in organization. Currently, I am using Microsoft Dynamics CRM Online trial version and have two users in my organization.
    I want to the same report for CRM Online environment. Only Fetch-Xml based custom reports are supported by CRM online environment hence this SQL query cannot be used.
    I have already written fetch-xml query to retrieve user access records ("audit" entity records) in "last-x-months" (where x = 1,2,3,4,5,6) as below.
    I am able to retrieve the records with "last-x-months" condition at a time, for example, the last-2-months  in my fetch-xml query only.
    For, example, when I retrieve the records in the last-2-months, it also includes the records in the last month. I want to count the records in the 2nd month only that is the difference between these two. The difference will be my 2nd column.
    Similarly, I want the other columns.  
    For the case in the above example, I have created the two separate datasets to get the record-count for the last month and last-2-months. But, I am not able to use the two datasets in the same table in my report and hence not able to calculate the difference.
    Is there any way to solve this problem?

    Hi,
    I have modified my Fetch-XML query to retrieve all the required User Access records and removed aggregation and counting and grouping from the query as well. Did grouping and counting in SSRS. Now the report works fine as shown in the above picture.

  • Visual studio reports for crm (fetch xml) - trying to hide textbox based on value returned

    I have a report running from a custom entity in Dynamics CRM online using fetch XML and all is well apart from trying to hide a text box which shows an expression.
    The expression refers to a boolian value from CRM (two options - Approved and Unapproved), what 'I want is the textbox to show the contents if the value = Unapproved but hide it if = Approved.
    I have gone into the text box properties and selected visibility - show/hide based on an expression.
    Here's what I have which isn't working.
    =IIf(Fields!dsm_dispatchapproval.Value like"Approved")

    Hi duddit2,
    Based on your description, you want to use an expression to control the visibility of a textbox. Show the textbox when the value of dsm_dispatchapproval field is “Unapproved”, hide it when the value of dsm_dispatchapproval field is “Approved”.
    To achieve this goal, please refer to the following expressions:
    =Fields!dsm_dispatchapproval.Value like "Approved"
    OR
    =IIF(Fields!dsm_dispatchapproval.Value ="Approved",true,false)
    For more information about Expression Examples (Report Builder and SSRS), please see:
    http://msdn.microsoft.com/en-IN/library/ms157328.aspx
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • 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

  • 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

  • Default value don't get displayed for Fetch XML report

    Hi All;
    i have a date parameter in a fetch XML report 
    i set its default value as 01/01/2010 
    when i run this report in SSRS i can see the default value of the date
    But when the same report gets displayed on CRM 2013 online - report section the date default value dont get displayed
    Any help for this much appreciated
    Thanks
    Pradnya07

    Hello Zero-G. _,
    >> But I don't get any "Operation". I can't see my failure. - I tested around for the last few days, but I don't have a Clou, what's wrong...
    I am afraid that you have mixed the WCF and WCF Data Service, here is a WCF Service example(it works with the Entity Framework while it is not WCF Data Service):
    http://www.codeproject.com/Articles/127395/Implementing-a-WCF-Service-with-Entity-Framework, please check it, in your case, you are use this mode and you do not need to create WCF Data Services.
    If you want to write a custom method in WCF Data Service, you could refer to this link:
    https://msdn.microsoft.com/en-us/library/dd744841(v=vs.110).aspx, as you can see, although if we declare a custom method, it would not show in the web browser, we call it as adding
    the method after the based service link directly:
    http://localhost:12345/Northwind.svc/GetOrdersByCity
    Or call it by using a client project which could detect this method and call it as in this blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/12/01/way-to-expose-custom-method-in-an-entity-class-from-wcf-data-service.aspx
    Regards,
    Fred.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

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

  • How to make use of pre-filter option in custom reports developed in SRSS(Fetch XML feature)

    Hi,
    I have created a report and have enabled the prefiltering option. But still when i select a particular record to run, it gives an error. Is there anything that needs to be changed in the xml query. Can someone please show me a detailed example of how to
    develop a report that uses prefilter option in order to make the report context sensitive. My objective is to create an invoice report that selects only one invoice record at a time.
    jigme_dhonyoe

    see if this helps
    http://www.njevity.com/blog/creating-dynamics-crm-2011-reports-sql-reporting-services-pre-filtering-and-default-filters
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Is it possible to customize audit summary view - CRM 2011

    Hi,
    Is it possible to modify or customize the default "Audit summary view" of Auditing in crm 2011?
    Apart from enabling or disabling filters, i don't see any options to modify the view so that i can add more columns or remove few columns from the default view?
    Please do share your valuable inputs.
    Thanks.

    Hi,
    Existing audit logs can be viewed by navigating to Settings -> Auditing -> Audit Summary View. The
    resulting view is fixed by the system with predetermined columns that display the date and time of the event, the type of event, who made the change, the record effected by the event, the corresponding entity type and the operation performed.
    This data cannot be exported to Excel like the standard grids. To assist in finding relevant data, filters can be enabled for all the columns except the effected record column; this works similarly to the corresponding functionality in Excel. Selecting an
    individual audit record will provide additional details for the given transaction.
    So we can't change this system view.

  • 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

  • CRM 2011 Data as an External List

    Hi,
    Im having trouble creating an external data source in sharepoint designer 2010. I would like to consume the web services provided by CRM 2011 on Premise. 
    http://crm.domain.com/Organization/XRMServices/2011/Organization.svc
    I have tried many different types of URL but whenever i try to connect i get an error saying that the url did not return a valid description of an XML Web service.
    I've tried many different URLs, ive added ?wsdl  and ?wsdl=wsdl0 etc. but i always get the same error.
    If i put the URL in the browser I can see all the XML without any problems.
    Has anyone encountered this before?
    Right now im looking into creating a BDC Model from Visual Studio instead but i was really hoping to be able to do this in SPD.
    Any help appreciated.

    Hi, Sorry about not replying earlier. 
    Been busy. In the end this is how I got a list of CRM data into Sharepoint. 
    I actually took two different approaches. 
    One was to use sharepoint designer to access the Secure store key i created, and pull the data from the CRM database. Then i formated it in sharepoint designer. This is a supported approach. And if you use the filtered views provided in the CRM 2011 database
    you will be able to get the security features on the data that you setup in CRM (for the user that you have configured the secure store key for ). 
    That is the easy way. The hard way is to create a new BDC Project for sharepoint. Then you can create a model, in XML that represents the various opperations you will do on the data. This will include, unique find, list, update, delete, etc.
    Then you have to go and create those methods in the service class that comes with the model. (this is where you will write code to get the data from CRM)
    My suggestion is to get that working first and load in some static data in the code. I had lots of headaches in this part especially with the model. 
    Say thats working and you were able to create a list that gets data from the new content type then the next thing is to go back into the code and add a web reference to the WSDL file from the CRM 2011 developer resources section on your installation. This
    didnt work out of the box for me i had to read a lot of blogs to iron out little bits in the autogenerated code that didnt quite work for me. Also any .net 4 stuff is ruled out as well. But i managed to get the service object created with some CRM credentials,
    (probably best to use the secure key again here to avoid having creds in the source, and to decouple any administrative tasks) 
    Next you can build queries and pull the data straight out of the CRM webservice. I would suggest starting with the list function ( its probably called something else ) and write the code to pull out all the items you want in the list, etc. Then move on to
    the other crud functions. 
    If you are looking for performance for reporting, etc. then use the filtered views, its faster and has less overhead than the webservice. 
    REST is also an option but i think you can only pull 50 items at a time, so you will have to write the code around that. A bit masochistic though.
    Its much easier to get the webservices working with silverlight as you can use the sdk libs i think. but i remember there being a problem with authentication and having to re-enter user/pass and stuff like that.
    Ill try and answer any specifics if i can. .
    cheers 

  • CRM 2011& Office 2013 Excel Export

    Hi Forum,
    we are currently using a crm 2011 server (ru17) and have some clients with Windows 8.1 and Office 2013 with outlook addin (RU 17). For these clients we get in to trouble by exporting contacts or accounts as dynamic pivot spreadsheet.
    If the download window pop up, you can not directly open the file (instead with office 2010 it is possible). If you chose save (it is a xml file), you have to right click that file and chose excel. After Excel started you can't see the pivot.
    We tried to solve the issue with the following hotfix(without any luck): http://support.microsoft.com/kb/2883063/EN-US
    Maybe some has another idea how we can solve the problem ?

    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

  • Migrating from CRM 2011 on-premise to Online

    Hi there,
    We currently run CRM 2011 on-premise, we have 5 users and minimal customisations so far. We would like to migrate from On-premise to Online as we have this available through our Office 365 plan. Is there a migration tool available from Microsoft, or a manual
    migration guide? We have searched for info online and can only find 3rd party tools that provide this function that are very pricey for such a small company. 
    Are we stuck doing this manually or is there a way?
    Steve

    For the migrating from CRM on premise to online has two parts:
    1.Customization
    You can export the total solution as following:
    Go to Settings->Customization->Export Solution
    Click Next->Choose what you want to export.
    Click Next to export.
    Then you can go to another CRM Online instance, go to Settings->Solutions->Import solution.
    2. Data
    For the out of box function of CRM 2011 Online, we does not support all data export one time. But we support all data export for one entity one time as following:
    Let us take example that you want to export data for Account and Contact record types.
    1. Create a view of all fields for the record type Account.
    a. Go to accounts Grid and click on Create personal view
    Click Edit Columns in the dialog that pops up and then click Add Columns.
    Click the checkbox in the header to select all columns. (This will export data for all columns, some of which may not be importable)
    Click ‘ok’ and then Click ‘Save’ on the Ribbon in Advanced find dialog. It will prompt you for name of the view .Provide the name for the view.
    2. Navigate to view (Account) and Export the data in Static Excel format.
    a) Go to Accounts Grid.
    b) Navigate to Accounts view.
    c) Click Export to Excel.
    d) Select “Static worksheet with records from all pages in current view”.
    e) Click Export and save the file. (Account.xls)(The records that are exported will be based on the record for which you had privileges).
    f) Save the file in CSV /XML format from Excel. (Account.csv)
    Wilson

Maybe you are looking for

  • Validating clearing functions

    Hi, can we validate the clearing functions F-03, F-32, F-44 for certain document types? We want to make sure that DocType 'ZL','ZG','ZS','ZI' can't be cleared with regular document types like 'KR','SA' etc.   what we can write in prerequisite and che

  • IpodIOS 5.1

    Why can't I download apps anymore. I have IOS 5.1 on my Ipod. I need to upgrade my software but it doesn't let me do it.

  • Opening PM5 files (without a Pagemaker program)

    My company bought Pagemaker 5 a very long time ago. And the original install disc has since "disappeared". The last standing computer that had Pagemaker installed, recently had a major melt down and the program was unsalvagable. We have several PM5 f

  • Unable to install a license for NSC version 1.1.1.24

    I installed the new ncs version (1.1.1.24-small), with success. Later I will use a  temporary license for testing. I use the licing center and get a license but I get allways following message : "UDI of file not match the system" Following parameters

  • GL Period Closer

    hi all I have a little doude in What happend in GL Period closer, if you can give answer for my below quection it is greatly appricialte, 1) what is the transaction entry when we close the gl perioc 2) dose it balance the all expence account 3) dose