BUG: You receive a "Cannot Resolve Schema Location Attribute" error message when you Import or Include schemas across different projects in BizTalk Server 2004 (884624)



The information in this article applies to:

  • Microsoft BizTalk Server 2004 Enterprise Edition
  • Microsoft BizTalk Server 2004 Developer Edition
  • Microsoft BizTalk Server 2004 Partner Edition
  • Microsoft BizTalk Server 2004 Standard Edition

SYMPTOMS

In Microsoft BizTalk Server 2004, when you Import or Include schemas from different projects, you receive an error message that is similar to the following:
Cannot Resolve Schema Location Attribute. An error occurred at (3,4)

CAUSE

This behavior may occur if the Imports or the Includes of the schema are across different assemblies and there are redundant Imports or Includes in the relationship. For example, with schemas A.xsd, B.xsd, and C.xsd, the following conditions are true:
  • Schema B.xsd imports A.xsd.
  • Schema C.xsd imports both A.xsd and B.xsd.
If these conditions are true, A.xsd is reachable through two paths. One path is through direct import of A.xsd. The other path is through the direct import of B.xsd.

Whenever this redundancy occurs and these schemas are spread over different assemblies, you receive the error message.

WORKAROUND

To work around this behavior, either break the cycle or redundancy in the schema relationships, or make sure that all the schemas are in the same project. This will cause all the schema locations to be referenced by file paths instead of assembly locations.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MajorLast Reviewed:9/8/2004
Keywords:kbtshoot kbbug KB884624 kbAudDeveloper kbAudITPRO