none
Message can not be serialized as the schema http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00503_873 could not be located. Either the schema is not deployed or multiple copies are deployed. RRS feed

  • Question

  • I am new in EDI application and not expert in BizTalk.

    I am developing this BizTalk EDI application which receive XML data and I need to create an EDI file out of it. I've developed a custom XSD for incoming file, created a map to map elements from custom XSD to EDI_X12_873. I wanted to try out the file creation so haven't mapped all the fields, just a few of them. I am hoping that is not causing the issue.

    When I deploy in BizTalk (new installation), I am getting the following error:

    Message can not be serialized as the schema http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00503_873 could not be located. Either the schema is not deployed or multiple copies are deployed.

    Here is the custom XSD I created for incoming message (Again, its not full complete, just set few fields to test out the file creation first. Not all fields mentioned below are mapped, only the ones which has data type defined)

      <?xml version="1.0" encoding="utf-16" ?>
    - <xs:schema xmlns="http://schemas.enercross.com/v1" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://schemas.enercross.com/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:element name="Enercross">
    - <xs:complexType>
    - <xs:sequence>
    - <xs:element name="TransactionControlNo">
    - <xs:complexType>
    - <xs:simpleContent>
      <xs:extension base="xs:int" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
    - <xs:element name="ServiceRequesterContract">
    - <xs:complexType>
    - <xs:simpleContent>
      <xs:extension base="xs:string" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
    - <xs:element name="ModelType">
    - <xs:complexType>
    - <xs:simpleContent>
      <xs:extension base="xs:string" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
    - <xs:element name="BeginningDate">
      <xs:complexType />
      </xs:element>
    - <xs:element name="BeginningTime">
      <xs:complexType />
      </xs:element>
    - <xs:element name="EndingDate">
      <xs:complexType />
      </xs:element>
    - <xs:element name="EndingTime">
      <xs:complexType />
      </xs:element>
    - <xs:element name="CycleIndicator">
      <xs:complexType />
      </xs:element>
    - <xs:element name="ReceiptLocation">
      <xs:complexType />
      </xs:element>
    - <xs:element name="UpstreamIdentifierCode">
      <xs:complexType />
      </xs:element>
    - <xs:element name="UpsteamContractIdentifier">
      <xs:complexType />
      </xs:element>
    - <xs:element name="ReceiptQuantity">
      <xs:complexType />
      </xs:element>
    - <xs:element name="MinimumReceiptQuantity">
      <xs:complexType />
      </xs:element>
    - <xs:element name="ReceiptRankPriority">
      <xs:complexType />
      </xs:element>
    - <xs:element name="UpstreamRankPriority">
      <xs:complexType />
      </xs:element>
    - <xs:element name="UpstreamPackageID">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DeliveryLocation">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DownstreamIdentifierCode">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DownstreamContractIdentifier">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DeliveryQuantity">
      <xs:complexType />
      </xs:element>
    - <xs:element name="MinimumDeliveryQuantity">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DeliveryRankPriority">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DownstreamPackageID">
      <xs:complexType />
      </xs:element>
    - <xs:element name="ServiceProviderActivityCode">
      <xs:complexType />
      </xs:element>
    - <xs:element name="TransactionType">
      <xs:complexType />
      </xs:element>
    - <xs:element name="PackageID">
      <xs:complexType />
      </xs:element>
    - <xs:element name="AssociatedContract">
      <xs:complexType />
      </xs:element>
    - <xs:element name="MaximumRateIndicator">
      <xs:complexType />
      </xs:element>
    - <xs:element name="BidTransportationRate">
      <xs:complexType />
      </xs:element>
    - <xs:element name="CapacityTypeIndicator">
      <xs:complexType />
      </xs:element>
    - <xs:element name="DealType">
      <xs:complexType />
      </xs:element>
    - <xs:element name="NominatorTrackingID">
    - <xs:complexType>
    - <xs:simpleContent>
      <xs:extension base="xs:int" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
    - <xs:element name="BidUpIndicator">
      <xs:complexType />
      </xs:element>
    - <xs:element name="ExportDeclaration">
      <xs:complexType />
      </xs:element>
    - <xs:element name="NominationSubsequentCyleIndicator">
      <xs:complexType />
      </xs:element>
    - <xs:element name="ProcessingRightsIndicator">
      <xs:complexType />
      </xs:element>
    - <xs:element name="NominationUserData1">
      <xs:complexType />
      </xs:element>
    - <xs:element name="NominiationUserData2">
      <xs:complexType />
      </xs:element>
    - <xs:element name="Providers_Requestors">
    - <xs:complexType>
    - <xs:sequence>
    - <xs:element name="ServiceRequester">
    - <xs:complexType>
    - <xs:simpleContent>
      <xs:extension base="xs:string" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
    - <xs:element name="TransportationServiceProvider">
    - <xs:complexType>
    - <xs:simpleContent>
      <xs:extension base="xs:string" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:attributeGroup name="attrGroup0" />

     </xs:schema>

    Receive Pipeline - XML Receive, file based input.

    Send Pipeline - EDISend, file based output.

    BizTalk 2010, Visual Studio 2010. I'm not using any orchestration, just a BizTalk Map to map the fields.

    Can anyone please help me here to resolve this issue?

    Thanks in advance!

    Monday, April 15, 2013 9:11 AM

Answers

  • Hi Check in Biztalk Admin Console .

    schema http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00503_873 has been deployed multiple times.

    Check in Applications--> Add Artifacts --> Schemas.

    Remove one instance then try .

    Regards

    Mohit Gupta

    • Marked as answer by rs_gujral Monday, April 15, 2013 10:26 AM
    Monday, April 15, 2013 9:15 AM

All replies

  • Hi Check in Biztalk Admin Console .

    schema http://schemas.microsoft.com/BizTalk/EDI/X12/2006#X12_00503_873 has been deployed multiple times.

    Check in Applications--> Add Artifacts --> Schemas.

    Remove one instance then try .

    Regards

    Mohit Gupta

    • Marked as answer by rs_gujral Monday, April 15, 2013 10:26 AM
    Monday, April 15, 2013 9:15 AM
  • Here is the screenshot of the schemas in BizTalk, both the source and destinations are deployed.


    • Edited by rs_gujral Monday, April 15, 2013 9:17 AM
    Monday, April 15, 2013 9:16 AM
  • Thanks Mohit, Yes, indeed I can see multiple instances. How can I remove them? I can't see them in my applicaiton but can see in "All Artifacts" ?
    Monday, April 15, 2013 9:22 AM
  • you can see application name from list .

    either remove from previous application or change this Schema namespace .

    MessageType should be unique for all Biztalk Application

    Regards

    Mohit

    Monday, April 15, 2013 9:44 AM
  • Cool, Thanks. I've removed and the error disappeared. But I am getting another error which I was originally getting - can you please help me again - Thanks in advance!

    There was a failure executing the send pipeline: "Microsoft.BizTalk.Edi.DefaultPipelines.EdiSend, Microsoft.BizTalk.Edi.EdiPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "EDI Assembler" Send Port: "EDIOutput" URI: "D:\Work\EDI\EnSolution\Output\%MessageID%.txt" Reason: A message was encountered with root element name of Enercross. It could not be classified as an X12 or Edifact message. The root namespace was http://schemas.enercross.com/v1

    Any idea how to resolve this?

    Monday, April 15, 2013 9:49 AM
  • if you are using EDI Send Pipeline . then  message you are sending should have namespace

    http://schemas.microsoft.com/BizTalk/EDI/X12/2006

    check you are creating right message.

    Regards

    Mohit Gupta

    • Proposed as answer by GKReddy88 Wednesday, June 26, 2013 8:51 AM
    Monday, April 15, 2013 10:04 AM
  • The Schema with namespace http://schemas.enercross.com/v1  is the message you are receiving .

    it means you are sending same message that you are receiving.

    Regards

    Mohit

    Monday, April 15, 2013 10:06 AM