<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pallavi Lata on Medium]]></title>
        <description><![CDATA[Stories by Pallavi Lata on Medium]]></description>
        <link>https://medium.com/@pallavi.lata22?source=rss-de8ce2595ab5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Pallavi Lata on Medium</title>
            <link>https://medium.com/@pallavi.lata22?source=rss-de8ce2595ab5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:20:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pallavi.lata22/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Accelerating BizTalk Migration with Azure OpenAI: Automating Legacy Orchestration Analysis Using…]]></title>
            <link>https://medium.com/@pallavi.lata22/accelerating-biztalk-migration-with-azure-openai-automating-legacy-orchestration-analysis-using-ffe90a7cc818?source=rss-de8ce2595ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffe90a7cc818</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[azureopenai]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[gpt-model]]></category>
            <category><![CDATA[microsoft-biztalk-server]]></category>
            <dc:creator><![CDATA[Pallavi Lata]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 08:37:01 GMT</pubDate>
            <atom:updated>2026-11-11T08:37:01.994Z</atom:updated>
            <content:encoded><![CDATA[<h3>Accelerating BizTalk Migration with Azure OpenAI: Automating Legacy Orchestration Analysis Using PowerShell</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vw8Iu-iPgQ3TKIFfrbGjA.png" /></figure><p><em>How I built an AI-assisted utility to analyse BizTalk ODX files and generate technical documentation to support integration migration.</em></p><h3>The challenge: Understanding legacy BizTalk applications before migration</h3><p>One of the important activities in any application migration initiative is understanding what already exists.</p><p>This becomes particularly challenging when dealing with legacy integration platforms such as Microsoft BizTalk Server.</p><p>Over the years, BizTalk applications can grow into complex integration landscapes containing multiple orchestrations, schemas, maps, messaging components, business rules, custom assemblies, and external system dependencies.</p><p>While the applications may continue to work as expected, understanding how everything fits together is not always straightforward.</p><p>In many cases, technical documentation is incomplete, outdated, or simply unavailable.</p><p>During a migration initiative, this creates an important challenge.</p><p>Before deciding how to migrate an existing integration, we need to understand:</p><ul><li>What does each orchestration actually do?</li><li>Which applications and systems are involved?</li><li>What schemas and transformation maps are referenced?</li><li>Are there dependencies on Business Rules Engine (BRE) policies?</li><li>Which custom or external assemblies are being used?</li><li>How are messages routed through subscriptions?</li><li>What is the overall processing flow?</li><li>How are exceptions and failures handled?</li></ul><p>Manually analysing every orchestration and documenting these details can become a time-consuming exercise, particularly when dealing with a large number of ODX files.</p><p>I wanted to explore how Generative AI could help accelerate this discovery and documentation activity.</p><p>Rather than manually inspecting each orchestration, I decided to build a PowerShell utility that could use Azure OpenAI to analyse BizTalk orchestration files and generate structured technical documentation.</p><p>The objective was simple: reduce the manual effort involved in understanding existing integrations and create a useful starting point for migration analysis.</p><h3>The approach: Combining PowerShell with Azure OpenAI</h3><p>I built a PowerShell utility that reads BizTalk orchestration files (.odx), sends their content to an Azure OpenAI deployment, and generates two documentation formats:</p><ul><li>Microsoft Word (.docx)</li><li>Markdown (.md)</li></ul><p>I used PowerShell for file processing, API communication, and document generation, while Azure OpenAI handled the orchestration analysis and summarisation.</p><p>The workflow is straightforward:</p><ol><li>Scan the configured directory for .odx files.</li><li>Read each orchestration file.</li><li>Construct a structured prompt containing the orchestration content and analysis requirements.</li><li>Send the request to Azure OpenAI.</li><li>Receive the AI-generated technical summary.</li><li>Generate Word and Markdown documentation for each orchestration.</li></ol><p>This approach allowed me to process multiple orchestration files without manually preparing a separate document for each one.</p><h3>What information does the utility extract?</h3><p>One important part of the implementation was defining what the AI should look for.</p><p>Instead of asking the model to simply summarise an ODX file, I provided specific analysis requirements relevant to understanding an existing BizTalk implementation.</p><p>The prompt focuses on seven areas.</p><h3>1. Orchestration purpose</h3><p>Understand what the orchestration is designed to achieve and summarise its role in the overall integration process.</p><p>This is useful during migration discovery because it provides an initial understanding of the business or technical functionality being implemented.</p><h3>2. Bindings and communication components</h3><p>Identify the ports and binding-related information available in the orchestration.</p><p>This helps establish which communication components are involved.</p><p>Actual deployed endpoint configurations and bindings may also need to be cross-checked against BizTalk binding files and application configuration.</p><h3>3. Schemas, maps, BRE, and external assemblies</h3><p>Identify references to:</p><ul><li>XML schemas.</li><li>Transformation maps.</li><li>Business Rules Engine components.</li><li>External assemblies.</li></ul><p>These dependencies are particularly important when evaluating migration scope and identifying components that may need to be recreated, replaced, or integrated differently in the target platform.</p><h3>4. Subscription filter expressions</h3><p>Identify subscription filters used by the orchestration.</p><p>Understanding message subscriptions and routing conditions helps explain how messages are selected and processed within the existing integration environment.</p><h3>5. Major processing steps and orchestration flow</h3><p>Explain the overall execution flow and identify the major processing stages.</p><p>This is particularly useful when someone needs to understand an existing integration without manually following every orchestration shape.</p><h3>6. Key orchestration components</h3><p>Identify important components such as:</p><ul><li>Receive and send ports.</li><li>Messages.</li><li>Variables.</li><li>Orchestration shapes.</li><li>Expressions.</li><li>Invoked components.</li></ul><p>These details provide a useful technical overview of the orchestration.</p><h3>7. Special logic and exception handling</h3><p>Identify special processing logic, error-handling mechanisms, and exception-related activities.</p><p>Understanding these behaviours is important during migration because existing error-handling logic should not be overlooked when designing the replacement integration.</p><h3>How I structured the PowerShell implementation</h3><p>I divided the implementation into separate functions to keep the processing straightforward and easier to maintain.</p><h3>Reading the ODX files</h3><p>The Load-OdxFile function reads the orchestration file using Get-Content -Raw.</p><p>Reading the file as a single string allows the complete orchestration content to be included in the request sent to Azure OpenAI.</p><p>I also added error handling to capture file-loading failures.</p><h3>Preparing the AI prompt</h3><p>The Build-ChatPayload function prepares the request sent to Azure OpenAI.</p><p>I used two message roles:</p><p><strong>System message:</strong> Defines the model’s role as a BizTalk analyst and instructs it to explain orchestration files clearly and concisely.</p><p><strong>User message:</strong> Contains the actual ODX file content along with the seven analysis requirements.</p><p>This ensures that the same analysis criteria are applied consistently across the orchestration files.</p><h3>Connecting to Azure OpenAI</h3><p>The Call-AzureOpenAI function handles the REST API communication.</p><p>It constructs the deployment-specific endpoint, prepares the required HTTP headers, and converts the PowerShell payload into JSON using ConvertTo-Json.</p><p>The request is then submitted through Invoke-RestMethod.</p><p>Once Azure OpenAI processes the request, the function returns the response for further processing.</p><h3>Generating Word documentation</h3><p>The Create-WordDocument function converts the AI-generated summary into a formatted Word document.</p><p>I used Microsoft Word COM automation to create the document programmatically.</p><p>The generated document includes:</p><ul><li>BizTalk Orchestration Summary as the title.</li><li>A Summary Details section.</li><li>Heading formatting for major sections.</li><li>The AI-generated technical analysis.</li></ul><p>This provides a document that can be reviewed and shared as part of the migration discovery and documentation process.</p><h3>Generating Markdown documentation</h3><p>I also wanted the documentation in Markdown format.</p><p>The Create-MarkdownFile function takes the same AI-generated summary and saves it as a .md file.</p><p>Markdown is particularly useful for maintaining technical documentation alongside source code in Git repositories and other documentation platforms.</p><p>Generating both formats means the same analysis can be reused across different project workflows.</p><h3>Processing multiple orchestrations</h3><p>I designed the utility to process an entire folder rather than a single ODX file.</p><p>The main execution section scans the configured directory and processes each .odx file individually.</p><p>For every orchestration, it:</p><ol><li>Loads the file.</li><li>Builds the AI request.</li><li>Calls Azure OpenAI.</li><li>Extracts the generated summary.</li><li>Creates a Word report.</li><li>Creates a Markdown report.</li></ol><p>The output filenames are based on the original orchestration filename.</p><p>For example:</p><pre>CustomerOrchestration.odx</pre><pre>CustomerOrchestration_SummaryReport.docx</pre><pre>CustomerOrchestration_SummaryReport.md</pre><p>This keeps the generated documentation associated with its respective source orchestration.</p><h3>How this supports migration activities</h3><p>This is where I see the real value of the utility.</p><p>In a BizTalk migration initiative, the first step is not simply moving integrations from one platform to another. It is understanding the existing implementation, its dependencies, processing logic, and integration behaviour.</p><p>The generated documentation can provide a useful starting point for several migration activities.</p><p><strong>1. Application discovery</strong></p><p>Get an initial understanding of what individual orchestrations do and how they contribute to the overall integration landscape.</p><p><strong>2. Dependency identification</strong></p><p>Identify referenced schemas, maps, external assemblies, and other components that may need further investigation during migration planning.</p><p><strong>3. Migration impact analysis</strong></p><p>Use the generated summaries as input when assessing the complexity of existing integrations and identifying areas that require additional analysis.</p><p><strong>4. Knowledge transfer</strong></p><p>Provide developers and architects with a structured technical reference instead of asking them to start by navigating through large orchestration files.</p><p><strong>5. Documentation baseline</strong></p><p>Create a consistent documentation baseline for existing BizTalk orchestrations that can be reviewed, validated, and maintained throughout the migration lifecycle.</p><p>The generated documents are not intended to replace detailed technical analysis. They provide a starting point that helps teams understand the existing implementation more efficiently.</p><h3>What I would like to improve next</h3><p>This is an initial implementation, and there are several opportunities to extend it further.</p><p>Some enhancements I would like to explore include:</p><ul><li>Generating visual orchestration flow diagrams.</li><li>Creating dependency reports across multiple orchestrations.</li><li>Identifying shared schemas, maps, and external assemblies.</li><li>Analysing BizTalk binding files alongside ODX files.</li><li>Generating application-level documentation instead of individual orchestration summaries.</li><li>Identifying potential migration complexities and dependencies.</li><li>Creating structured migration assessment reports.</li><li>Improving support for large ODX files through intelligent content extraction and chunking.</li></ul><p>One area I find particularly interesting is combining deterministic technical analysis with AI-generated explanations.</p><p>For example, dependency extraction and component identification could be handled through structured parsing, while Azure OpenAI could help explain the orchestration flow and produce readable technical documentation.</p><p>This could make the overall solution more reliable and useful for larger migration programmes.</p><h3>A few considerations</h3><p>There are some important points to consider when applying this approach in an enterprise environment.</p><p><strong>Data security:</strong> ODX files may contain sensitive business logic, internal endpoint information, or implementation details. Organisational approval and appropriate data-handling controls are essential before submitting content to Azure OpenAI.</p><p><strong>Model accuracy:</strong> AI-generated summaries should be validated against the original orchestration and related BizTalk application configuration.</p><p><strong>Large files:</strong> Large orchestration files may exceed model context limits. A more advanced implementation should include content-size checks and appropriate extraction or chunking.</p><p><strong>Credential management:</strong> API keys should be stored securely using an approved secrets-management solution rather than hardcoded in scripts.</p><p><strong>Technical completeness:</strong> An ODX file alone may not contain every detail required for migration discovery. Binding files, deployment configuration, schemas, maps, referenced assemblies, and other BizTalk artefacts may need to be analysed separately.</p><h3>Final thoughts</h3><p>This utility was developed as part of a BizTalk migration initiative, where understanding existing integrations and preparing technical documentation were important activities.</p><p>I wanted to explore how much of the initial discovery and documentation effort could be simplified using automation and Generative AI.</p><p>By combining PowerShell with Azure OpenAI, I built a solution that reads BizTalk orchestration files, analyses their contents against predefined technical requirements, and generates Word and Markdown documentation.</p><p>For me, the interesting part is not just generating a document. It is exploring how AI can help make legacy integration knowledge more accessible and support the early stages of application modernisation.</p><p>I believe there is significant potential for applying similar approaches to other legacy platforms and technical artefacts.</p><p><strong>If you are working on BizTalk modernisation or enterprise integration migration, how are you approaching legacy application discovery and technical documentation? I’d be interested to hear about your experiences and approaches.</strong></p><p><em>Technologies used: Microsoft BizTalk Server | PowerShell | Azure OpenAI | GPT Models | REST API | Microsoft Word | Markdown</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffe90a7cc818" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Manual XSLT Analysis: Building an Automated Source-to-Target Mapping Generator with…]]></title>
            <link>https://medium.com/@pallavi.lata22/beyond-manual-xslt-analysis-building-an-automated-source-to-target-mapping-generator-with-90ba8a913aad?source=rss-de8ce2595ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/90ba8a913aad</guid>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[powershell-script]]></category>
            <category><![CDATA[xml]]></category>
            <category><![CDATA[xslt-transformation]]></category>
            <dc:creator><![CDATA[Pallavi Lata]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 08:22:08 GMT</pubDate>
            <atom:updated>2026-11-11T08:22:08.560Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beyond Manual XSLT Analysis: Building an Automated Source-to-Target Mapping Generator with PowerShell</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cjs6zyWa997dX2235R6Fyw.png" /></figure><h3>The challenge: Understanding complex XSLT files</h3><p>If you have worked on enterprise integrations, you have probably come across situations where understanding an existing XSLT transformation takes more time than expected.</p><p>XSLT is widely used to transform XML documents from one structure into another. While it works well for defining transformation logic, understanding an existing implementation can become challenging as the number of templates, XPath expressions, conditions, and nested iterations increases.</p><p>Consider a situation where you need to identify how a particular target XML element gets its value.</p><p>You open the XSLT file, search for the target element, trace the corresponding xsl:value-of, follow the XPath expression, check the surrounding xsl:for-each, and navigate through the relevant template.</p><p>Now imagine doing this across dozens of XSLT files.</p><p>The exercise becomes repetitive, particularly when preparing source-to-target mapping documentation for development, testing, maintenance, or knowledge transfer.</p><p>I started thinking about a simple question:</p><p><strong>Can we automate the process of reading XSLT files and generating source-to-target mapping documentation without manually analysing every transformation?</strong></p><p>That question led me to build a small PowerShell utility.</p><p>The idea: Let PowerShell do the repetitive work</p><p>Rather than manually inspecting each XSLT file, I wanted a utility that could read the transformation, identify relevant mapping instructions, extract the source and target paths, and generate an Excel document.</p><p>I chose PowerShell because it already provides excellent support for XML processing through the .NET framework.</p><p>For Excel generation, I used the ImportExcel PowerShell module.</p><p>The overall idea was straightforward:</p><ol><li>Read all .xslt files from a specified folder.</li><li>Load each file as an XML document.</li><li>Identify relevant XSLT instructions.</li><li>Extract source XPath expressions and target XML paths.</li><li>Classify the extracted mappings.</li><li>Generate an Excel workbook for each XSLT file.</li></ol><h3>How I approached the implementation</h3><h3>1. Loading and analysing XSLT files</h3><p>The first step was to load the XSLT files and identify the relevant XML nodes.</p><p>I used:</p><ul><li>System.Xml.XmlDocument to load and parse the XSLT.</li><li>System.Xml.XmlNamespaceManager to register the XSLT namespace.</li><li>XPath queries to locate specific XSLT instructions.</li></ul><p>Registering the namespace was important because XSLT instructions belong to the namespace <a href="http://www.w3.org/1999/XSL/Transform.">http://www.w3.org/1999/XSL/Transform</a>.</p><p>This allowed me to query instructions such as xsl:value-of, xsl:for-each, and xsl:apply-templates without treating the stylesheet as an ordinary XML document.</p><h3>2. Building the target XPath</h3><p>One of the first challenges was identifying the complete target XML path.</p><p>For example, consider the following target XML:</p><pre>&lt;Customer&gt;<br>    &lt;PersonalDetails&gt;<br>        &lt;Name&gt;John Smith&lt;/Name&gt;<br>    &lt;/PersonalDetails&gt;<br>&lt;/Customer&gt;</pre><p>The target XPath for the Name element is:</p><pre>/Customer/PersonalDetails/Name</pre><p>I developed a function called Get-XPath to traverse the XML node hierarchy and construct the complete target path.</p><p>The function also checks previous sibling elements with the same name and adds positional indexes where required.</p><p>For example:</p><pre>/Customer/Address[2]/City</pre><p>This helps distinguish repeated sibling elements.</p><p>Another important consideration was that XSLT control instructions such as xsl:for-each and xsl:if should not be included as target XML elements.</p><p>The function accounts for these instructions while constructing the target path.</p><h3>3. Reconstructing the source XPath</h3><p>This was probably the most interesting part of the implementation.</p><p>Consider the following XSLT:</p><pre>&lt;xsl:for-each select=&quot;Customer/Orders/Order&quot;&gt;<br>    &lt;xsl:value-of select=&quot;OrderNumber&quot;/&gt;<br>&lt;/xsl:for-each&gt;</pre><p>If we simply extract the select attribute from xsl:value-of, the result is:</p><pre>OrderNumber</pre><p>But this does not tell us the complete source context.</p><p>The actual source context also depends on the surrounding xsl:for-each.</p><p>To address this, I created another function called Get-FullSourceXPath.</p><p>It traverses the parent hierarchy and collects:</p><ul><li>The select expression from xsl:for-each.</li><li>The match expression from the applicable xsl:template.</li><li>The immediate select expression from xsl:value-of.</li></ul><p>These expressions are combined to provide a more informative representation of the source path.</p><p>For the example above, the resulting path is:</p><pre>Customer/Orders/Order/OrderNumber</pre><p>This approach makes the extracted information easier to understand when reviewing transformations that contain iteration.</p><p>It is worth mentioning that this is a structural reconstruction of the XPath context, rather than a complete evaluation of XSLT execution semantics.</p><h3>4. Identifying different XSLT instructions</h3><p>I didn’t want to limit the utility to just xsl:value-of, because XSLT can generate target XML using different instructions.</p><p>I included handling for the following constructs:</p><p><strong>Literal XML Elements</strong></p><p>Identifies non-XSLT XML elements containing static text values.</p><p><strong>xsl:value-of</strong></p><p>Extracts the value of an XPath expression or a literal string specified in the select attribute.</p><p><strong>xsl:text</strong></p><p>Captures static text generated through an XSLT instruction.</p><p><strong>xsl:attribute</strong></p><p>Identifies attributes generated through XSLT and captures their names and literal values.</p><p><strong>xsl:apply-templates</strong></p><p>Captures template invocation points, including their associated source selection expressions and target context.</p><p>For every extracted mapping, the utility captures five pieces of information:</p><p><strong>1. SourceXPath:</strong> The source XPath expression or literal value extracted from the XSLT.</p><p><strong>2. TargetXPath:</strong> The corresponding target XML path.</p><p><strong>3. TargetField:</strong> The name of the target XML element or attribute.</p><p><strong>4. MappingType:</strong> Identifies how the value is generated, such as value-of, text, attribute, or apply-templates.</p><p><strong>5. ValueType:</strong> Identifies whether the extracted value is a literal value or an XPath expression.</p><p>These five fields form the structure of the generated Excel mapping report and make it easier to review the extracted information.</p><h3>From XSLT to Excel: Generating the mapping report</h3><p>Once the mapping information is extracted, the next step is to generate the Excel documentation.</p><p>I used the ImportExcel PowerShell module, which allows Excel workbooks to be created directly from PowerShell without requiring Microsoft Excel to be installed.</p><p>The script processes every .xslt file in the configured folder and creates a corresponding .xlsx file.</p><p>Each workbook contains a worksheet named XSLT Mapping.</p><p>I also added some formatting to make the output easier to read:</p><ul><li>Automatically adjusted column widths.</li><li>Bold column headers.</li><li>Yellow header background.</li><li>Font size adjustments.</li><li>Cell borders.</li></ul><p>The result is a structured Excel document containing the extracted source-to-target mapping information.</p><p>Instead of opening multiple XSLT files and manually collecting the information, developers can start their analysis using the generated Excel documentation.</p><h3>The complete workflow</h3><p>The utility brings together three main components:</p><p><strong>XSLT files:</strong> The input containing the transformation logic.</p><p><strong>PowerShell:</strong> The processing engine responsible for parsing XML, identifying XSLT instructions, and extracting mapping information.</p><p><strong>Excel:</strong> The output containing the structured mapping documentation.</p><p>The intention is to make an otherwise manual activity repeatable.</p><h3>Where this can be useful</h3><p>I see this utility being useful in several practical situations:</p><ul><li>Analysing existing XSLT transformations.</li><li>Preparing initial source-to-target mapping documentation.</li><li>Supporting integration maintenance activities.</li><li>Understanding transformation logic during application migration.</li><li>Sharing technical knowledge between development and support teams.</li><li>Reducing repetitive documentation effort.</li></ul><p>It can also provide a useful starting point when someone needs to understand an XSLT implementation that they did not originally develop.</p><h3>What I would like to improve next</h3><p>The current implementation focuses on selected XSLT constructs. There is still plenty of scope to extend it.</p><p>Some enhancements I would like to explore include:</p><ul><li>Handling xsl:choose, xsl:when, and xsl:otherwise.</li><li>Resolving variables and parameters.</li><li>Following nested template calls more accurately.</li><li>Improving XPath context resolution.</li><li>Supporting dynamic attribute expressions.</li><li>Handling more complex target XML generation scenarios.</li><li>Generating consolidated reports across multiple XSLT files.</li></ul><p>In particular, resolving mappings across multiple templates and handling complex conditional transformations would make the utility much more comprehensive.</p><h3>Final thoughts</h3><p>This started as an attempt to simplify a repetitive technical activity.</p><p>Rather than spending time manually navigating through XSLT files and preparing mapping documentation, I wanted to see how much of that work could be automated.</p><p>By combining PowerShell, .NET XML parsing, XPath, and Excel automation, I was able to build a utility that generates an initial source-to-target mapping reference from multiple XSLT files.</p><p>It is not intended to replace a complete XSLT execution engine or a dedicated mapping tool. Instead, it provides a practical starting point for understanding and documenting existing transformations.</p><p>I thought it would be useful to share the approach with others working in XML, XSLT, and enterprise integration.</p><p><strong>How do you currently handle source-to-target mapping documentation when working with large XSLT transformations? I’d be interested to hear about other approaches and ideas for improving this utility.</strong></p><p><em>Technologies: PowerShell | .NET XML | XPath | XSLT | ImportExcel</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90ba8a913aad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing a BizTalk SFTP Receive Location After Upgrading to BizTalk 2020]]></title>
            <link>https://medium.com/@pallavi.lata22/fixing-a-biztalk-sftp-receive-location-after-upgrading-to-biztalk-2020-a503f23a2304?source=rss-de8ce2595ab5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a503f23a2304</guid>
            <category><![CDATA[sftp-receive-location]]></category>
            <category><![CDATA[winscp]]></category>
            <category><![CDATA[biztalk-migration]]></category>
            <category><![CDATA[biztalk-2020]]></category>
            <category><![CDATA[biztalk-server]]></category>
            <dc:creator><![CDATA[Pallavi Lata]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 07:38:52 GMT</pubDate>
            <atom:updated>2026-11-11T07:38:52.928Z</atom:updated>
            <content:encoded><![CDATA[<h3>The version mismatch that looked like a missing WinSCP install</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuDBiHSUTdiBdn1hqDKIDw.png" /></figure><p>If you’ve recently upgraded BizTalk Server and suddenly found that all your SFTP receive locations have stopped working, this may be the issue you’re dealing with.</p><p>I ran into this during a real migration project. At first glance, the error looked like a simple installation problem: WinSCP was present, but BizTalk still refused to start the receive location. The real problem was much more specific — a .NET assembly version mismatch.</p><p>This is the kind of issue that is easy to misdiagnose because the message is misleading. The runtime is not saying WinSCP is missing; it is saying BizTalk loaded a version of the dependency that does not match what the adapter was compiled against.</p><h3>The error that appears</h3><p>After the upgrade, the BizTalk host instance threw this error when trying to start the SFTP receive location:</p><blockquote><em>The SFTP receive location failed to start with the following error: SFTP adapter requires WinSCP to be installed. Could not load file or assembly: ‘WinSCPnet, Version=1.15.0.14991’</em></blockquote><p>That message is deceptive because it sounds like WinSCP is not installed. In reality, the software is there — but the wrong version is being loaded.</p><h3>Root cause: assembly version mismatch</h3><p>The BizTalk SFTP adapter depends on a specific version of WinSCP’s assembly, WinSCPnet.dll.</p><p>When BizTalk and WinSCP are upgraded independently, the versions can drift apart. In .NET, that is enough to break binding at runtime. The adapter expects one version, but the server has another, so the dependency fails to load.</p><p>In our environment, the mismatch looked like this:</p><p>ComponentVersionBizTalk SFTP Adapter expected1.15.0.14991WinSCP installed on the server1.16.0.16502</p><p>A gap of a single minor version was enough to prevent the receive location from starting.</p><h3>Step-by-step fix</h3><h3>Step 1: Confirm WinSCP is installed and locate the DLL</h3><p>Start by confirming the file exists on the BizTalk server:</p><pre>Get-ChildItem C:\ -Filter WinSCPnet.dll -Recurse -ErrorAction SilentlyContinue | Select FullName</pre><p>Expected result:</p><pre>C:\Program Files (x86)\WinSCP\WinSCPnet.dll</pre><p>This confirms the file is present, which helps rule out the obvious explanation.</p><h3>Step 2: Check the version of WinSCP currently installed</h3><pre>[Reflection.AssemblyName]::GetAssemblyName(&quot;C:\Program Files (x86)\WinSCP\WinSCPnet.dll&quot;)</pre><p>In our case, it returned:</p><pre>Name    : WinSCPnet<br>Version : 1.16.0.16502</pre><h3>Step 3: Check the exact version the BizTalk SFTP adapter expects</h3><p>This step is critical. Use reflection to inspect the adapter assembly itself:</p><pre>$asm = [System.Reflection.Assembly]::LoadFrom(<br>&quot;C:\Program Files (x86)\Microsoft BizTalk Server\Microsoft.BizTalk.Adapter.Sftp.dll&quot;<br>)<br>$asm.GetReferencedAssemblies() |<br>Where-Object { $_.Name -eq &quot;WinSCPnet&quot; } |<br>Format-List Name, Version</pre><p>The result was:</p><pre>Name    : WinSCPnet<br>Version : 1.15.0.14991</pre><p>That tells us exactly what the problem is: the adapter was compiled against version 1.15.x, while the server only had 1.16.x installed.</p><h3>Step 4: Copy the WinSCP files into the BizTalk installation folder</h3><p>Copy both the executable and the DLL into the BizTalk Server folder so the runtime can resolve the dependency cleanly:</p><pre>Copy-Item &quot;C:\Program Files (x86)\WinSCP\WinSCP.exe&quot; &quot;C:\Program Files (x86)\Microsoft BizTalk Server&quot;<br>Copy-Item &quot;C:\Program Files (x86)\WinSCP\WinSCPnet.dll&quot; &quot;C:\Program Files (x86)\Microsoft BizTalk Server&quot;</pre><p>This step is simple but often overlooked.</p><h3>Step 5: Register the DLL in the Global Assembly Cache</h3><p>Register the assembly in the GAC so the runtime can locate it consistently:</p><pre>[System.Reflection.Assembly]::Load(&quot;System.EnterpriseServices&quot;) | Out-Null<br>$publish = New-Object System.EnterpriseServices.Internal.Publish<br>$publish.GacInstall(&quot;C:\Program Files (x86)\WinSCP\WinSCPnet.dll&quot;)</pre><p>Verify it is present:</p><pre>Get-ChildItem &quot;C:\Windows\Microsoft.NET\assembly&quot; -Recurse -Filter WinSCPnet.dll | Select FullName</pre><h3>Step 6: Add the assembly binding redirect</h3><p>This is the key fix.</p><p>Open the BizTalk host configuration file:</p><pre>C:\Program Files (x86)\Microsoft BizTalk Server\BTSNTSvc64.exe.config</pre><p>Add the following block inside the existing &lt;runtime&gt; section:</p><pre>&lt;runtime&gt;<br>  &lt;assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;<br>    &lt;dependentAssembly&gt;<br>      &lt;assemblyIdentity<br>        name=&quot;WinSCPnet&quot;<br>        publicKeyToken=&quot;2271ec4a3c56d0bf&quot;<br>        culture=&quot;neutral&quot; /&gt;<br>      &lt;bindingRedirect<br>        oldVersion=&quot;0.0.0.0-1.16.0.16502&quot;<br>        newVersion=&quot;1.16.0.16502&quot; /&gt;<br>    &lt;/dependentAssembly&gt;<br>  &lt;/assemblyBinding&gt;<br>&lt;/runtime&gt;</pre><p>This tells the .NET runtime: whenever BizTalk requests the older WinSCP assembly version, redirect it to the installed one instead.</p><blockquote><em>If you run 32-bit BizTalk host instances as well, apply the same change to </em><em>BTSNTSvc.exe.config in the same folder.</em></blockquote><h3>Step 7: Restart the BizTalk host instance</h3><p>After saving the config file, restart the relevant host instance:</p><pre># Restart the default BizTalk application host<br>Restart-Service &quot;BTSSvc$BizTalkServerApplication&quot;</pre><pre># If you use a dedicated receive host, restart that one specifically<br>Restart-Service &quot;BTSSvc$BtsReceive&quot;</pre><p>Once the service restarts, the SFTP receive location should start successfully.</p><h3>Final working configuration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*rxEOEzX-z_-p2Lnp_4T9TA.png" /></figure><h3>Lessons learned</h3><p>This problem is a classic example of why the obvious explanation is not always the correct one.</p><p>The message says the adapter requires WinSCP to be installed, but the real issue is not missing software — it is a version mismatch between the adapter and the assembly it depends on.</p><p>When troubleshooting BizTalk SFTP adapter failures, I recommend checking these items in order:</p><ul><li>Confirm WinSCP is installed</li><li>Identify the exact version of WinSCPnet.dll on the server</li><li>Inspect which version the BizTalk SFTP adapter expects</li><li>Confirm the DLL is in the GAC</li><li>Add the binding redirect</li><li>Restart the correct host instance</li></ul><p>The most common mistake is assuming the problem means WinSCP is absent. In many upgrade cases, it is present but not compatible.</p><h3>Pro tip</h3><p>Before upgrading BizTalk Server or WinSCP in production, always verify the certified combination in the release notes. A quick compatibility check can save hours of debugging later.</p><p>If you are dealing with a BizTalk upgrade and your SFTP receive locations fail after the change, this is one of the first things I would validate. It is a small fix, but it can have a very large impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a503f23a2304" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>