Quantcast
Channel: BizTalk Server Adapters and Adapter Pack Forum
Viewing all 197 articles
Browse latest View live

POP3 adapter getting html. Need xml or plain text

$
0
0

Hi I am trying to access the emails sent to a mail box (Microsoft Outlook) . The properties of my POP3 receive are as below

Apply Mime Decoding : True

Body Part/ Content Type : text/html

Body Part Index : 0

As recommended in one of the threads, I've followed the similar aproach mentioned in the below blog.

http://blog.vertica.dk/2011/01/14/processing-multiple-email-attachments-with-biztalk-server-2009-using-pop3-adapter-and-orchestration/

I am not able to process the message. The Message shows up suspended in the Admin Console. The attachments and the body part are shown when I open the suspended message. The error description goes like below

There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Pipeline " Receive Port

Reason: An error occurred when parsing the incoming document: "The 'meta' start tag on line 4 position 2 does not match the end tag of 'head'. Line 57, position 3.". 

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink { color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed { color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {"Balloon Text Char"; margin:0in; margin-bottom:.0001pt; font-size:8.0pt; font-family:"Tahoma","sans-serif";} span.EmailStyle17 { font-family:"Calibri","sans-serif"; color:windowtext;} span.BalloonTextChar {"Balloon Text Char";"Balloon Text"; font-family:"Tahoma","sans-serif";} .MsoChpDefault { font-family:"Calibri","sans-serif";} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml><o:shapedefaults v:ext="edit" spidmax="1026" /></xml><![endif]--><!--[if gte mso 9]><xml><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1" /></o:shapelayout></xml><![endif]--></head><body lang="EN-US" link="blue" vlink="purple"><div><p> Test body<o:p></o:p></p></div></body></html>

My objective is to monitor the email box. Read the email body, convert the email body to PDF and save all the attachments and the body part PDF to a folder location. Please help with your inputs.

Thanks and Regards,

Ujjwal


Setting up the environment to communicate between .NET and SAP using Biztalk Adapter pack 2010 on 64bit machine

$
0
0

Hi,

I am trying to setup an environment to establish a connection between .NET and SAP using BizTalk Adapter pack v2010 and WCF LOB Adapter v2010 on 64bit machine, but I am not successful. But I am successful in setting up the environment on 32bit machine with 32bit versions of adapter packs.

Later searching through several articles on google I got a suggestion saying, even on 64bit machine, we need to install 32bit versions of Adapter packs along with 64bit version of Adapter packs, then it worked absolutely fine. But my client is against in installing 32bit version of Adapter packs on 64bit machine, because this might be possibly be hitting the 32bit versions of dll's and establishing the connection, which they doesn't want.

Can anyone please help me to establish the environment on 64bit machine using only 64bit versions of adapter packs.

Thanks in advance.

Regards,

Shivakanth


DB2 Adapter error: Processing was cancelled due to an interrupt. SQLSTATE: 57014, SQLCODE: -952

$
0
0

Hi,

we have an error that has started to occur once a query is run against the production database. Before this the query executed a lot quicker may be 20 second or so. Now the underlying query takes about 2.5 minutes to run.

We are trying to run our query against a DB2 9.5.4 database running on Solaris 10.

It seems to me that the DB2 adapter is using the default command timeout for the DB2 .NET provider of 30 seconds.

I cannot find anyway to configure the DB2 adapter to run queries that run longer than 30 seconds.

Can anyone confirm that this a limitation for th Db2 adapter querying against a DB2 9.5.4 database running on Solaris 10?



How to increase connectionTimeout

$
0
0

Hi,

I want to increase the connectionTimeout from 30 seconds (default) to 60 seconds.

The Endpoint Address is "mssql://servername2//dbname?FailoverPartner=servername2"

I need a 60 seconds timeout because when i shutting down the SQL server the application is able to connect to the mirrored database successfully.

(When within 60 seconds, after shutting down the SQL server, no connection is established then the application is able to connect to the mirrord database also when the connectionTimeout is 30 seconds.)

This seems not working: mssql://servername2//dbname?ConnectionTimeout=60

Thanks,

Tom

SFTP Send Adapter Issue - Send Port in remains in 'Active' state

$
0
0

Hi,

Please advice.

Send Port remains in 'Active' state in BizTalk admin console.

This was working fine before...Suddenly getting this error.

Following is StackTrace:

---------------------------------------------------------------------------------------------

Method: Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessage
Error: [SftpTransmitterEndpoint] Unable to transmit file biztalk/EDI/inbound/PO850.edi.
Inner Exception:
Unable write file to biztalk/EDI/inbound/PO850.edi
Unable to connect to Sftp host [SFTPSite.SMB.COM]. Changing any Send Port Transport properties might require the host to be restarted, as the connection pool might still have connections

------------------------------
Information:
Type: Blogical.Shared.Adapters.Sftp.SftpException
Target: Microsoft.BizTalk.Message.Interop.IBaseMessage ProcessMessageInternal(Microsoft.BizTalk.Message.Interop.IBaseMessage, Blogical.Shared.Adapters.Sftp.ISftp)
Message: [SftpTransmitterEndpoint] Unable to transmit file biztalk/EDI/inbound/PO850.edi.
Inner Exception:
Unable write file to biztalk/EDI/inbound/PO850.edi
Unable to connect to Sftp host [SFTPSite.SMB.COM]. Changing any Send Port Transport properties might require the host to be restarted, as the connection pool might still have connections
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessageInternal(IBaseMessage message, ISftp sftp)
   at Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessage(IBaseMessage message)

------------------------------
Type: Blogical.Shared.Adapters.Sftp.SftpException
Target: Void Put(System.IO.Stream, System.String)
Message: Unable write file to biztalk/EDI/inbound/PO850.edi
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Put(Stream memStream, String destination)
   at Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessageInternal(IBaseMessage message, ISftp sftp)


------------------------------
Type: System.Exception
Target: Void connect(Boolean)
Message: Unable to connect to Sftp host [SFTPSite.SMB.COM]
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.connect(Boolean force)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.reConnect()
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Put(Stream memStream, String destination)


------------------------------
Type: Tamir.SharpSsh.jsch.JSchException
Target: Void connect(Int32)
Message: invalid server's version String
Stacktrace:
   at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
   at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
   at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.connect(Boolean force)

---------------------------------------------------------------------------------------------

MQSerise 7.5 VS BizTalk 2010

$
0
0

Hi All

I have a WebSphere server 7.5 Installed on Windows Server 2008 R2, where I'm trying to connect from remote BizTalk 2010 server also with Windows Server 2008 R2 but when I try to configure the MQSerise Adapter I recieve the bellow error

---------------------------
Error
---------------------------
The adapter is not installed or configured correctly on the server MyMQServer. The COM exception is: Retrieving the COM class factory for remote component with CLSID {86E96D72-0011-4B28-B1AC-BF52AB47F1B4} from machine MyMQServer failed due to the following error: 80040154 MyMQServer.
---------------------------

Biztalk 2010 - Oracle Adapter -Use of unconstructed message

$
0
0

Hello,

I am trying to create a very simple orchestration where I pass the parameters to call store procedure which does a select in an Oracle Database and returns an Sys_RefCursor. I will then get the result and dump it out to an xml file. The store procedure was tested and works properly outside BizTalk.

I consumed an adapter service which automatically generate xsd for me. (used outbound, select my store procedure). I added an orchestration,  with a receive port to receive the parameter and a send port to save the result to a file. I have 2 messages, input to get the parameters and output to get the results.

However, when I tried to build my application I got this error:

Error 1 use of unconstructed message 'Results' E:\Test\TestOutBoundOracleWithSysRefCursor\TestOutBoundOracleWithSysRefCursor\RetrieveRecordsOrchestration.odx 158 47 

Could someone give me a hint of how to solve this issue? How do I construct a message if that msg content comes directly from the result of an Oracle store procedure?

I am still very new to BizTalk, I apologize if my question is obvious and I would appreciate your assistance.


Soap Header for composite operation - Biztalk 2010

$
0
0

Hello,

Not long ago, I have create a small BizTalk application to invoke an oracle store procedure to insert a record into the database. I was advised to leave only the store procedure name on the action part of the soap header when configuring the WCF. And that worked well as the application did insert a record successfully in the database. I follow the same clue and repeat the same method for retrieving the records and that worked too.

However, I would like to combine both operations (insert and retrieve) in 1 requests and let the system intelligently decide which store procedure to call. I have modified my xml request to have another field call ReqId and depending on whether the content is 1 or 2, I will send the request to insert or to retrieve to the oracle from my orchestration. Unfortunately, when combining the operation like that, I do not really know what to put down in the SOAP Action header to make it selectively send request to the proper store procedure. Below is the BizTalk auto generated SOAP action. How do I tweak it to work for both scenarios (Insert or Retrieve) depending on the reqID being 1 or 2?

<BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Operation Name="RECORD_ACTIVITY" Action="http://Microsoft.LobServices.OracleDB/2007/03/AXIUM/Procedure/VCU_RECORD_ACTIVITY" />
  <Operation Name="RETRIEVE_ACTIVITIES" Action="http://Microsoft.LobServices.OracleDB/2007/03/AXIUM/Procedure/VCU_RETRIEVE_ACTIVITIES" />
</BtsActionMapping>


internal soap exception while running biztalk server webservice url.

$
0
0

hi,

   first i had published orchestration as webservice wizard in biztalk server and in another server am going to consume biztalk server webservice it is working fine but while running console application am getting internal soap exception.am not getting any error in biztalk server eventlog

Regards

M.Rajiv

Unable to connect to SFTP host using Identity file

$
0
0
Hi,

I am using codeplex SFTP Adapter. I have tested the connectivity of my SFTP Host from test environment with FileZilla using private key file and I am able to connect it successfully. As the SFTP Adapter wont support Private Key file, I have converted it into OpenSSH format using PuTTYGen.exe and used it in the SFTP Adapter.

But I am receiving the below error:

Type: Tamir.SharpSsh.jsch.JSchPartialAuthException
Target: Void connect(Int32)
Message: USERAUTH fail (51). Unable to connect to the host using the [xxxxx] user.
Stacktrace:
   at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
   at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
   at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.connect(Boolean force)

I am unable to find the rootcause for the same.

Request you to suggest me the solution for the same

Thanks in Advance

Raghuram

WCF LOB SQL binding Adapter Causes issues when the property UseAmbientTransaction set to True

$
0
0

In Biztalk we are using WCF LOB adapter to execute a set of stored procedures on execute all or none basis using UseAmbientTransaction set to true. It worked fine before we implementing Error handling. After adding Scope to my orchestration to handle exceptions and  UseAmbientTransaction set to true then we are getting following error.

System.Data.SqlClient.SqlException (0x80131904): Cannot roll back PatientCreate. No transaction or savepoint of that name was found.

Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 1, current count = 2.

Uncommittable transaction is detected at the end of the batch. The transaction is rolled back.

Cannot log error since the current transaction is in an uncommittable state. Rollback the transaction before executing uspLogError in order to successfully log error information.

The 'uspPatientCreate' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

Server stack trace:

at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)

at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)

 

 

So we are getting issues after implementing error handling. Cant we use Orchestration Scopes when we set UseAmbientTransaction property to true? If so what is the solution. Please help. Thanks

BizTalk 2010 MQSeries Adapter Installation

$
0
0

All,

I am using BizTalk 2010 on Win Server 2008 R2. I have following question;

From where I could download MQSeries Adapter?

I tried to install BizTalk Adapter setup which came along with the complete installation folder (BizTalk Server\AdapterPack_x86). Initially I got an error saying that I need to install WCF LOB Adapter, I downloaded that and successfully installed AdapterPack. But I didn't see MQSeries Adapter in Start-> All Programs->Microsoft BizTalk Adapter Pack. There are SAP, Oracle and SQL Adapters in this list.

Also I searched for Host Integration Server 2010; but I failed to find that in Microsoft Download center.

I may be missing something here, can you please share your thoughts?

Thanks in advance!

Note: I was able to install MQSAgent using additional software section in original setup of BizTalk 2010. Now I am seeing MQSAgent2 as a COM+ application.

Biztalk 2010 SAP Adapter Issue : Microsoft.Adapters.SAP.RFCException

$
0
0

Recently,was working on a project where tRFCs happen in receive side by sap adapter and biztalk sends data to SQL through wcf-custom adapter.there was no error for a small amount of data.but while doing a load test,faced the below issue.these are warnings though and at the end biztalk automatically restart the receive host and nothing suspends.Any thoughts - what could be the reason?

1st warning:

The adapter "SAPAdapter" raised an error message. Details "Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=UNKNOWN:-1. AdapterErrorMessage=Error occurred while checking for transaction Id. Error Message is: Transaction (Process ID 262) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 262) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.Adapters.SAP.RfcServerConnection.CheckTid(Guid guid, Char* tid) --- End of inner exception stack trace --- at Microsoft.ServiceModel.Channels.Common.Channels.AdapterReplyChannel.EndTryReceiveRequest(IAsyncResult result, RequestContext& requestContext) at Microsoft.Adapters.Internal.LayeredChannelBindingElement.LayeredInboundChannel`1.System.ServiceModel.Channels.IReplyChannel.EndTryReceiveRequest(IAsyncResult result, RequestContext& context) at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)".

Last warning:

The adapter "SAPAdapter" raised an error message. Details "Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=RFC_INVALID_HANDLE. AdapterErrorMessage=An exception has occurred on the listener while executing RfcWaitForRequest

Host Integration Server 2006 - Add object controls locked

$
0
0

Hello,

I'm using HIS 2006 TI Manager. I removed some objects in order to deploy new versions, but the Add object wizard has all it's controls locked and I can't get them in. I tried restarting IIS and the SNA service, but none of that helped. How can I solve this?

How to recieve emails in biztalk with html content and multiple attachements ?

$
0
0

How can we recieve emails in biztalk with html content and multiple attachements ? Please suggest the best way to do this ..

i waant to store the recieved messages with attachment inside an SQL server.


Guneet Kalra


SFTP Properties Configure for nsoftware SFTP Send Port of BizTalk within custom pipeline component

$
0
0

Hi All,

I know we can set the SFTP properties, like SSHHost, SSHPassword,SSHPort, in the expression shape in Orchestration. So I am wondering can we set these properties through custom pipeline component without orchestration. I promoted these properties in my custom pipeline component with the names, the namespace "http://schemas.nsoftware.com/BizTalk/Adapters/v3/SFTP", and the specific values, also add the reference to nsoftware.BizTalk.SFTPAdapte, the same as what I did with orchestration. But I keep getting the error "Loading property information list by namespace failed or property not found in the list". Anything what I did is wrong? Does anyone have any idea about this issue? How can I achive this? Thanks for your help and time.

What systems are supported by Session Integrator in Host Integration Server

$
0
0
The documentation on Host Integration Services refers mainly to integration with IBM hosts, but it looks like Session Integrator works as a console scraper. Could it work with any terminal based application, such as one running on VMS?

axreceiveadapter error

$
0
0

Hi exceperts,

  Im using the dyamicax  receive adapter , but im got follwing error 

The adapter is unable to send the following message to Microsoft Dynamics AX:
MessageId: 12345
Error: BizTalk Server '88' has not been configured for an active channel.



please letme know ?


Is there a way to guarantee the order of file consumption (modified time) by FILE Adapter in Biztalk Server 2009?

$
0
0

Hi All,

  Is there any property or any setting available in BizTalk Server 2009, FILE Adapter, which guarantees that the order in which the message consumed is the same order in which data are written to the folder?

If not, what are the alternative ways to guarantee such an order.

Thanks a lot for your feedbacks.

prabath

Should we have a biztalk license to use the WCF sql adapter in a .net application.

$
0
0

All,

We want to use the WCF SQL adapter in a traditional .net application (Not BizTalk), what are the licensing terms for this? should we need a BizTalk license?

Thanks -


Regards, Madhukar Gilla http://wcfbiztalk.wordpress.com/

Viewing all 197 articles
Browse latest View live