C# EDI Parser – Using RegEx Capture to Xref PO to Filename

This C# code fragment illustrates how to use the RegEx Captures collection within RegEx Groups. I needed the ability to read all files in a directory, and build a CSV to cross reference the PO number to the EDI file it was in. <pre>             //Pattern we want, but then escape all the ^ signs  "REF^BM^(\d*)~";             string […]

BizTalk: “Object reference not set to an instance of an object.” in Loop

Was getting this error xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'MyProjectName.MyOrchName(8f69ac91-51ae-67be-b342-b3ee431859ca)'. The service instance will remain suspended until administratively resumed or terminated. If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception. InstanceId: a38b30ab-455a-479e-8015-ac6d6960b5e9 Shape […]

BizTalk XPath on Left Side of Assignment (equal sign)

How do you use the XPath statement on the left side of an assignment statement (i.e.. the left side of an equation or the equal sign)?  I’m referring to a message assignment shape, in an orchestration, where you want This is the MSDN page for the BizTalk XPath statement.  There are two problems with that […]

BizTalk Orchestrations vs Content Based Routing

When you create a new application, sometimes you have a choice between doing it in an orchestration vs doing the whole thing with send and receive ports and no orchestrations.  The later is called “content based routing,” where messages are routed based on the Filters in the Send Ports. I’m more or lesson assuming you […]