BizTalk pipeline custom component disassemble with no document schema

542 Views Asked by At

I am going to parse and format the flat file input based on the business logic stored in SQL server database tables. I don’t have a document schema for the input. I wrote a C# custom component class for the disassemble. When I use the custom component in Disassemble stage in receive pipeline, I am getting document schema not found error.

Did anyone come across with same situation and handled it differently? .

1

There are 1 best solutions below

0
On

BizTalk routes messages using the 'MessageType' property (The namespace + the root node name of the XML in the message) in the context portion of the message. You don't have that with your design so it doesn't know what to do with it.

You can:

  • handle each type of flat file separately by parsing and assigning a unique message type
  • distill the content into one type of message
  • wrap the content of the file in an 'envelope'

You'll need to create a schema for any of those choices.

Namespaces and routing are a spiffy way to handle changes to file structure. If you include the version of the file in the namespace BizTalk can route the message to the code that handles that kind of message for you. You can continue to handle old style messages as well as new formats. We handle pilot programs that way.