How to remove system generated message at receive port?

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to remove system generated message at receive port?

Viewing 1 reply thread
  • Author
    Posts
    • #24627

      Hi,

      I am new to Biztalk. I have made the testing orchestration work. Then I tried to add SendEmail function but I got following error at receive port. I removed all the new function, but still got the same error. It is weird there are two messages in my suspended message details. One is the xml I dropped. The other one is like system generated. I think the system generated one is the cause of missing root element error.

      Does anyone know where the system generated message from and how to fix it?

      Here is the message:

      <MessageInfo>
        <ContextInfo PropertiesCount=”2″>
          <Property Name=”TimerID” Namespace=”http://schemas.microsoft.com/BizTalk/2003/xlangs-runtime-properties&#8221; Value=”00000000-0000-0000-0000-000000000000″ />
        </ContextInfo>
        <PartInfo PartsCount=”0″ />
      </MessageInfo>

       

      Here is the error I got:

      Uncaught exception (see the ‘inner exception’ below) has suspended an instance of service ‘TOPSLD.LDProcess(b2ba09b3-ce9c-d236-d241-5015da389688)’.
      The service instance will remain suspended until administratively resumed or terminated.
      If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
      InstanceId: 3040b613-b399-47bd-928f-155427cc7de2
      Shape name:
      ShapeId: 1c4f4932-994e-4036-bb6d-c3b60baa2a22
      Exception thrown from: segment 1, progress 27
      Inner exception: Root element is missing.
             
      Exception type: XmlException
      Source: System.Xml
      Target Site: Void Throw(System.Exception)
      The following is a stack trace that identifies the location where the exception occured

         at System.Xml.XmlTextReaderImpl.Throw(Exception e)
         at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
         at System.Xml.XmlTextReaderImpl.Read()
         at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
         at System.Xml.Xm

      Thanks,

       

      Jenny

    • #24630

      Regarding your error, Root element is missing is very common error when there is invalid xml, or your source/destination schema is not matching with the actual message type expected etc. The shape name is coming blank in your error message so can’t identify where exactly your problem is. You could debug the orchestration in HAT to know where the problem exactly is so that you could make the problem more specific. 

      • #24631

        Thanks, Mohanaryal.

        I dropped a valid xml at receive port, but there were two messages in the suspended instance.I have no clue where the second message coming from (listed in my original message). It looks like generated by the system. I clicked on the orchestration debugger, it says tracking database doesn’t have any record about service instance yet. It seems the exception is thrown before the orchestration started.

        I am really stuck here. The same orchestration worked before. Maybe some environment changes or setting  changes in the application. Please share your expertise.

        Jenny

        • #24633

          Jenny,

          I dnt think that system generated message has anything to do with ur msg. If your xml is generated from a schema, then pls check again to be sure about the structure of the xml.  See if there are any spaces or special characters appearing before ur xml root, if any then remove them,

          Is your xml message is passing some pipeline to enter into the orchestration, if yes then remove the namespace field in the pipeline. hope it helps. Hope this helps.

          Adil

          • #24639

            Hi Adil,

            Thanks so much for your attention. The xml is the same one I used before. It worked fine. Please take a quick look.

            I have no idea where the system  message from. Never got that before. Could you let me know where is from and what it does?

             

            <AssetData xmlns=”TOPS” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
                <DomainName>MMGCommunity</DomainName>
                <AssetType>Image</AssetType>
                <CreatedUser>System</CreatedUser>
                <LastModifiedUser>System</LastModifiedUser>
                <ReleaseTimestamp>2010-04-06T15:01:29</ReleaseTimestamp>
                <CreatedTimestamp>2010-04-06T15:01:29</CreatedTimestamp>
                <LastModifiedTimestamp>2010-04-06T15:01:29</LastModifiedTimestamp>
                <Priority>5</Priority>
                <CurrentStatus>Published</CurrentStatus>
                <DataFeedUID>Image_PLV_CAMHground_0506_100405142825-920_3PLV_CAMHGroundBreaking0406</DataFeedUID>
                <Properties>
                    <Property>
                        <Name>Title</Name>
                        <Value>Redevelopment continues for CAMH with official ground breaking</Value>
                    </Property>
                    <Property>
                        <Name>Caption</Name>
                        <Value>The shovel is in the ground and the next phase of The Centre for Addiction and Mental Health redevelopment project is underway. Celebrating the groundbreaking event are CAMH client Angela Foot, left, West Queen West BIA Chair Dante Larcade, CAMH Foundation Board of Directors Vice-Chair Ana Lopes, Deputy Mayor and City Councillor Joe Pantalone, CAMH President and CEO Dr. Catherine Zahn, Provincial Minister of Energy and Infrastructure Brad Duguid, CAMH client Nick Carveth, and former CBC radio host Andy Barrie. (April 6, 2010)</Value>
                    </Property>
                <Property>
                    <Name>CreditLine</Name>
                    <Value>Staff photo/ANICE WONG</Value>
                </Property>
                </Properties>
                <ImageDetails>
                    <ImageDetail>
                        <DimensionName>Raw</DimensionName>
                        <Source>Editorial Workbench 3.0</Source>
                        <ImageFormat>JPEG</ImageFormat>
                        <ImageFileName>3PLV_CAMHGroundBreaking0406.jpg</ImageFileName>
                    </ImageDetail>
                </ImageDetails>
            </AssetData>

            thanks,

             

            J

             

             

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.