locked
Work around for BizTalk 2010 and CRM 2011 Compilation errors. RRS feed

  • General discussion

  • Problem Description: Compilation errors in BizTalk 2010 and CRM 2011 online instance integration.

    There are 110 compilation errors shown after generating adapter metadata using consume adapter service wizard in BizTalk project.

    Add Generated Items à Consume WCF Service à Service URL (https://northlake.crm.dynamics.com/XRMServices/2011/Organization.svc ) + Credential (Live ID and Password)

    Compilation Errors: Few of them are as below

    http://schemas.microsoft.com/2003/10/Serialization/:guid' is not declared

    http://schemas.microsoft.com/2003/10/Serialization/Arrays:ArrayOfguid' is not declared

    http://schemas.microsoft.com/xrm/2011/Contracts:Entity' is not declared.

    http://schemas.microsoft.com/xrm/2011/Contracts:EntityCollection' is not declared. And so on nearly 110 errors shown.

    Error Detail

    Error    17        Type 'http://schemas.microsoft.com/2003/10/Serialization/:guid' is not declared.            C:\Users\dmishra02\documents\visual studio 2010\Projects\BTSLearning\CRM2011Integration\OrganizationService_schemas_microsoft_com_2003_10_Serialization_Arrays.xsd            1          1

    In above error “OrganizationService_schemas_microsoft_com_2003_10_Serialization_Arrays.xsd” schema is not able to find definition for guid which is defined in “OrganizationService_schemas_microsoft_com_2003_10_Serialization.xsd”

    Description: These errors are because missing schema references among generated schemas in BizTalk. Even referred schemas are included its location is missing.

    Work around or temporary fix.

    Import referred schemas by following steps below.

    1.     Open Schema OrganizationService_schemas_microsoft_com_2003_10_Serialization_Arrays.xsd in Visual Studio by double clicking in solution explorer (Ignore error message shown)

    2.     Go to property of schema àImports (Collection …)

    à Remove reference for (http://schemas.microsoft.com/2003/10/Serialization/) by selecting the row and deleting it.

    à XSD Import (Add…)  

    à Select Schemas (OrganizationService_schemas_microsoft_com_2003_10_Serialization.xsd)  and click ok

     Apply change and recompile project number of errors will be reduced by one. Do the same for other errors and by fixing first 8 to 10 errors will result into successful compilation.

    This is just temp fix I hope it will be fixed by Microsoft soon and we will not face these error.

    Hope this post helps you. And If you come across some other way to resolve this issue please send me details.

    Thank You.


    //Dharmendra //Bangalore, India
    Monday, January 17, 2011 6:21 AM

All replies

  • Thanks for posting the workaround. I just blogged on generating the schemas for the Organization service at http://msinnovations.wordpress.com/2011/02/08/integrating-biztalk-2010-with-crm-2011-online-organization-service/ so I will post a link to your workaround.

    Thanks!


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Tuesday, February 8, 2011 3:58 PM
    Moderator
  • I can definitely report this issue to Microsoft so they can get started on a hotfix.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Tuesday, February 8, 2011 10:08 PM
    Moderator
  • Thank you verymuch for taking this to Microsoft. Eager to see some progress on this.
    Regards, Dharmendra, Bangalore (India)
    Monday, February 14, 2011 11:22 AM
  • Hey, I reported it to Microsoft so I am just waiting on a response.
    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Monday, February 14, 2011 10:14 PM
    Moderator
  • The latest SDK now has schema files for CRM 2011 and biztalk in folder \schemas\crmbiztalkintegration which you can use with generic Biztalk WCF adapter.
    MSCRM Bing'd - http://bingsoft.wordpress.com
    Check out the CRM 4 to CRM 2011 JavaScript Converter Tool
    CRM Forum Guidance on how to Help Us Help You
    Wednesday, February 16, 2011 11:58 AM
  • Thank you for update. I will try to use those schemas in BizTalk.
    Regards, Dharmendra, Bangalore (India)
    Wednesday, February 23, 2011 8:26 AM
  • I have recently Installed BizTalk 2010 and created a sample project.Add send pipeline and added flatfile assembler component.But when I click on Documnet Schema, I am getting below error

    Type http://schemas.microsoft.com/2003/10/serialization/Arrays:arrayOflong_a7ade9" is not declared.

    I am not sure where to declare the above component.

    Quick help is appretiated.

    Thursday, March 1, 2012 8:47 AM
  • You should import the namespace OrganizationService_schemas_microsoft_com_2003_10_Serialization_Arrays.xsd into the file it mentions in the Error using the procedure mentioned above.

    Regards, NISHIL. MCT,MCTS BizTalk Server,MS BI. Http://www.KnishTech.com Http://www.BiztalkForums.com .Chat with Nishil now! NishilJain @ hotmail,gmail,Yahoo

    Friday, March 16, 2012 9:31 PM