<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Eric's BizTalk 2004/2006 blog</title>
    <link rel="self" type="application/xml" href="http://blog.biztalk-info.com/Atom.aspx" />
    <subtitle type="html">My experiences with BizTalk and other stuff</subtitle>
    <id>http://blog.biztalk-info.com/Default.aspx</id>
    <author>
        <name>Eric Stott</name>
        <uri>http://blog.biztalk-info.com/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 1.9.3.51">Subtext</generator>
    <updated>2008-10-09T19:14:45Z</updated>
    <entry>
        <title>Enhancements to the EDI Logging tool (more)</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/30/Enhancements_to_the_EDI_Logging_toolAgain.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/30/Enhancements_to_the_EDI_Logging_toolAgain.aspx</id>
        <published>2008-09-30T03:35:35-06:00:00</published>
        <updated>2008-09-30T03:52:45Z</updated>
        <content type="html">&lt;p&gt;This seems to be a big complaint, there are many companies that would like to have access to the envelope information in the map. There are a few VERY KLUDGY ways of getting data from the message into the map. All of them are VERY BRITTLE. The EDI logger now will create an additional message part called 'envelope' and send it to the message box.&lt;/p&gt;
&lt;p&gt;If you are familiar with the multi part message that the BTAHL7 accelerator creates, this will be a breeze. For those of you not in the provider world, I will walk through the instructions on how to create a process to access the envelope information (you will see that there is a LOT more than just the envelope information).&lt;/p&gt;
&lt;p&gt;To start off with, there are now two message parts to the message that shows up in the message box. The body part is the transaction itself (so you can still use the message in a send port map if necessary).&lt;/p&gt;
&lt;p&gt;Here is a screen shot of the multi part message:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MultiPartEnvelope.png"&gt;&lt;img alt="MultiPartEnvelope" width="800" height="591" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MultiPartEnvelope_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;The schema that is deployed to the GAC that you can reference (C:\WINDOWS\assembly\GAC_MSIL\EDIArchiveProperties\1.0.0.0__e7dd178931a8d66e\EDIArchiveProperties.dll) in your project that will host your orchestration has this structure (click to enlarge):&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/ContextDataSchema.png"&gt;&lt;img alt="ContextDataSchema" width="488" height="480" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/ContextDataSchema_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I normally create at least two different projects for each solution. One that represents the schemas, and the other that represents the mapping/orchestrations. For simplicities sake, I have called the schema project Schemas, and the location that I am going to put my maps and orchestrations will be called Logic. Here is a snapshot of the Solution Explorer:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/SolutionExplorer1.png"&gt;&lt;img alt="SolutionExplorer1" width="338" height="288" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/SolutionExplorer1_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I added the reference to the EDIArchiveProperties by adding a reference and pasting the dll mentioned above:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/AddReference.png"&gt;&lt;img alt="AddReference" width="467" height="529" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/AddReference_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Let's create an orchestration, here you will want to create a multi-part message, making sure you define the body segment first and then the envelope segment second (click to enlarge):&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MultiPartMessage.png"&gt;&lt;img alt="MultiPartMessage" width="290" height="480" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MultiPartMessage_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Next you will create the necessary port and message from this multi-part message. I will jump to the creation of the map. You have a message defined from this multi-part type and you are mapping it to an output. You open up the map configuration dialog window and you fill in two lines, one that represents the envelope and the other that represents the EDI transaction on the input and the output message on the destination window.&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MapDialog1.png"&gt;&lt;img alt="MapDialog1" width="552" height="464" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MapDialog1_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MapDialog2.png"&gt;&lt;img alt="MapDialog2" width="552" height="463" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/MapDialog2_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;And when pressing &amp;lt;OK&amp;gt;, this is the map that is created (click to enlarge), notice that the transaction is at the bottom of the source:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/Map.png"&gt;&lt;img alt="Map" width="472" height="480" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingtool_2467/Map_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This allows you to access both the envelope and context data for that transaction, giving you the ability to map everything that would need to without going through a unnecessary hoops to get data injected into the message.&lt;/p&gt;
&lt;p&gt;For pricing on this component, please refer to our &lt;a target="_blank" href="http://stottis.com/services.html"&gt;services page&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/292.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/292.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/292.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/292.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Enhancements to the EDI Logging Tool</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/30/Enhancements_to_the_EDI_Logging_Tool.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/30/Enhancements_to_the_EDI_Logging_Tool.aspx</id>
        <published>2008-09-30T02:38:32-06:00:00</published>
        <updated>2008-09-30T03:49:26Z</updated>
        <content type="html">&lt;p&gt;By popular demand I have made some significant changes to the EDI logger. None I don't think are more important than the rest, but some do address a REAL thorn in a lot of peoples sides. I will get to that in the next entry about the change to the message. This one deals with the pipeline itself. Below is a picture of the receive pipeline configuration:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingTool_1199/ReceivePipelineConfiguration.png"&gt;&lt;img alt="Receive Pipeline Configuration" width="530" height="480" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingTool_1199/ReceivePipelineConfiguration_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;The send pipeline configuration:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingTool_1199/SendPipelineConfiguration.png"&gt;&lt;img alt="Send Pipeline Configuration" width="581" height="480" src="http://blog.biztalk-info.com/images/EnhancementstotheEDILoggingTool_1199/SendPipelineConfiguration_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;And the following table on how to configure the values:&lt;/p&gt;
&lt;table border="1" cellspacing="1" cellpadding="2" width="500"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;&lt;strong&gt;Row&lt;/strong&gt;&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;&lt;strong&gt;Type&lt;/strong&gt;&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;&lt;strong&gt;Meaning&lt;/strong&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Database&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;BAM Database to store data&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Server&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;BAM Server to store data&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Active&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;boolean&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Activates the logging mechanism, if not, it is simply a pass thru pipeline component&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Count1&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Either XPath or Regex.Match (string count)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Count2&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Either XPath or Regex.Match (string count)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Count3&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Either XPath or Regex.Match (string count)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;FromAddress&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;email address representing BizTalk as source&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;FromName&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Friendly Name representing FromAddress (ex: BizTalk Prod &lt;a href="mailto:biztalkprod@company.com"&gt;biztalkprod@company.com&lt;/a&gt;)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Notify&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;boolean&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Activate flag for email notification&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;NotifyOnlyOnError&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;boolean&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Only send out email if there are validation errors&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;SMTPHost&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;SMTP Host address&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;Secure&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;boolean&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;True: Do not include ISA01/02/03/04 as components to be used &lt;br /&gt;
            False: Include ISA01/02/03/04 as components to be used&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;SubjectLine&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/archive/2008/09/24/EDI_Logger_Emailing_functionality_and_Subject_Line_Macros.aspx"&gt;Macros&lt;/a&gt; and regular text to create customized email subject line&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="165"&gt;ToAddress&lt;/td&gt;
            &lt;td valign="top" width="100"&gt;string&lt;/td&gt;
            &lt;td valign="top" width="229"&gt;Allows multiple email addresses to be included in email notification (semicolon separates email addresses)&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/291.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/291.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/291.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/291.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Error details: Unable to read the stream produced by the pipeline. Details: Cannot find definition for the input: {Record, Element, or Attribute}</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/27/Error_details_Unable_to_read_the_stream_produced_by_the.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/27/Error_details_Unable_to_read_the_stream_produced_by_the.aspx</id>
        <published>2008-09-27T00:27:45-06:00:00</published>
        <updated>2008-09-27T00:27:45Z</updated>
        <content type="html">&lt;p&gt;I have come across this a lot and finally was sick of it enough to write about it.&lt;/p&gt;  &lt;p&gt;The situation is I have an input that has a bunch of optional fields, and the output is normally a fixed length record file. In my case it is normally an EDI file of some kind that I am mapping to a flat file layout. When I start testing the map, I get the following error produced by the flat file assembler:&lt;/p&gt;  &lt;p&gt;Error details: Unable to read the stream produced by the pipeline. Details: Cannot find definition for the input: Address&lt;/p&gt;  &lt;p&gt;The reason is that there was no Address in the source data, but the output required it to be there to conform to the flat file layout. If you look at this &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/aa578060.aspx"&gt;page from msdn on how to force the creation of elements that are optional&lt;/a&gt;. Yes, this is possible, but in my case, I would be creating a script for every element I am creating, which would amount to hundreds of scripting functiods.&lt;/p&gt;  &lt;p&gt;Underlying logic: The mapper when dragging optional source items to a required destination item creates the following logic in XSLT:&lt;/p&gt;  &lt;p&gt;   &lt;/p&gt;&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:246b6592-2719-41ee-92b9-1cec350cf970" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #000000;"&gt;  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:template &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;match&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="/s0:File"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:File&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;test&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@Name"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@Name"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;test&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@Address"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Address&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@Address"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Address&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;test&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@City"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;City&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@City"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;City&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;test&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@State"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;State&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@State"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;State&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;test&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@Zip"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Zip&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="@Zip"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Zip&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:if&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="./text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:File&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:template&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;The easy solution, create a second map that maps the destination input to the destination output (and easy way to do this is by following &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/aa561425.aspx"&gt;these autolink directions&lt;/a&gt;). This creates the following XSLT:&lt;/p&gt;

&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:508c2467-276f-4dc8-892f-44f2785a1a09" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #000000;"&gt;  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:template &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;match&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="/ns0:File"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:File&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Name/text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Address&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Address/text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Address&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;City&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="City/text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;City&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;State&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="State/text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;State&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Zip&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Zip/text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Zip&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="./text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:File&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:template&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;Notice that there are not any if tests.&lt;/p&gt;

&lt;p&gt;You can chain the maps together in an orchestration, or you can place the map in the receive port and the straight thru map in the send port.&lt;/p&gt;

&lt;p&gt;What would be nice is to have a map setting called Force Optional Creation Mapping set default to No to leave the behavior as currently is, but if set to Yes, the underlying logic would remove the xsl:if from the map an force the creation of the destination elements regardless of the presence of the input.&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/290.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/290.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/290.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/290.aspx</trackback:ping>
    </entry>
    <entry>
        <title>EDI Logger Emailing functionality and Subject Line Macros</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/24/EDI_Logger_Emailing_functionality_and_Subject_Line_Macros.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/24/EDI_Logger_Emailing_functionality_and_Subject_Line_Macros.aspx</id>
        <published>2008-09-24T15:49:03-06:00:00</published>
        <updated>2008-09-30T03:49:42Z</updated>
        <content type="html">&lt;p&gt;To give the ability to customize the subject line in the new email component of the EDI logger, you can use following macros:&lt;/p&gt;
&lt;table border="1" cellspacing="1" cellpadding="2" width="500"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;&lt;strong&gt;Macro&lt;/strong&gt;&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA01%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA01 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA02%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA02 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA03%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA03 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA04%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA04 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA05%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA05 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA06%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA06 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA07%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA07 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA08%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA08 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA09%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA09 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA10%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA10 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA11%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA11 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA12%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA12 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA13%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA13 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA14%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA14 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA15%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;ISA15 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS01%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS01 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS02%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS02 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS03%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS03 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS04%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS04 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS05%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS05 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS06%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS06 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS07%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS07 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS08%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;GS08 Value&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;&lt;strong&gt;Other Values&lt;/strong&gt;&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Adapter Type%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Adapter Type of receive transmission&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Received Filename%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Received ftp or file name&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%AdaptercReceive Completed Time%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;When file was picked up&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Port Name%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Port Name of receive location&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Inbound Transport Type%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Inbound Transport Type&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Receive Location Name%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Receive Location Name&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Message Type%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Message Type (&lt;a href="http://namspace#rootelement"&gt;http://namspace#rootelement&lt;/a&gt;)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%ISA Segment%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Entire ISA Segment (beware that private information might be displayed)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%GS Segment%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Entire GS segment&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Party Name%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Party Name&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Transaction%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Transaction&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Transmission ID%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Tranmission ID (represents entire transmission)&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Error Flag&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;'Yes' or 'No' - if there were validation errors or not&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Count 1 Query%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Entire text contained in the Count 1 pipeline field&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Count 1%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Actual value of query 1&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Count 2 Query%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Entire text contained in the Count 2 pipeline field&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Count 2%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Actual value of query 2&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Count 3 Query%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Entire text contained in the Count 3 pipeline field&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Count 3%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Actual value of query 3&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%Error Description%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Entire error description&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td valign="top" width="250"&gt;%FileGUID%&lt;/td&gt;
            &lt;td valign="top" width="250"&gt;Unique ID representing this transaction&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Which will create an email that looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EDILoggerEmailingfunctionalityandSubject_D05B/EDILoggerSampleEmail.png"&gt;&lt;img alt="EDILoggerSampleEmail" width="640" height="306" src="http://blog.biztalk-info.com/images/EDILoggerEmailingfunctionalityandSubject_D05B/EDILoggerSampleEmail_thumb.png" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/289.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/289.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/289.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/289.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Upgrading BizTalk 2006 to BizTalk 2006 R2 - New EDI components not available</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/23/Upgrading_BizTalk_2006_to_BizTalk_2006_R2__New_EDI.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/23/Upgrading_BizTalk_2006_to_BizTalk_2006_R2__New_EDI.aspx</id>
        <published>2008-09-23T10:00:48-06:00:00</published>
        <updated>2008-09-23T10:00:48Z</updated>
        <content type="html">&lt;p&gt;An issue that I recently came across was when we upgraded our servers from BizTalk 2006 to BizTalk 2006 R2 is that we were unable to see the new EDI features. This is the context menu I saw when right clicking the parties:&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/firstContextMenu.png"&gt;&lt;img alt="firstContextMenu" src="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/firstContextMenu_thumb.png" width="109" height="116" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Which is incorrect, I should be seeing this context menu:&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/secondContextMenu.png"&gt;&lt;img alt="secondContextMenu" src="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/secondContextMenu_thumb.png" width="134" height="158" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The resolution is that after you upgrade the server, you need to need to modify the installation in the add/remove programs and choose Modify:&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/addRemove1.png"&gt;&lt;img alt="addRemove1" src="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/addRemove1_thumb.png" width="549" height="450" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Check the BizTalk EDI/AS2 Runtime:&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/addRemove2.png"&gt;&lt;img alt="addRemove2" src="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/addRemove2_thumb.png" width="550" height="450" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Afterwards, you need to go into the BizTalk Configuration and configure the new EDI components (I already did this):&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/addRemove3.png"&gt;&lt;img alt="addRemove3" src="http://blog.biztalk-info.com/images/UpgradingBizTalk2006toBizTalk2006R2NewED_7EBB/addRemove3_thumb.png" width="648" height="537" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Then you get all of the components you are looking for.&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/288.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/288.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/288.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/288.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Extracting data from a sub loop - two ways to accomplish the task</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/12/Extracting_data_from_a_sub_loop__two_ways_to.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/12/Extracting_data_from_a_sub_loop__two_ways_to.aspx</id>
        <published>2008-09-12T09:22:15-06:00:00</published>
        <updated>2008-09-12T09:22:15Z</updated>
        <content type="html">&lt;p&gt;I have come across this issue eleventeen million times, so I figure I would write about it (finally).&lt;/p&gt;  &lt;p&gt;The issue: I want to extract data from a repeating record, but I need the output records based on something that is higher up the food chain. If I simply use the logical equals and value mapping or value mapping (flattening) funtiods, if the qualifier is the first occurrence it will successfully extract the data, otherwise it will not pull the data out.&lt;/p&gt;  &lt;p&gt;Here is a screen shot of an 837 map that shows the issue in the 2000 REF segment:&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/innerlooping.png"&gt;&lt;img alt="innerlooping" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/innerlooping_thumb.png" width="640" height="450" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;For simplicity's sake, I have created a smaller map:&lt;/p&gt;  &lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/smallInnerloop.png"&gt;&lt;img alt="smallInnerloop" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/smallInnerloop_thumb.png" width="618" height="480" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Here is the input:&lt;/p&gt;  &lt;p&gt;   &lt;/p&gt;&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:39c318a6-d41c-40ef-b695-636352303ca7" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:Root &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;xmlns:ns0&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="http://Schemas.Input"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Record&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;SubRecord &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;Qualifier&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="AA"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Here is AA Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;SubRecord&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;SubRecord &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;Qualifier&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="ZZ"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
          &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Here is ZZ Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;SubRecord&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Record&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:Root&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;I want to extract the /Root/Record/SubRecord/Data where the Qualifier is ZZ, but I want to create it driven on the /Root/Record&lt;/p&gt;

&lt;p&gt;By using the out of the box functiods, I get the following output:&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:cd4b127e-b2e3-41c8-9514-850891d90a5b" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:Root &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;xmlns:ns0&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="http://Schemas.Output"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Record&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Record&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:Root&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;Which is not what I wanted.&lt;/p&gt;

&lt;p&gt;There are two ways to extract the data. The first is to use three functiods, a string concatenate functiod to a cumulative concatenate functiod, to a script functiod like this:&lt;/p&gt;

&lt;p&gt;  &lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/innerloopinganswer1.png"&gt;&lt;img alt="innerloopinganswer1" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/innerloopinganswer1_thumb.png" width="640" height="237" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;The string concatenate functiod's arguments are the following:&lt;/p&gt;

&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/concatonatearguments.png"&gt;&lt;img alt="concatonatearguments" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/concatonatearguments_thumb.png" width="343" height="437" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;The cumulative concatenate functiod:&lt;/p&gt;

&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/cumulativeconcatonate.png"&gt;&lt;img alt="cumulativeconcatonate" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/cumulativeconcatonate_thumb.png" width="342" height="436" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;And the arguments to the script functiod:&lt;/p&gt;

&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/scriptarguments.png"&gt;&lt;img alt="scriptarguments" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/scriptarguments_thumb.png" width="344" height="438" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;And the C# script inside the script functiod:&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:5d9bfb24-987c-4a6f-9095-7ef08661bff7" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;public&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;static&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; extractFromInnerLoop(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; qualifier, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; segmentTerminator, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; data)
        {
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; actualdata&lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #800000;"&gt;""&lt;/span&gt;&lt;span style="color: #000000;"&gt;;
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; posOfDelimiter &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; qualifier.Length;
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="color: #000000;"&gt;(posOfDelimiter&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;data.Length) &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;goto&lt;/span&gt;&lt;span style="color: #000000;"&gt; end;
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; delimiterValue &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; data.Substring(posOfDelimiter, &lt;/span&gt;&lt;span style="color: #800080;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;);
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; fullQualifier &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; qualifier &lt;/span&gt;&lt;span style="color: #000000;"&gt;+&lt;/span&gt;&lt;span style="color: #000000;"&gt; delimiterValue; 
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; locOfFullQualifier &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; data.IndexOf(fullQualifier);
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="color: #000000;"&gt; (locOfFullQualifier &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800080;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;)
            {
                actualdata &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800000;"&gt;""&lt;/span&gt;&lt;span style="color: #000000;"&gt;;
                &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;goto&lt;/span&gt;&lt;span style="color: #000000;"&gt; end;
            }
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; posOfSegment &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; data.IndexOf(fullQualifier);
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; segmentEnd &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; data.IndexOf(segmentTerminator, posOfSegment);
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; elementLength &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; segmentEnd&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;posOfSegment&lt;/span&gt;&lt;span style="color: #000000;"&gt;-&lt;/span&gt;&lt;span style="color: #000000;"&gt;fullQualifier.Length;
            actualdata &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; data.Substring(posOfSegment&lt;/span&gt;&lt;span style="color: #000000;"&gt;+&lt;/span&gt;&lt;span style="color: #000000;"&gt;fullQualifier.Length,elementLength);
            end:
            &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; actualdata;
        }&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;It works, but I thought that there must be a better approach. A second approach is to use Inline XSLT Call Template:&lt;/p&gt;

&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/xsltscript.png"&gt;&lt;img alt="xsltscript" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/xsltscript_thumb.png" width="610" height="86" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The arguments to the script:&lt;/p&gt;

&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/xsltarguments.png"&gt;&lt;img alt="xsltarguments" src="http://blog.biztalk-info.com/images/Extractingdatafromasublooptwowaystoaccom_759A/xsltarguments_thumb.png" width="345" height="439" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;and the Inline XSLT Call Template script:&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:5179f1b2-b537-4473-9d0b-705bdf57e6ad" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:template &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="SubLoopExtract"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:param &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="qual"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:element &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Data"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:value-of &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;select&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="SubRecord[@Qualifier = $qual]/Data/text()"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:element&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xsl:template&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;Both of them create the following output:&lt;/p&gt;

&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:79c65aa6-5950-491d-a42e-9250553ba4b2" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:Root &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;xmlns:ns0&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="http://Schemas.Output"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Record&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
     &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;Here is ZZ Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Data&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; 
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;Record&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;ns0:Root&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/287.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/287.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/287.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/287.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Add Gacutil to the Right Click Menu</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/09/10/Add_Gacutil_to_the_Right_Click_Menu.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/09/10/Add_Gacutil_to_the_Right_Click_Menu.aspx</id>
        <published>2008-09-10T16:40:59-06:00:00</published>
        <updated>2008-09-11T13:06:42Z</updated>
        <content type="html">&lt;p&gt;I've used this quite a bit on BTS 2004.  Instead of deploying projects through Visual Studio, sometimes I want to just overwrite the DLL in the GAC, restart BizTalk, and start using it.&lt;/p&gt; &lt;p&gt;Here's one of the easier ways to do this:&lt;/p&gt; &lt;p&gt;Create a .reg file with the following text.&lt;/p&gt; &lt;p&gt;Windows Registry Editor Version 5.00&lt;/p&gt; &lt;p&gt;[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]&lt;/p&gt; &lt;p&gt;@="c:\\WINDOWS\\Microsoft.NET\\Frame­work\\v1.1.4322\\gacutil.exe /i \"%1\" "&lt;/p&gt; &lt;p&gt;Double click the .reg file and right click on the strongly named .DLL to see the new menu item.&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/286.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/286.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/286.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/286.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Split into transactions, suspend interchange on error: KB956051</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/29/Split_into_transactions_suspend_interchange_on_error_KB956051.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/29/Split_into_transactions_suspend_interchange_on_error_KB956051.aspx</id>
        <published>2008-08-29T10:27:35-06:00:00</published>
        <updated>2008-08-29T10:27:35Z</updated>
        <content type="html">&lt;p&gt;For those of you who have trading partners that deal with trading partners that send EDI in batch mode and can't fix/resend edi transactions individually, there was really no way to deal with this in the current R2 process, as there was no schema that could be created to consume the XML message that was created when you choose the &lt;strong&gt;Preserve Interchange - suspend Interchange on Error&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/Splitintotransactionssuspendinterchangeo_8052/image.png" target="_blank"&gt;&lt;img alt="Existing Setting" src="http://blog.biztalk-info.com/images/Splitintotransactionssuspendinterchangeo_8052/image_thumb.png" width="624" height="441" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The issue is that &lt;em&gt;if&lt;/em&gt; the interchange was valid nothing but the EDI send pipeline can consume it:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt; &lt;a href="http://blog.biztalk-info.com/images/Splitintotransactionssuspendinterchangeo_8052/existingxml.png" target="_blank"&gt;&lt;img alt="existingxml" src="http://blog.biztalk-info.com/images/Splitintotransactionssuspendinterchangeo_8052/existingxml_thumb.png" width="640" height="362" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;So Microsoft has created a new processing option &lt;strong&gt;Preserve Interchange - suspend Transaction Sets on Error&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/Splitintotransactionssuspendinterchangeo_8052/image_3.png" target="_blank"&gt;&lt;img alt="image" src="http://blog.biztalk-info.com/images/Splitintotransactionssuspendinterchangeo_8052/image_thumb_3.png" width="623" height="442" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Which can be downloaded from &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;956051" target="_blank"&gt;KB956051&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/285.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/285.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/285.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/285.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Preserve Order while mapping</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/28/Preserve_Order_while_mappingAgain.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/28/Preserve_Order_while_mappingAgain.aspx</id>
        <published>2008-08-28T14:07:12-06:00:00</published>
        <updated>2008-08-28T14:07:12Z</updated>
        <content type="html">&lt;p&gt;There is the issue of the behavior of the mapping process creates invalid XML.&lt;/p&gt;  &lt;p&gt;The input instance looks like this:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-right: 0px; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px; display: inline" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:eff36e78-ffba-41e9-8152-8a4fe165276b" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xml&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopA &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopB &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopA &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopB &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xml&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;However, when using the mapper, you create your output and it ends up looking like this:&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;div style="padding-right: 0px; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px; display: inline" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:0e6158d3-1687-492c-bf41-0bc8e9692592" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;xml&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopA &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopA &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopB &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
 &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;loopB &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;xml&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;How to get this to work (&lt;strong&gt;only in R2&lt;/strong&gt;) is to open up the btm file and change the following attribute from its default value of No to Yes in the &lt;strong&gt;mapsource&lt;/strong&gt; element&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PreserveSequenceOrder&lt;/strong&gt;="No"&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;div style="padding-right: 0px; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 1125px; padding-top: 0px; display: inline" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:807aa1d4-3d93-4074-a205-10afcf80b4e9" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;mapsource &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;Name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="BizTalk Map"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; BizTalkServerMapperTool_Version&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="2.0"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; Version&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="2"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; XRange&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="100"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; YRange&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="420"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; OmitXmlDeclaration&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; TreatElementsAsRecords&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; OptimizeValueMapping&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; GenerateDefaultFixedNodes&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; PreserveSequenceOrder&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; CopyPIs&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; method&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="xml"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; xmlVersion&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="1.0"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; IgnoreNamespacesForLinks&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;

&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Here is the new code:&lt;/p&gt;

&lt;div style="padding-right: 0px; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px; display: inline" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:3cfbcf82-021b-4431-a2fc-73dcee0c2cab" class="wlWriterSmartContent"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;mapsource &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;Name&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="BizTalk Map"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; BizTalkServerMapperTool_Version&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="2.0"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; Version&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="2"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; XRange&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="100"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; YRange&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="420"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; OmitXmlDeclaration&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; TreatElementsAsRecords&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; OptimizeValueMapping&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; GenerateDefaultFixedNodes&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; PreserveSequenceOrder&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; CopyPIs&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="No"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; method&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="xml"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; xmlVersion&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="1.0"&lt;/span&gt;&lt;span style="color: #FF0000;"&gt; IgnoreNamespacesForLinks&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;="Yes"&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;

&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/284.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/284.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/284.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/284.aspx</trackback:ping>
    </entry>
    <entry>
        <title>MSHUG HL7 Based Data Warehousing</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/26/MSHUG_hl7_Based_Data_Warehousing.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/26/MSHUG_hl7_Based_Data_Warehousing.aspx</id>
        <published>2008-08-26T17:10:17-06:00:00</published>
        <updated>2008-08-26T17:10:58Z</updated>
        <content type="html">&lt;p&gt;Eric Washburn CTO Athena Advanced Technologies&lt;/p&gt; &lt;p&gt;Very interesting method to warehouse all data components to the warehouse. There is a separate table that defines all of the complex data types, but each segment has its own table.&lt;/p&gt; &lt;p&gt;There is a unique key in the segment to represent the complex data type that then ties the segment to the complex type.&lt;/p&gt; &lt;p&gt;I would write more about it, but I was too interested in seeing how everything was done. &lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/281.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/281.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/281.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/281.aspx</trackback:ping>
    </entry>
    <entry>
        <title>MSHUG - HealthVault Architecture Overview</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/26/MSHUG__HealthVault_Architecture_Overview.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/26/MSHUG__HealthVault_Architecture_Overview.aspx</id>
        <published>2008-08-26T15:58:55-06:00:00</published>
        <updated>2008-08-26T15:58:55Z</updated>
        <content type="html">&lt;p&gt;Sean Nolan - Chief Architect, Microsoft&lt;/p&gt; &lt;p&gt;Health Vault is like PayPal, they go to sites that use Health Vault to communicate data.&lt;/p&gt; &lt;p&gt;Why should you integrate with HealthVault:&lt;/p&gt; &lt;p&gt;Private and Secure Storage&lt;/p&gt; &lt;p&gt;Consistently log in using secure login&lt;/p&gt; &lt;p&gt;Application Interoperability - the ability to collect various data into one central repository&lt;/p&gt; &lt;p&gt;Device Connectivity - The ability for new devices to communicate directly to the health vault&lt;/p&gt; &lt;p&gt;Application and Device Discovery&lt;/p&gt; &lt;p&gt;Privacy and Security Focused - the customer is in control, the customer is in control of their own privacy&lt;/p&gt; &lt;p&gt;Industry Standards, it is an open platform, free and published SDK and APIs,  (found on the &lt;a href="http://msdn.microsoft.com/en-us/healthvault/default.aspx" target="_blank"&gt;HealthVault site&lt;/a&gt;) &lt;a title="This is the closest thing I could find..." href="http://www.microsoft.com/interop/osp/default.mspx" target="_blank"&gt;Community Promise&lt;/a&gt;, Easily Extensible Data Model, Strong Developer Community: &lt;a href="http://msdn.microsoft.com/en-us/healthvault/default.aspx" target="_blank"&gt;MSDN Documentation&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Modes:&lt;/p&gt; &lt;p&gt;Native: HealthVault is an online database&lt;/p&gt; &lt;p&gt;Copy: HealthVault is a synchronization resource to (imporpe cloyt/export/merge)&lt;/p&gt; &lt;p&gt; Per-type globalized transformation&lt;/p&gt; &lt;ul&gt; &lt;li&gt;html&lt;/li&gt; &lt;li&gt;tabular view&lt;/li&gt; &lt;li&gt;Standards and Device Exchange&lt;/li&gt; &lt;li&gt;Custom (custom xsl) on the Healthvault server 'dime'&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Custodianship - allows to permissions to be granted to people (children for example) that can be granted on a 'sliding' scale, eventually, you can give it up when they move away.&lt;/p&gt; &lt;p&gt;Online and Offline processing mode, grants access instantly, and only for that session, or a longer term if necessary&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/280.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/280.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/280.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/280.aspx</trackback:ping>
    </entry>
    <entry>
        <title>MSHUG - Edifects using BizTalk Solution for end-to-end HIPAA transaction processing</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/26/MSHUG__Edifects_using_BizTalk_Solution_for_endtoend_HIPAA_transaction.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/26/MSHUG__Edifects_using_BizTalk_Solution_for_endtoend_HIPAA_transaction.aspx</id>
        <published>2008-08-26T12:21:44-06:00:00</published>
        <updated>2008-08-26T12:21:44Z</updated>
        <content type="html">&lt;p&gt;Herb Larsen Sr. Vice President of Alliances, Edifects Inc.&lt;/p&gt; &lt;p&gt;Not a lot of payors or providers have found that that ROI has been reached by implementing HIPAA.&lt;/p&gt; &lt;p&gt;A lot of the reasons is because the tasks of moving the edits from the back end system to the front end (BizTalk) is difficult.&lt;/p&gt; &lt;p&gt;Ramp Manager product - allows to test without being on the test without having to be on the phone with the other party and asking them to 'submit' the file and read back the errors.&lt;/p&gt; &lt;p&gt;Edifects XEngine - built on BizTalk Server 2006 R2&lt;/p&gt; &lt;p&gt;Because MS is not considered a covered entity, MS has not supplied a lot of HIPAA security standard documentation.&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/279.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/279.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/279.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/279.aspx</trackback:ping>
    </entry>
    <entry>
        <title>MSHUG Opening Keynote</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/26/MSHUG_Opening_Keynote.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/26/MSHUG_Opening_Keynote.aspx</id>
        <published>2008-08-26T11:33:28-06:00:00</published>
        <updated>2008-08-26T11:33:28Z</updated>
        <content type="html">&lt;p&gt;The next conference will be on April 4th 2009 in Chicago. &lt;/p&gt; &lt;p&gt;Steve Aylward - General Manager Health and Life Sciences Microsoft&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;Watched the &lt;a href="http://microsoft.com/industry/healthcare/media/health07_hires.wvx" target="_blank"&gt;future of Microsoft in healthcare video&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Microsoft is making a huge investment in healthcare.&lt;/p&gt; &lt;p&gt;It took 4 releases (10 years) to outsell MSDOS&lt;/p&gt; &lt;p&gt;It took 9 releases (11 years) to become most popular word processor&lt;/p&gt; &lt;p&gt;It took 5 releases (10 years) to become the leading spreadsheet&lt;/p&gt; &lt;p&gt;$8 billion in R&amp;amp;D, a large (no numbers as far as percentage directed directly at Healthcare, but a large portion)&lt;/p&gt; &lt;p&gt;In 2000, MS had 63 employees dedicated to Healthcare.&lt;/p&gt; &lt;p&gt;Amalga - Health Information System - not available in the US. Designed for the emerging markets. (used to be called Global Care)&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.microsoft.com/amalga/default.mspx" target="_blank"&gt;Amalga - Unified Intelligence System&lt;/a&gt; - not limited to caregivers, but can be customized to end users&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.healthvault.com/" target="_blank"&gt;HealthVault&lt;/a&gt; - Internet health platform that enables third parties to create applications to stored personalized health care information&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/278.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/278.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/278.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/278.aspx</trackback:ping>
    </entry>
    <entry>
        <title>HTTP Post adapter</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/26/HTTP_Post_adapter.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/26/HTTP_Post_adapter.aspx</id>
        <published>2008-08-26T00:54:01-06:00:00</published>
        <updated>2008-08-26T00:54:22Z</updated>
        <content type="html">&lt;p&gt;I wrote my first two way adapter the other day. I have created it to communicate with &lt;a href="http://zirmed.com/public/index.aspx" target="_blank"&gt;Zirmed&lt;/a&gt; to send insurance verification request/responses via a HTTP Post.&lt;/p&gt; &lt;p&gt;My question, however, is how often are people using this method of transport, and would anyone else be interested in using this?&lt;/p&gt; &lt;p&gt;The REAL dilemma however is that there are specific items that are necessary to communicate with Zirmed, but any other post is going to look drastically different. How best to approach an enterprise solution though, do you walk thru a wizard, possibly pointing to the web page post page to 'interrogate'  what needs to be passed?&lt;/p&gt; &lt;p&gt;Let me know if there is anyone out there interested...&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/277.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/277.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/277.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/277.aspx</trackback:ping>
    </entry>
    <entry>
        <title>BizTalk Message to System.String in BizTalk Server 2006</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/22/BizTalk_Message_to_System.String_in_BizTalk_Server_2006.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/22/BizTalk_Message_to_System.String_in_BizTalk_Server_2006.aspx</id>
        <published>2008-08-22T18:10:05-06:00:00</published>
        <updated>2008-08-22T18:10:05Z</updated>
        <content type="html">&lt;p&gt;I've needed to cast my BizTalk message as a System.String in a couple of occasions so I'm going to put it here to remember how to do it.&lt;br /&gt;1. Create a Variable of type System.Xml.XmlDocument (I'm calling it xml_Temp here)&lt;br /&gt;2. Create a Variable of Type string (I'm calling it str_MessageAsString here)&lt;br /&gt;3. In the expression shape insert the following code:  &lt;/p&gt;&lt;p&gt;//Instantiate your xml_Temp System.Xml.XmlDocument&lt;br /&gt;xml_Temp = new System.Xml.XmlDocument();&lt;br /&gt;//Assign the message you want as a string to your new xml_Temp System.Xml.XmlDocument&lt;br /&gt;xml_Temp = msg_YourOriginalMessage;&lt;br /&gt;//Assign the .OuterXml property of your xml_Temp to your str_MessageAsString System.String&lt;br /&gt;str_MessageAsString = xml_Temp.OuterXml;&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/276.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/276.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/276.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/276.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Module window not available</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/21/Module_window_not_available.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/21/Module_window_not_available.aspx</id>
        <published>2008-08-21T18:46:54-06:00:00</published>
        <updated>2008-08-21T18:46:54Z</updated>
        <content type="html">&lt;p&gt;If you are debugging pipelines or adapters in BizTalk, you can't just 'debug' the said component in Visual Studio (however, there are rumors of that changing in v.Next), you have to deploy and run it in the service.&lt;/p&gt;  &lt;p&gt;You need to attach to the BTSNTSvc.exe and if you are lucky, all of the pdb files are in the correct place, and you can instantly start debugging.&lt;/p&gt;  &lt;p&gt;However, if you are like me, and the dlls are in separate locations from the pdb files (GAC for example), you need to associate the dll with the pdb. This can only be done via the Module window. &lt;/p&gt;  &lt;p&gt;According to the &lt;a href="http://msdn.microsoft.com/en-us/library/4c8f14c9.aspx" target="_blank"&gt;Module Window definition on MSDN&lt;/a&gt; you should "On the Debug menu, choose Windows, and then click Modules."&lt;/p&gt;  &lt;p&gt;However, this is what I see:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/Modulewindownotavailable_FA08/debugmenu.png" target="_blank"&gt;&lt;img height="304" alt="debugmenu" src="http://blog.biztalk-info.com/images/Modulewindownotavailable_FA08/debugmenu_thumb.png" width="412" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The easiest you can bring it up is by pressing Ctrl - Alt - U&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/275.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/275.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/275.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/275.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Event Log Monitor</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/20/Event_Log_Monitor.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/20/Event_Log_Monitor.aspx</id>
        <published>2008-08-20T15:49:12-06:00:00</published>
        <updated>2008-08-20T16:23:31Z</updated>
        <content type="html">&lt;p&gt;I've created a nice little tool I'm using more and more.  As a BizTalk Administrator, I'm constantly needing to ensure nothing is going wrong on my servers.  I need an alert process that could email me if/when there is a problem.  I've created an event log monitoring tool that will email me depending on the search criteria I specify.  I've included a feature that allows me to create multiple emails depending on the exact error.  I use this quite a lot if a specific user needs to only know about their particular error.&lt;/p&gt; &lt;p&gt;The program is a single executable.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/EventLogMonitor_D074/image.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="18" alt="image" src="http://blog.biztalk-info.com/images/EventLogMonitor_D074/image_thumb.png" width="185" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;It is executed via the command prompt and takes the following parameters, which can be in any order.&lt;/p&gt; &lt;p&gt;-TOEMAIL: = ToEmail (Required) Can include multiple To Email addresses.                                  &lt;br /&gt;-FROMEMAIL: = FromEmail (Required)                                                      &lt;br /&gt;-SMTPSERVER: = SmtpServer (Required)                                                    &lt;br /&gt;-NUMBEROFDAYS: = Number of Days to look back (Optional) if not set to today's data    &lt;br /&gt;-NUMBEROFHOURS: = Number of Hours to look back (Optional) if not set will use -NUMBEROFDAYS    &lt;br /&gt;/n = Send Email if there are no events (Optional)                                       &lt;br /&gt;/e = Send Errors (Optional)                                                             &lt;br /&gt;/w = Send Warnings (Optional)                                                           &lt;br /&gt;/i = Send Information (Optional)                                                        &lt;br /&gt;-EVENTSOURCE: = Event Source (Optional) Can include none or multiple Event Sources to include in the search                          &lt;br /&gt;-EVENTCATEGORY: = Event Category (Optional) Can include none or multiple Event Categories to include in the search&lt;br /&gt;-EVENTMESSAGESEARCHSTRING: = Event Message Search String (Optional) Can include none or multiple Event Message Strings to include in the search &lt;/p&gt;&lt;p&gt;I usually set up a batch file that is run on the Windows Scheduler and sends me an email every night for the previous day's information. &lt;/p&gt;&lt;p&gt;For example, I have the following event log: &lt;/p&gt;&lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/EventLogMonitor_D074/image_3.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="493" alt="image" src="http://blog.biztalk-info.com/images/EventLogMonitor_D074/image_thumb_3.png" width="554" border="0" /&gt;&lt;/a&gt;  &lt;/p&gt;&lt;p&gt;I would like to receive an email for all the Events of Type Errors in the "BizTalk Server 2006" Category over the last 5 days.  I would execute the following command at the command prompt: &lt;/p&gt;&lt;p&gt;"Generic Event Log Emailer.exe" -TOEMAIL:jstott@stottcreations.com -FROMEMAIL:MYBIZTALKERRORS@Biztalkerrors.com -SMTPSERVER:yoursmtpserver.com  &lt;/p&gt;&lt;p&gt;-NUMBEROFDAYS:5 "-EVENTCATEGORY:BizTalk Server 2006" /e &lt;/p&gt;&lt;p&gt;Alternatively, I would just create a batch file with that string and schedule it to execute every 5 hours. &lt;/p&gt;&lt;p&gt;I then get an email every 5 hours with all the information I'm looking for. &lt;/p&gt;&lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/EventLogMonitor_D074/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="273" alt="image" src="http://blog.biztalk-info.com/images/EventLogMonitor_D074/image_thumb_4.png" width="611" border="0" /&gt;&lt;/a&gt;  &lt;/p&gt;&lt;p&gt;Don't forget that you can also search using the -EVENTMESSAGESEARCHSTRING: parameter.  Using this parameter, you can really narrow down your search to specific messages. &lt;/p&gt;&lt;p&gt;Here are my list of planned upgrades: &lt;/p&gt;&lt;p&gt;1.  Add regular expressions to the -EVENTMESSAGESEARCHSTRING: parameter &lt;/p&gt;&lt;p&gt;2.  Add -EXCLUDE parameters to allow you to exclude Source, Categories, or Messages instead of only including. &lt;/p&gt;&lt;p&gt;3.  Add the other Event Logs besides the Application Event Log. &lt;/p&gt;&lt;p&gt;4.  Create a real time monitoring tool that would push errors to you as they happen instead of pulling them at certain intervals. &lt;/p&gt;&lt;p&gt;If you have any other features you'd like to see in this product, please email me. &lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/274.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/274.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/274.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/274.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Examples of the EDI Reporting tool</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/19/Examples_of_the_EDI_Reporting_tool.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/19/Examples_of_the_EDI_Reporting_tool.aspx</id>
        <published>2008-08-19T02:52:53-06:00:00</published>
        <updated>2008-09-30T03:50:14Z</updated>
        <content type="html">&lt;p&gt;In the &lt;a target="_blank" href="http://blog.biztalk-info.com/archive/2008/06/18/R2_EDI_Reporting_what_is_lacking_and_what_I_did.aspx"&gt;initial entry&lt;/a&gt;, and the &lt;a target="_blank" href="http://blog.biztalk-info.com/archive/2008/08/13/EDI_Counting_functionality.aspx"&gt;follow up entry&lt;/a&gt;, I showed the table/view structure of the components that I built.&lt;/p&gt;
&lt;p&gt;Here are some examples of what is available so you can see the real values for each transaction reported.&lt;/p&gt;
&lt;p&gt;Here are the settings for the pipeline configuration: (notice I am tracking 3 different objects in the data, so I can monitor these values through the flow of the data so I have a point of reference as far as counts)&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport0.png"&gt;&lt;img alt="edireport0" width="567" height="514" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport0_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Because the table is so large, I am going to break it into chunks:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/ediReportingView.png"&gt;&lt;img alt="ediReportingView" width="294" height="605" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/ediReportingView_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;table border="1" cellspacing="1" cellpadding="2" width="800"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#008000" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport1.png"&gt;&lt;img alt="edireport1" width="769" height="104" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport1_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#800080" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport2.png"&gt;&lt;img alt="edireport2" width="779" height="102" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport2_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#ff0099" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport3.png"&gt;&lt;img alt="edireport3" width="696" height="103" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport3_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#000000" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport4.png"&gt;&lt;img alt="edireport4" width="685" height="102" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport4_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#ffa500" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport5.png"&gt;&lt;img alt="edireport5" width="723" height="101" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport5_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#0000ff" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport6.png"&gt;&lt;img alt="edireport6" width="788" height="101" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport6_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td bgcolor="#ffff00" width="800" align="center"&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport7.png"&gt;&lt;img alt="edireport7" width="786" height="101" src="http://blog.biztalk-info.com/images/ExamplesoftheEDIReportingtool_1A69/edireport7_thumb.png" /&gt;&lt;/a&gt; &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/273.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/273.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/273.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/273.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Failed to instantiate adapter</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/15/Failed_to_instantiate_adapter.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/15/Failed_to_instantiate_adapter.aspx</id>
        <published>2008-08-15T11:15:23-06:00:00</published>
        <updated>2008-08-15T11:15:23Z</updated>
        <content type="html">&lt;p&gt;I created an HTTP Post adapter and packaged it all up in a setup package. When I installed it, I opened up the management console and started to configure the adapter and I received the the following error:&lt;/p&gt;  &lt;p&gt;Failed to instantiate adapter "{Adapter Name}".&lt;/p&gt;  &lt;p&gt;Assembly file: "{dll source}"&lt;/p&gt;  &lt;p&gt;Type name: "{Type}"&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/Failedtoinstantiateadapter_9041/instantiate.png" target="_blank"&gt;&lt;img height="139" alt="instantiate" src="http://blog.biztalk-info.com/images/Failedtoinstantiateadapter_9041/instantiate_thumb.png" width="783" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The problem was that the source was compiled with a dll that was on the development box, but not on the destination box. (In this case it was the Microsoft.Samples.BizTalk.Adapter.Common.dll) was not deployed to the GAC.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Once I put the assembly in the GAC, I didn't have a problem.&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/272.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/272.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/272.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/272.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Retrieve the LoaderExceptions property for more information</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/15/Retrieve_the_LoaderExceptions_property_for_more_information.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/15/Retrieve_the_LoaderExceptions_property_for_more_information.aspx</id>
        <published>2008-08-15T10:29:09-06:00:00</published>
        <updated>2008-08-15T10:29:09Z</updated>
        <content type="html">&lt;p&gt;"There are no differences between BizTalk Server 2006 R2 and BizTalk Server 2006 except the enhanced EDI, WCF, and RFID functionality"&lt;/p&gt;  &lt;p&gt;So I was creating a new HTTP Post adapter. I created it on a server that is R1.&lt;/p&gt;  &lt;p&gt;When I copied the code to an R2 box and compiled the code and ran the Adapter Registry Wizard, I got the following error:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/RetrievetheLoaderExceptionspropertyformo_8568/LoaderExceptions.png" target="_blank"&gt;&lt;img height="119" alt="LoaderExceptions" src="http://blog.biztalk-info.com/images/RetrievetheLoaderExceptionspropertyformo_8568/LoaderExceptions_thumb.png" width="624" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The issue is that in the Transmit adapter project, it was referencing Microsoft.Samples.BizTalk.Adapter.Common that was not compiled on the R2 server. &lt;/p&gt;  &lt;p&gt;The fix:&lt;/p&gt;  &lt;p&gt;Simply Clean the project and Rebuild the project where it will tell you that a dll is missing.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/RetrievetheLoaderExceptionspropertyformo_8568/LoaderExceptionsResolution.png" target="_blank"&gt;&lt;img height="432" alt="LoaderExceptionsResolution" src="http://blog.biztalk-info.com/images/RetrievetheLoaderExceptionspropertyformo_8568/LoaderExceptionsResolution_thumb.png" width="209" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/271.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/271.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/271.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/271.aspx</trackback:ping>
    </entry>
    <entry>
        <title>EDI Counting functionality</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/13/EDI_Counting_functionality.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/13/EDI_Counting_functionality.aspx</id>
        <published>2008-08-13T10:25:12-06:00:00</published>
        <updated>2008-09-30T03:50:47Z</updated>
        <content type="html">&lt;p&gt;By popular demand, I have put the ability to count in the &lt;a target="_blank" href="http://blog.biztalk-info.com/archive/2008/06/18/R2_EDI_Reporting_what_is_lacking_and_what_I_did.aspx"&gt;EDI reporting&lt;/a&gt;. This allows you to count up to three different objects in the data (via an XPATH statement). Here is the pipeline component:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EDICountingfunctionality_8466/countPipeline.png"&gt;&lt;img alt="countPipeline" width="486" height="555" src="http://blog.biztalk-info.com/images/EDICountingfunctionality_8466/countPipeline_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;And here is the updated view:&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="http://blog.biztalk-info.com/images/EDICountingfunctionality_8466/newView.png"&gt;&lt;img alt="newView" width="317" height="622" src="http://blog.biztalk-info.com/images/EDICountingfunctionality_8466/newView_thumb.png" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/270.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/270.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/270.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/270.aspx</trackback:ping>
    </entry>
    <entry>
        <title>zombie resurrector</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/12/zombie_resurrector.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/12/zombie_resurrector.aspx</id>
        <published>2008-08-12T16:07:41-06:00:00</published>
        <updated>2008-08-12T16:07:41Z</updated>
        <content type="html">&lt;p&gt;On this &lt;a href="http://msdn.microsoft.com/en-us/library/aa578028.aspx" target="_blank"&gt;BizTalk Glossary Page&lt;/a&gt; it states that a zombie ressurector is: An orchestration that listens at the MessageBox database for zombies and resurrects those that meet certain criteria.&lt;/p&gt;  &lt;p&gt;The previous definition of a zombie is: A message that was not processed by an orchestration. It is not in the Suspended queue or anywhere else where it will be retried.&lt;/p&gt;  &lt;p&gt;If there is an orchestration that is looking for 'zombies' - then they were never zombies were they?&lt;/p&gt;  &lt;p&gt;Once you have answered that, then you can answer the question of which came first, the chicken or the egg?&lt;/p&gt;&lt;img src="http://blog.biztalk-info.com/aggbug/269.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://blog.biztalk-info.com/comments/269.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.biztalk-info.com/comments/commentRss/269.aspx</wfw:commentRss>
        <trackback:ping>http://blog.biztalk-info.com/services/trackbacks/269.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Job Schedules running in less than 10 seconds</title>
        <link rel="self" type="text/html" href="http://blog.biztalk-info.com/archive/2008/08/12/Job_Schedules_running_in_less_than_10_seconds.aspx" />
        <id>http://blog.biztalk-info.com/archive/2008/08/12/Job_Schedules_running_in_less_than_10_seconds.aspx</id>
        <published>2008-08-12T11:11:09-06:00:00</published>
        <updated>2008-08-12T11:12:18Z</updated>
        <content type="html">&lt;p&gt;I have needed for some SQL jobs to run every second. I went into the Jobs and started to configure the job, unfortunately, the lowest value I can choose is minute:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.biztalk-info.com/images/JobSchedulesrunninginlessthan10seconds_8F2C/scheduleGUI.png" target="_blank"&gt;&lt;img height="186" alt="scheduleGUI" src="http://blog.biztalk-info.com/images/JobSchedulesrunninginlessthan10seconds_8F2C/scheduleGUI_thumb.png" width="544" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;So I found that in the script, the underlying values for Occurs (@freq_subday_interval) every are as follow:&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;table cellspacing="1" cellpadding="2" width="400" border="1"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="200"&gt;&lt;strong&gt;Value&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="200"&gt;&lt;strong&gt;Description (unit)&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;1&lt;/td&gt;        &lt;td valign="top" width="200"&gt;At the specified time&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;2&lt;/td&gt;        &lt;td valign="top" width="200"&gt;Seconds&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;4&lt;/td&gt;        &lt;td valign="top" width="200"&gt;Minutes&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="200"&gt;8&lt;/td&gt;        &lt;td valign="top" width="200"&gt;Hours&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;So I scripted the schedule like this:&lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:88bdbc4d-c7eb-466b-a9cf-48171fa1da20" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;EXEC&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #008000;"&gt;@ReturnCode&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; msdb.dbo.sp_add_jobschedule &lt;/span&gt;&lt;span style="color: #008000;"&gt;@job_id&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #008000;"&gt;@jobId&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #008000;"&gt;@name&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt;N&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;EverySecond&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@enabled&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_type&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;4&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_interval&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;4&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_subday_type&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_subday_interval&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_relative_interval&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_recurrence_factor&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@active_start_date&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;20080812&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@active_end_date&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;99991231&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@active_start_time&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;, 
        &lt;/span&gt;&lt;span style="color: #008000;"&gt;@active_end_time&lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;235959&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;I got the following error: &lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;font color="#ff0000"&gt;Msg 14278, Level 16, State 1, Procedure sp_verify_schedule, Line 214
      &lt;br /&gt;The schedule for this job is invalid (reason: The specified '@freq_subday_interval' is invalid.).&lt;/font&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here is the logic in the sp_verify_schedule&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:97169284-bd5d-4d26-87ff-8c54364fe17b" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #000000;"&gt;  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;IF&lt;/span&gt;&lt;span style="color: #000000;"&gt; ((&lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_subday_type&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #808080;"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;0x1&lt;/span&gt;&lt;span style="color: #000000;"&gt;) &lt;/span&gt;&lt;span style="color: #808080;"&gt;AND&lt;/span&gt;&lt;span style="color: #000000;"&gt; (&lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_subday_interval&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #808080;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;))
     &lt;/span&gt;&lt;span style="color: #808080;"&gt;OR&lt;/span&gt;&lt;span style="color: #000000;"&gt;
     ((&lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_subday_type&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;0x2&lt;/span&gt;&lt;span style="color: #000000;"&gt;) &lt;/span&gt;&lt;span style="color: #808080;"&gt;AND&lt;/span&gt;&lt;span style="color: #000000;"&gt; (&lt;/span&gt;&lt;span style="color: #008000;"&gt;@freq_subday_interval&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #808080;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;10&lt;/span&gt;&lt;span style="color: #000000;"&gt;))
  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;BEGIN&lt;/span&gt;&lt;span style="color: #000000;"&gt;
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;SELECT&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #008000;"&gt;@reason&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #FF00FF;"&gt;FORMATMESSAGE&lt;/span&gt;&lt;span style="color: #000000;"&gt;(&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;14200&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;@freq_subday_interval&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #000000;"&gt;)
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;RAISERROR&lt;/span&gt;&lt;span style="color: #000000;"&gt;(&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;14278&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #808080;"&gt;-&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #808080;"&gt;-&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #008000;"&gt;@reason&lt;/span&gt;&lt;span style="color: #000000;"&gt;)
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;RETURN&lt;/span&gt;&lt;span style="color: #000000;"&gt;(&lt;/span&gt;&lt;span style="color: #800000; font-weight: bold;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;) &lt;/span&gt;&lt;span style="color: #008080;"&gt;--&lt;/span&gt;&lt;span style="color: #008080;"&gt; Failure&lt;/span&gt;&lt;span style="color: #008080;"&gt;
&lt;/span&gt;&lt;span style="color: #000000;"&gt;  &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;END&lt;/span&gt;&lt;span style="color: #000000;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;So there are a few things that can be done to get around it:&lt;/p&gt;

&lt;p&gt;In the job use the following code:&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:a9cf4c19-8249-4e9a-bee3-8f330888b590" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;EXEC&lt;/span&gt;&lt;span style="color: #000000;"&gt; stored_proc;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;WAITFOR&lt;/span&gt;&lt;span style="color: #000000;"&gt; DELAY &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;00:00:01&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #000000;"&gt;;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;EXEC&lt;/span&gt;&lt;span style="color: #000000;"&gt; stored_proc; &lt;/span&gt;&lt;span style="color: #008080;"&gt;--&lt;/span&gt;&lt;span style="color: #008080;"&gt; again&lt;/span&gt;&lt;span style="color: #008080;"&gt;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;WAITFOR&lt;/span&gt;&lt;span style="color: #000000;"&gt; DELAY &lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;00:00:01&lt;/span&gt;&lt;span style="color: #FF0000;"&gt;'&lt;/span&gt;&lt;span style="color: #000000;"&gt;;
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;EXEC&lt;/span&gt;&lt;span style="color: #000000;"&gt; stored_proc; &lt;/span&gt;&lt;span style="color: #008080;"&gt;--&lt;/span&gt;&lt;span style="color: #008080;"&gt; and again&lt;/span&gt;&lt;span style="color: #008080;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;


&lt;p&gt;Or by tracking through the various stored procedures (sp_add_jobschedule and sp_add_schedule) we see that the following table is where it ends up: msdb.dbo.sysschedules, so we can just go update the table after we scheduled the job.&lt;/p&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:5ae8cf7c-1350-4e3a-9438-7a19c53d42cb" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;pre style="background-color:White;;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #000000;"&gt;      &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;UPDATE&lt;/span&gt;&lt;span style="color: #000000;"&gt; msdb.dbo.sysschedules
        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;SET&lt;/span&gt;&lt;span style="color: #000000;"&gt; name              &lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #FF00FF;"&gt;ISNULL&lt;/span&gt;&lt;span style="color: #000000;"&gt;(&lt;/span&gt;&lt;span style="color: #008000;"&gt;@schedule_name&lt;/span&gt;&lt;span style="color: #000000;"&gt;, name),
            enabled              &lt;/span&gt;&lt;span style="color: #808080;"&gt;=&lt;/span&gt;&lt;span style="color: #000