WCF Adapter – The segment name is not valid

I’ve been working on a project for one of Australias leading logistics companies basically taking some fairly complex EDI documents, translating them into various IDOCS, then shunting them off to SAP.  No rocket science but the maps are quite complex and I have reverted to writing raw XSLT in a number of situations.  On one such scenario I receive the below obscure error stating that the segment didn’t exist in the IDOC.  The error was being throw from the WCF adapter not SAP.  After a bit of scratching around I found that I hadn’t ordered the XML appropriately in my custom XSLT which caused the WCF adapter grief.  I reordered my nodes in the order they appear within the generated IDOC schema and everything is good.  Simple fix…
Details:"Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The segment name is not valid for the IDOCTYP, Release, or CIMTYP. Segment name: E2BPPARNR000   IDOCTYP: SALESORDER_CREATEFROMDAT201    Release: 700    CIMTYP:
This entry was posted in BizTalk Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s