Error: Finding document specification by message type failed

Home Page Forums BizTalk 2004 – BizTalk 2010 Error: Finding document specification by message type failed

Viewing 1 reply thread
  • Author
    Posts
    • #12444

      Hi,

      I have a simple orchestration with custom pipeline, with map specified at the receive port (using inbound map option). I used a simple i/p and o/p schema to test the framework and everything worked successfully.

      I then replaced the o/p schema with the real (rather complicated) schema I wanted to use, (as well as the map) – When I test the solution, I get the error message that,

      The Messaging Engine failed while executing the inbound map for the message coming from source URL: ….. with the Message Type ….

      Details: \”Finding document specification by message type \”[i:65e1048a52]schemarootnode[/i:65e1048a52]\” failed. Verify that the schema is deployed properly.\”

      Could anyone help me what I am doing wrong. I should also mention here that my o/p schema is a bit complicated, with root node is defined from the \”type\” definition (I am not sure if this matter…)

      Thanks,
      Ken

    • #12445

      Thank You Stephen

      • #12446

        There was a failure executing the receive pipeline: \”Microsoft.BizTalk.DefaultPipelines.XMLReceive\” Source: \”XML disassembler\” Receive Location: \”C:\\Labs\\KanbanSystem\\FileDrops\\Input\\*.xml\” Reason: Finding document specification by message type \”http://RefillmentSchemas.Request#Request\” failed. Verify that the schema is deployed properly.

        any help is appreciated !

        • #12447

          thank you very much step 1 solved the problem….

          • #12448

            There was a failure executing the receive pipeline: \”Microsoft.BizTalk.DefaultPipelines.XMLReceive\” Source: \”XML disassembler\” Receive Location: \”C:\\Labs\\KanbanSystem\\FileDrops\\Input\\*.xml\” Reason: Loading document specification <ReplenishmentSchemas.Envelope> from assembly <ReplenishmentSchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4d8b341742337627> failed. Verify that the schema is deployed properly and that the schema assembly implements the document spec.

            i have another error …..any help?

            • #12449

              i deploy it again and it works….

              • #12450

                using System;
                namespace CallBusinessRules
                {
                class CallBusinessRules
                {
                const string defaultPolicyName = \”Policy1\”;
                const string defaultConnectionString =
                \”Server=(local);Integrated Security=SSPI;database=Northwind\”;
                const string defaultDataConnectionName = \”Northwind\”;
                const string defaultDataTableName = \”ItemThreshold\”;
                static int Main(string[] args)
                {
                if (args.Length < 1)
                return usage(-1);
                string xmlFilePath = null,
                policyName = defaultPolicyName,
                sqlConnectionString = defaultConnectionString,
                dataConnectionName = defaultDataConnectionName,
                dataTableName = defaultDataTableName;
                for (int i = 0; i < args.Length; i++)
                {
                if (args[i][0] == ‘-‘ || args[i][0] == ‘/’)
                {
                if (i == args.Length – 1)
                return usage(-2);
                if (string.Compare(args[i].Substring(1),
                \”policyName\”, true) == 0)
                {
                policyName = args[++i];
                }
                else if (string.Compare(args[i].Substring(1),
                \”sqlConnection\”, true) == 0)
                {
                sqlConnectionString = args[++i];
                }
                else if (string.Compare(args[i].Substring(1),
                \”datasetName\”, true) == 0)
                {
                dataConnectionName = args[++i];
                }
                else if (string.Compare(args[i].Substring(1),
                \”dataTableName\”, true) == 0)
                {
                dataTableName = args[++i];
                }}
                else
                {
                if (xmlFilePath != null)
                return usage(-3);
                xmlFilePath = args[i];
                }
                }
                Microsoft.RuleEngine.TypedXmlDocument document = null;
                try
                {
                xmlReader = new System.Xml.XmlTextReader(xmlFilePath);
                document = new Microsoft.RuleEngine.TypedXmlDocument(
                \”ReplenishmentSchemas.RequestStatus\”, xmlReader);
                }

                catch (Exception ex)
                { Console.WriteLine(ex.Message);
                }
                finally
                {
                if (xmlReader != null)
                xmlReader.Close();
                }

                try
                {
                using (Microsoft.RuleEngine.Policy policy = new
                Microsoft.RuleEngine.Policy(policyName))
                {
                object[] facts = new object[2];
                facts[0] = document;
                using (System.Data.SqlClient.SqlConnection
                sqlConnection = new System.Data.SqlClient.SqlConnection(sqlConnectionString))
                {
                Microsoft.RuleEngine.DataConnection dataConnection = new Microsoft.RuleEngine.DataConnection(dataConnectionName, dataTableName, sqlConnection);
                facts[1] = dataConnection;
                policy.Execute(facts);
                System.Xml.XmlDocument doc =
                document.Document as System.Xml.XmlDocument;
                doc.Save(System.Console.Out);
                sqlConnection.Close();
                }
                }
                }
                catch (Exception ex)
                {
                Console.WriteLine(ex.Message);
                }
                return 0;
                }
                static int usage(int retval)
                {
                Console.WriteLine(@\”
                Use:
                {0}
                xmlDocumentPath
                [-policyName \”\”<policyName>\”\”]
                [-sqlConnection \”\”<connectionString>\”\”]
                [-datasetName \”\”<datasetName>\”\”]
                [-dataTable \”\”<dataTableName>\”\”]
                xmlDocumentPath must point to RefillmentSchemas.RequestStatus XML document instance
                defaults:
                policyName – \”\”{1}\”\”
                connectionString – \”\”{2}\”\”
                dataConnectionName – \”\”{3}\”\”
                leName – \”\”{4}\”\”
                dataTab\”, Environment.GetCommandLineArgs()[0], defaultPolicyName, defaultConnectionString, defaultDataConnectionName, defaultDataTableName);
                return retval;
                }
                }
                }

                I build the above code and i get the following error.

                C:\\Labs\\CallBusinessRules\\Class1.cs(58): The name ‘xmlReader’ does not exist in the class or namespace ‘CallBusinessRules.CallBusinessRules’
                C:\\Labs\\CallBusinessRules\\Class1.cs(67): The type or namespace name ‘xmlReader’ could not be found (are you missing a using directive or an assembly reference?)

                Any help greatly appreciated!!!!!!!!!!!

                • #12451

                  I’m having problems debugging an orchestration. After attaching, I receive
                  the message ‘Debuging Client is not a BizTalk Server
                  Administrator.’

                  Any help would be appreciated………………..

                  • #12452

                    I have seen this type of problem before.

                    Here are some things to try:
                    – un-deploy and redeploy the assemblies you are using
                    – make sure you are not using a custom pipeline, with the Xml Disassembler referencing a single document, and the document is inside the same assembly as the pipeline (if this makes no sense to you then you are not doing it)
                    – make sure all your maps and pipelines are set correctly after you redeploy
                    – make sure you are restarting all the hosts (if all else fails try rebooting the computer)

                    That is all I can think of right now.

                    • #12453

                      1.verify your source file nameapce:http://RefillmentSchemas.Request same as sourse schema yet orch\\receive port. still problem not solved

                      2. create a xml disassembler and add xml disassembler yet receive location.

                      Nar-

                      • #12454

                        it looks to me duplicate receive port version issue…..

                        look at your receive ports on BizTalk explorer, if already there delete it and deploy project again.

                        Nar-

                      • #26056

                        Hey I tryed both but I am still getting this error.

                        Mark

                  • #21782

                    You could get this error if you don’t have the orchestartion in your application but you have the receive location called from iis.

                    Make sure you have the orchestration to go along with your receive port.

                    Huseyin

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