Root element is missing

Home Page Forums BizTalk 2004 – BizTalk 2010 Root element is missing

Viewing 1 reply thread
  • Author
    Posts
    • #12982

      Need more details. The root element probably doesn’t match the one in the schema.

      Guesses and comments:
      1) Use the following code to view your message:

      xmldoc = msgYourOutputFromMap;
      System.Diagnostics.Debug.WriteLine \”xmldoc=\” + xmldoc.outerxml;

      // Get DebugView from Systernals.com or
      // attach Visual Studio to the process to view debug messages.

      // I suggest you write your own debug helper class
      // or use SteamWriter or TextWriter? to write the debug to a
      // a file you can use.

      2) Test your map outside of the orchestration. Right-click map and set properties, then right-click \”Test\”. Then you can view output of map.

      Neal Walters
      http://Biztalk-Training.com

    • #12983

      If it is what Steve said, a namespace problem, I have done weird stuff like creating a variable of type System.Text.StringBuilder and using the .Replace method to manually change one namespace, to remove a namespace, or to add a namespace.

      Neal Walters
      http://Biztalk-Training.com

      • #12984

        Use System.Diagnostics.Debug.WriteLine(\”xxx\”);

        Then in Visual Studio, do a \”Debug Attach\” to process BTSNTSvc.exe.

        I think the messages will appear in the Debug or Output window of Visual Studio.

        Or write a C# helper class that writes to a file. Create a special \”C:\\Biztalk\\DebugOutput\” directory, and then each file name should have a GUID in it so that multiple orch’s don’t write to same file.
        The nice thing about this technique is that the entire \”stream\” of each orchestration is in one file. Helper class could do the work of date/time stamping each line written.

        Alternatively, log debug messages to an SQL table, then use query analyzer or write a little ASP.NET viewer for it.

        Neal

        • #12985

          I’m guessing it’s a namespace problem. When you use the mass copy functoid and the namespace is difference in the target schema it will bring over the original namespace. I don’t really know an easy way around it if that is the problem.

          • #12986

            I have an orchestartion which returns a message from a web service. and this message is transformed to a schme using a mass copy functoid. When I try to access the properties of this messahe get this message:
            \”Root element is missing\”

            I am using a soap adapter.

            Please help.

            • #12987

              I tried using an xmldoc variable see whats in it.

              Can you tell me how to debug a helper class by just using .net IDE and no third party tools?

              I also tried validating the map and it seems fine.

              Are there any other ways to resolve this problem?

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