YABB!
Yet Another BizTalk Blog

True Stories of the XSD Editor

Wednesday, November 07, 2007 10:24 PM

Sometimes when you're working, late at night, hunched over the BizTalk Schema Editor, things just don't seem to work right.

Case in point: right now.

I have a map with a section in the middle of it that looks something like:

            <Project id="4">
                        <ContractId>GS1</ContractId>
                        <CustPO>DXXXXX</CustPO>
                        <ContractType>TM</ContractType>
                        <Owner></Owner>
            </Project>
...

While working with the project containing this schema definition I started running into errors. Specifically, <ContractId> was okay, but <CustPO> seemed to be suddenly invalid. Messages start blowing up coming into the system.

The fix for this:

  1. open your offending schema definition with the editor.
  2. delete all of the nodes inside the record
  3. re-create all of the nodes you just deleted
  4. validate - now it works!
  5. redeploy 'new' schema definition and be on your merry way.

The schema in questoin does import a couple of definitions from a 'global' schema project, but <Project> isn't a part of any of those other than being part of the schema that uses the definitions...


Feedback

No comments posted yet.


Post a comment