Adding an XML Node

How to add an node to an XML Document (via a C# helper that can be called in an expression shape from an orchestration).

404 when browsing an .SVC file

Get 404 page not found when browsing a web service you know is there.
For example, from IIS you right-click and select “Browse” on the .svc file (so you know it is really there). NOTE: the 404 is a “red herring” an outright lie – a bad error given to us by Microsoft to confuse us.

Static Variable in Map Functoid

Bug Scenario: You are using C# variable in Mapping Functoids.
You run a map through “Test Map” and it works fine each time.
You run a file through a receive location, running the same map. Works great first time, but second time it maps nothing (or behaves differently). When you restart BizTalk Host Instance, it works fine first time, but not second time.
Why are we using a variable in the first place? The ideas was to map a field just one time (in a loop). So once the field is mapped, we need to set a flag not to map it again.

BEC2009

BizTalk Build Error: YourSchemaName.xsd: error BEC2009: Node “” – Schema reference “” is not a valid reference or does not exist in the current project.

Sending an Email

How to send an email from a BizTalk Expression shape (without using the SMTP Send Ports).
Note: There are two mail objects, the older one is System.Web.Mail and the newer one is System.Net.Mail. The code below is for the newer one. It also shows how to connect to an SMTP Host (Server) that requires userid/password authentication.

XML Serializer/Deserializer C# .Net Example

XML Serializer – Sample Code – How to take a C# object and write it to a file in XML “serialized” format.

Uncategorized  

Cannot find definition for the input: XXXX

A message sent to adapter “FILE” on send port “YourSendPortName” with URI “c:\BiztalkDemos\LaSalleLoanAdd\%SourceFileName%” is suspended.
Error details: Unable to read the stream produced by the pipeline.
Details: Cannot find definition for the input: BORROWER