Wednesday 18 March 2015

Get Body of the suspended message in Biztalk programmatically using C#

Hi Friends,

Sometimes there may be situation when there are many suspended messages in Biztalk and sometimes we need to extarct the body of those suspended message programmatically.

I had also this situation so I wrote one code that helped me. I am sharing this code may be U can get some reference from this code and customize it as per your requirement.

In My Condition I am just getting the message instanceId and message body of suspended message and displaying in gridview.

I have taken one Web Application and after adding the webform in my web application I took a gridview as below:




























In code behind file you need to use below code---

Please dont forget to add below to dll file....

using Microsoft.BizTalk.Message.Interop
using Microsoft.BizTalk.Operations

























As you can see there is BindGrid() method I have created. you can see the code and you can use this method in your program to get the body of any supended message in biztalk.

Thank you for reading this.


Tuesday 10 March 2015

FTP Adapter Common Error BizTalk server

You receive a "Failure occurred in parsing the remote folder listing" error message when you try to retrieve documents from or send documents to an FTP server

Problem
When you try to retrieve documents from or send documents to an FTP server by using the Microsoft BizTalk Server  FTP adapter, you receive an error message that is similar to the following:
A failure occurred in parsing the remote folder listing.
Cause
You may receive this error message if the following conditions are true:
  • The receive handler or the send handler for the BizTalk Server FTP adapter is configured to use a firewall mode of Passive.
  • The target FTP server does not permit passive connections.
Resolution
To resolve this behavior, use one of the following methods:
  • Configure the receive handler or the send handler, or both, for the BizTalk Server  FTP adapter to use a firewall mode of Active.
  • Configure the target FTP server to permit passive connections.
The FTP adapter can be used to connect to FTP servers on systems ranging from Solaris and Linux to AS/400. For more information about connecting to legacy systems, see Configuring an FTP Adapter to Work with Legacy Hosts.

FTP receive adapter fails to publish message if receive pipeline processing time exceeds server time-out

Problem
A message received via the FTP adapter is not published to the MessageBox database. 
Cause
The time taken to complete pipeline processing exceeds the FTP connection time-out.
Resolution
Use one of the following methods to mitigate this problem:
  • Increase the connection time-out value. Set the idle time-out value on the FTP server to be at least the amount of the time it takes to process the file.
  • Use the Temporary Folder feature on the receive location. In this case, the FTP adapter copies the file to the temporary folder (typically the local disk). It typically takes less time to copy the file to the local disk than to run the message through the pipeline and persist it to the MessageBox database, which effectively reduces the idle time.