none
Biztalk 2010 / CRM 2011 integration - issue updating CRM record RRS feed

  • Question

  • I'm working on biztalk 2010 integration for dynamics crm 2011.  I'm attempting to update a record in crm 2011 from biztalk using the wcf service.  I've gone through the methods outline on several web sites for working directly with the crm 2011 wcf service (not creating a strongly type proxy class) because I am only updating one field on the crm record.  When ever I make a call to the update though i'm getting back a fault message instead of a response.  The fault message says:

    <Fault xmlns="http://www.w3.org/2003/05/soap-envelope"><Code><Value>Receiver</Value><Subcode><Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</Value></Subcode></Code><Reason><Text xml:lang="en-US">The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</Text></Reason></Fault>
    

    I've tried just passing in the guid and logical name for the enitity and not even updating anything and I still get the error. Does anyone know what could be causing this message and if not how I could get a more detailed error message.  I'm not sure where to sent the IncludeExceptionDetailInFaults attribute for Dynamics CRM or if I even can.

    Wednesday, June 8, 2011 1:24 PM

Answers

  • Hi

    It may be worth checking the detailed error message in the CRM trace folder.

    The draw back with CRM Biztalk integration is that , we only get generic error messages like the one you have mentioned.

    HTH

    Sullu

     

     


    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks
    • Marked as answer by chuckc_1 Friday, June 17, 2011 11:36 AM
    Wednesday, June 8, 2011 3:46 PM

All replies

  • Hi

    It may be worth checking the detailed error message in the CRM trace folder.

    The draw back with CRM Biztalk integration is that , we only get generic error messages like the one you have mentioned.

    HTH

    Sullu

     

     


    http://biztalkguide.blogspot.com/ Please mark as answer if this solved the issue.Thanks
    • Marked as answer by chuckc_1 Friday, June 17, 2011 11:36 AM
    Wednesday, June 8, 2011 3:46 PM
  • I'm having an issue pushing updates from BizTalk to Microsoft CRM.  When I look at the xml being passed out of biztalk it seems to include all the information necessary for the update but when I look at the trace logs on the CRM server the attribute field is empty.

    From BizTalk:

    <ns0:Update xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns0="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Metadata" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ns0:entity><ns4:Attributes><key xmlns="http://schemas.datacontract.org/2004/07/System.Collections.Generic">new_workviewobjectid</key><value xsi:type="xs:string" xmlns="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:xs="http://www.w3.org/2001/XMLSchema">10</value></ns4:Attributes><ns4:EntityState xsi:nil="true"></ns4:EntityState><ns4:Id>0A35EA8F-6B90-E011-8B90-005056840005</ns4:Id><ns4:LogicalName>campaign</ns4:LogicalName><ns4:RelatedEntities xsi:nil="true"></ns4:RelatedEntities></ns0:entity></ns0:Update>
    


     

    From CRM Trace Logs:

    OrganizationSdkService starts processing request for user:Update
    As user:4aad9116-9c93-e011-8ede-005056840005
    Request Xml:
    <OrganizationRequest xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Parameters xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><KeyValuePairOfstringanyType><a:key>Target</a:key><a:value i:type="Entity"><Attributes/><EntityState i:nil="true"/><FormattedValues/><Id>0a35ea8f-6b90-e011-8b90-005056840005</Id><LogicalName>campaign</LogicalName><RelatedEntities/></a:value></KeyValuePairOfstringanyType></Parameters><RequestId i:nil="true"/><RequestName>Update</RequestName></OrganizationRequest>
    

    Any ideas on what I may be doing wrong??

    Saturday, June 11, 2011 12:43 PM
  • Please check if all required fields in CRM are provided by the xml you're sending.
    If this post answers your question or helped you in the right direction, please use the "Answer" button on this post.
    Sahin Ozdemir | Consultant, MCTS BizTalk Server, MCPD Solution Development Avanade Netherlands BV
    Wednesday, June 15, 2011 11:23 AM