BizTalk Server Tutorials and Solutions Skip to main content

Posts

Showing posts from 2018

Enlist, Unenlist, Start and Stop BizTalk subscriber State | Uses and their difference with an example in BizTalk Server

Today I will explain very confusing BizTalk subscriber states i.e. enlist, unenlist, start and stop so lets begin with following details- Required: Atleast one receive location (Publisher).  One or more orchestration (both Publisher and subscriber). Also atleast one send port (Subscriber). Enlist state: Enlist is prestate before Start subscriber state either in send port or in orchestration that means when we enlist a send port or orchestration then message publish at receive location then it firstly check subscriber (either send port or orchestration) and this case it is available in BizTalk MessageBoxDB but message will be not move further process. Its only available in suspended state with resumable condition. In short when we enlist send port or orchestration then it make availability in MessageBoxDB. Start state:  If send port or orchestration is in Start state then when message received by receive location port then message is ready to move further process without g

PowerShell script to start and stop all host instances with some filter condition

In below following complete PowerShell script is to start and stop all BizTalk host instances. There is a filter condition with '-notlike' powershell command where if you want to avoid host instance by the host name. There are two functions one is for start host instance and second one is for stop host instance. You go ahead and use accordingly your requirement. # Import external assembly and create a new object [ void ] [ System.reflection.Assembly ]:: LoadWithPartialName( "Microsoft.BizTalk.ExplorerOM" ) $Catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer   #BizTalk Config $Catalog . ConnectionString = "SERVER=JEETU;DATABASE=BizTalkMgmtDb;Integrated Security=SSPI"   #connectionstring for the BizTalkMgmtDb $Hostinst = "" # Define variable for host instances $resultToWrite = "" $OutResultLog = 'E:\Biztalk\BizTalkLive\BizTalkPowerShellService\StartStopHostInstnace\logStartStopHostInsta

The FILE receive adapter cannot process file... in BizTalk

Problem:  Some time we do not understand when a file does not picked by BizTalk Receive location and after seeing event viewer with following error message- The FILE receive adapter cannot process file E:\Biztalk\BizTalkLive\Test\IN\Candidate-Id-1.xml because of one of the following reasons:  1) The file is read-only.  2) The file is a system file.  3) The FILE receive adapter does not have write permissions on the file. Solution: It is clear by receive error message in even viewer, what happen in file, just go to receive directory and right click on file then go to properties and see the below picture i.e. already checked Read only in checkbox. Unchecked it and then it will process by receive adapter. Some time error occurred if file is a system file and another reason your username i.e used in host instance of that receive location it may be no write permission. Be-aware that complete path including filename should not more than 255 characters. Note: One time i w

Key and Value are not working in BizTalk SSO Application Configuration

Problem:  Some time when you add a key and value inside SSO Application Configuration its not showing right side panel and also we are not able to store key and value into biztalk SSO database. Solution:  Go to "C:\Program Files (x86)\Microsoft Services\SSO Application Configuration" and open "SSOMMCSnapIn.dll.config" file in notepad then add following config details just below the <configuration> tag. <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v4.0.30319"> <dependentAssembly> <assemblyIdentity name="Microsoft.EnterpriseSingleSignOn.Interop" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="5.0.1.0" newVersion="10.0.1000.0"/> </dependentAssembly> </assemblyBinding> </runtime> See the below following figure- Now open again SSO Application Configurat

Zip File in a Custom Send Pipeline Component

Hello everyone !! I am going to write BizTalk custom send pipeline code to zip a file. What will you achieve after read out complete content of this post, you can create a custom send pipeline code and how add it in biztalk project with an project example so that you can easily able to convert any file into zip file by using send pipeline. In the last of this post you can download complete source code with an example. Kindly follows all below following steps to achieve to send a zip file by using custom send pipeline component- Before follows all steps, please read- BizTalk Pipeline 1. Open Microsoft Visual Studio as Administrator user and Click File>New>Project… In Installed Templates click BizTalk Projects then Empty BizTalk Server Project and Name as “BizTalkLive.Zip.Encode” and click OK. 2. Now leave every thing as it, we will do later, Now right click on your solution and a new C# class library project name as "BizTalkLive.Zip" then rename class1 as &