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

WCF-Oracle Adapter Error

$
0
0

Hi,

I get an error while using WCF_Oracle adapter.
A message sent to adapter "WCF-OracleDB" on send port "Send_InsertOracleDB" with URI "oracledb://abc.MyUri.com/" is suspended. 
 Error details: Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The value for field "USERID" is invalid. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: numStr

Here, the value that goes to 'USERID' is null/empty. Although 'USERID' element hasNillable as True and Min Occurs as 0. In Oracle database it's datatype is "NUMBER".
This schema is generated by the "Add Generated Items". I'm not using any SP. It's a simple insertion schema that is generated.


I have searched and tried many threads but found no useful answer. At some places it is written that it's issue with the adapter. Is it?

Please help to resolve it. It's very urgent.


Kunal G


wcf-oracledb Service (Inbound) - Can't see Tables

$
0
0

When I run the Consume adapter service thing, I connect to Oracle just fine.  For client/outbound operations I can navigate to the user name and under that there is a node Tables, and I see my tables.

But I need to poll a table, so I switch to Service/Inbound and then I don't have a tables node, just Procedure, Function, and Package

What am I doing wrong? The dba says all of the permissions are set correctly


Down there somewhere, its just ones and zeros.

WCF Adapter- Soap Fault

$
0
0


I am using two way WCF-WSHTTP adapter in send port to consume WCF Service in orchestration were i have configured to catach the fault message of type BTS.SoapEnvelope.1__2. I am getting fault message from a consumed service to the WCF adapter, But adapter is not throwing SOAP fault instead it is sending fault message to two way receive pipeline .Also i made propagate fault message property of WCF adapter as 'true'.

As per my assumption, the fault message should not be routed to pipeline, if any failure occurs in the adapter.

Please let me know if i am missing any.


Aboorva Raja R

Periodic error in Dynamics AX adapter: Failed to write to an IPC Port: The pipe is being closed

$
0
0

I am seeing this error on a regular basis when an attempt is made to deliver a sales order to AX (http://schemas.microsoft.com/dynamics/2008/01/documents/SalesJournal#SalesJournal):

An error occurred while processing the message, refer to the details section for more information 
Message ID: {61AE5908-CAA4-4B45-83B1-0BB847BC2E31}
Instance ID: {7EEBA1CB-27AB-4E0E-AFA3-09FE49DBEF27}
Error Description: An unexpected failure occurred while processing a message. The following error has occurred: Failed to write to an IPC Port: The pipe is being closed.

The message is sent through a dynamically configured port. I have not found any ways of forcing this error, it just occurs sometimes. Evertime I have experienced this, I have been able to resubmit the original file to BizTalk, and then it has been processed fine and transmitted to AX. Therefor it is pretty hard to some sort of debugging to identify the problem. Any suggestions for approaching this issue would be appreciated.

Cannot connect to oracle from Biztalk

$
0
0

Hi there

I am using biztalk server 2006 on WinServer2003R2x64. My oracle version is 11.2.0.2 installed on a different server in the same environment. I installed oracle client 11g (11.2.0.1.0) on biztalk server. then i created a odbc system dsn, provided the oracle database credentials and tested the connection which was successful. the oracle client in biztalk server is now retrieving data successfully from oracle database.

Then I installed the oracle adapter in biztalk server, created and configured a oracle adapter. I assigned full permissions to the biztalk host instance account on the oracle folder where the client was installed. Then I created a receive location of type OracleDB, provided Adapter Required Properties (Password, PATH=<oracle folder under which the BIN folder exists>, Service name=<DSN name>, User name) and the poll sql select statement. I finally restarted the hostinstance and started the receive location. In the end  I receive the following error in the event viewer and get the receive location disabled:

Event Type: Information
Event Source: Microsoft BizTalk Adapters for Enterprise Applications
Event Category: None
Event ID: 0
Date:  <date>
Time:  <time>
User:  N/A
Computer: <server name>
Description:
Agent OracleDb started

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

---------
Event Type: Error
Event Source: Microsoft Biztalk Adapters for Enterprise Applications
Event Category: None
Event ID: 0
Date:  <date>
Time:  <time>
User:  N/A
Computer: <server name>
Description:
Failed to send notification : System.Runtime.Remoting.RemotingException: Underlying connection was closed: Either there was a fatal error on the server or client authentication failed

Server stack trace:
   at System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Runtime.Remoting.Channels.SocketHandler.BufferMoreData()
   at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer)
   at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
   at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.ReadHeaders()
   at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

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 Microsoft.BizTalk.Adapters.RuntimeAgentRemote.Poll(Int32 timeOut, String& data, String& transactionId)
   at Microsoft.BizTalk.Adapters.CBRuntimeAgent.Poll(Int32 timeOut, PollStatus& status)
   at Microsoft.BizTalk.Adapters.ReceiverEndpoint.ProcessWorkItem()

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

I opened the Managing Events  in receive location properties. In the OracleDB Adapter Wizard box, in the Browse section, I expanded OracleDb -> <DSN name> which showed me nothing and desplayed the following error message:

The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client software installation.

You will be unable to use this driver until these components have been installed.

Please help me in this and to connect to oracle from biztalk server. thanks a lot.


manibest

Problems with MQSC adapter transaction support

$
0
0

Hi,

I have troubles to get the MQSC transaction to work. Without the transaction setup the adapter works fine, however, turning it on it

raises an error:

The adapter "MQSC" raised an error message. Details "Could not load file or assembly 'Microsoft.BizTalk.Adapter.Mqsc.ImqWrapperTxn.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A) A dependency could not be found. Refer to product documentation for information on MQSC Adapter software prerequisites.".

This is our setup

Windows 2008 R2 64 bit

BizTalk 2010

HIS 2010

Websphere MQ client v7.0 with Fix Pack 7.0.0.1

I checked the DTC settings and XA transactions is enabled. Also checked the registry for XADLL and the path is right "C:\Program Files (x86)\IBM\WebSphere MQ\bin64\amqmtsxatmc.dll"

WCF adapters is not listed in BizTalk Server Administration console after Adapter Pack installation

$
0
0

After installing BizTalk Adapter pack, Adapter pack(x64) , WCF LOB adapters I find the adapters are not listed in BizTalk Server 2010 Administration Console. How to fix this issue?

 

Any suggestions, much appreciated 

 

--Sundar

Errors with the project

$
0
0
Hi,
I've got few errors in the project. How to correct them?
Error    2    #error:  "The expression that you have entered is not valid."
    C:\app14\FlatFileToSqlOrchestration1.odx    435    7   
Error    3    'Message_CreateStatus': message has not been initialized in construct statement    C:\app14\FlatFileToSqlOrchestration1.odx    432    14   
Error    4    use of unconstructed message 'Message_CreateStatus'    C:\app14\FlatFileToSqlOrchestration1.odx    438    51    

Many Thanks & Best Regards, Hua Min


Microsoft Dynamics CRM 4.0 Adapter not installing on BizTalk 2010

$
0
0

Hi,

I was trying to integrate Biztalk 2010 server with Microsoft Dynamics CRM 4.0. There is a link for Adapters (http://www.microsoft.com/en-us/download/details.aspx?id=24880)

When I try to install this adapter pack it says we need to install BizTalk 2006. But on the download page it says Supported BizTalk Server versions BizTalk 2010.

  1. How do we integrate BizTalk 2010 with Dynamics CRM 4.0
  2. I need to integrate BizTalk 2010 with Great Plains 10, what are the possibilities for this integration.

Thanks,

Raj

Urgent help WCF LOB

$
0
0

Hi,

I need your help. I have created custom WCF adapter for BizTalk that receives a message from a socket server and then parse message and calls orchestration to do the logic for calling web service.

Everything is going fine and my adapter receive message and parse it and the orchestration calls web service successfully but I don’t know how to return the result back to the same socket server as I have only one connection allowed  to the server (for receiving and sending message).

I tried to use a two way receive location but I could not figure out where to place my code. In the inbound part of my custom adapter in the below metod:

publicbool TryReceive(TimeSpan timeout,out System.ServiceModel.Channels.Message message,outIInboundReply reply)

is the IInboundReplyis the place for generating my result to socket server ???

now I’m stuck and I don’t know how to finish project.

thanks and best regards,

"wcf adapter service" project template not available vs2010

$
0
0

Hi,

I have installed both the Adapter packs x86 and x64 and the WCF LOB SDK and all I get is the "add adapter service reference" option, and through Biztalk the "consume adapter service" options on add generated items option. I want the "wcf adapter service" template when adding a new web site to host in IIS.

I have installed the complete version for all 3 above.

Where is it gone???

Please Help..... 


Biztalk Developer

Biztalk - Error when using Excel reader Custom pipeline in receive port used in orchestration

$
0
0

Hi, 

  I have implemented a custom pipeline component that reads and excel file and transforms it into an xml file. The code of my Execute method is the following:

        public IBaseMessage Execute(IPipelineContext context, IBaseMessage inmsg)
        {
            System.Diagnostics.Debug.WriteLine("At top of Execute method for DBASE pipeline");
            IBaseMessagePart bodyPart = inmsg.BodyPart;

            if (bodyPart != null)
            {
                try
                {
                    // First write the excel file to disk so we can query it.
                    BinaryReader binaryReader = new BinaryReader(bodyPart.Data);
                    string folderName = this.TempDropFolderLocation;
                    if (folderName.Substring(folderName.Length - 1, 1) != "\\")
                        folderName += "\\";
                    string extension = ".xls";
                    string filename = System.IO.Path.GetRandomFileName();
                    filename = filename.Remove(8);
                    filename += extension;
                    string folderNameAndFileName = folderName + filename;
                    FileStream fileStream = new FileStream(folderNameAndFileName, FileMode.CreateNew);
                    BinaryWriter binaryWriter = new BinaryWriter(fileStream);
                    binaryWriter.Write(binaryReader.ReadBytes(Convert.ToInt32(binaryReader.BaseStream.Length)));
                    binaryWriter.Close();
                    binaryReader.Close();

                    //Fill DataSet with excel info
                    System.Data.OleDb.OleDbConnection MyConnection;
                    System.Data.DataSet ds;
                    System.Data.OleDb.OleDbDataAdapter MyCommand;
                    MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source='" + folderNameAndFileName + "';Extended Properties=Excel 8.0;");
                    MyCommand = new System.Data.OleDb.OleDbDataAdapter("select * from [Sheet1$]", MyConnection);
                    MyCommand.TableMappings.Add("Table", "Order");
                    ds = new System.Data.DataSet();
                    MyCommand.Fill(ds);
                    MyConnection.Close();

                    // Write the XML From this DataSet into a String Builder
                    System.Text.StringBuilder stringBuilder = new StringBuilder();
                    System.IO.StringWriter stringWriter = new System.IO.StringWriter(stringBuilder);
                    ds.WriteXml(stringWriter);
                    System.Xml.XmlDocument fromDataSetXMLDom = new System.Xml.XmlDocument();
                    fromDataSetXMLDom.LoadXml(stringBuilder.ToString());

                    // Create the Final XML Document. Root Node Name and Target Namespace
                    // come from properties set on the pipeline
                    System.Xml.XmlDocument finalMsgXmlDom = new System.Xml.XmlDocument();
                    System.Xml.XmlElement xmlElement;
                    xmlElement = finalMsgXmlDom.CreateElement("ns0", this.RootNodeName, this.NameSpace);
                    finalMsgXmlDom.AppendChild(xmlElement);

                    // Add the XML to the finalMsgXmlDom from the DataSet XML, 
                    // After this the XML Message will be complete
                    finalMsgXmlDom.FirstChild.InnerXml = fromDataSetXMLDom.FirstChild.InnerXml;

                    // Save final XML Document to Stream
                    Stream strm = new MemoryStream();
                    finalMsgXmlDom.Save(strm);
                    strm.Position = 0;
                    bodyPart.Data = strm;
                    context.ResourceTracker.AddResource(strm);

                    System.Diagnostics.EventLog.WriteEntry("CustomExcelPipeline", "Excel successfully converted to XML!!!");
                    System.Diagnostics.EventLog.WriteEntry("CustomExcelPipeline", finalMsgXmlDom.InnerXml);
                }
                catch (Exception ex)
                {
                    System.Diagnostics.EventLog.WriteEntry("CustomExcelPipeline", ex.Message);
                }
            }

            return inmsg;
        }



  Then i have used this custom pipeline component in the Decoder Stage of my btp file. The rest of the pipeline stages remain with their default values (empty)

  The custom pipeline seems to correctly transform the xls file into xml. But the problem seems to be when the message needs to be consumed by my orchestration. At this point i´m getting the following error: 

A message received by adapter "FILE" on receive location "Receive Location1" with URI "C:\FOX - PersubII\EAIFOXApplication\ExcelActivatorInput\*.xls" is suspended. 
 Error details: The published message could not be routed because no subscribers were found. This error occurs if the subscribing orchestration or send port has not been enlisted, or if some of the message properties necessary for subscription evaluation have not been promoted. Please use the Biztalk Administration console to troubleshoot this failure.  
 MessageId:  {3055752D-2F2E-40A5-9AC6-A563F175B821}
 InstanceID: {85DE1E34-4824-4066-A8CE-3F3B62D31090}

  My orchestration has a receive port which is configured by biztalk admin console as showed in the picture below. In the "Configure" option i have just specified the path where excel files reside, and i have changed the "File mask" field to *.xls. Also, note that the "Receive Pipeline" field specifies my custom pipeline.


   

Moreover, if I query the messages from Biztalk Group in Biztalk server Admin Console i see a "Routing failure Report" message which contains the showed context information.

BizTalk WSE 2.0 Adapter error in Send Port

$
0
0

Hello,

In our BizTalk 2006 SIT environment, we are getting an error while trying to send message using WSE 2.0 Adapter.

Error: : MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood

Backgroud: We have deployed our code in the SIT environment. We installed the certification in the certificate store required for the external WS. We copied the policy file (PolicyCache.xml) from UAT (location: D:\Program Files\Microsoft BizTalk Server Adapter for WSE 2.0\Policy). We did not create separately for SIT. Now when we trying to send message to the external WS using WSE adapter getting the above error.

In the BizTalk WSE Send port, WSE Transport property (URL: https://abcd10.abcd.com:8006/XXX/XYZ). We have a virtual site hosted in the local for theXYZ.WSDL file.

-<operation requestAction="">
 <requestpolicy="" />
 <responsepolicy="" />
 <faultpolicy="" />
 </operation>
 </endpoint>
 

We are not sure, what we are missing and where to look at? There is not much help from the internet as well. Can anyone help me on this?

Thanks in advance!

Regards, Sourav

Error while retrieving or generating the WSDL

$
0
0

Why would I be getting this error message? It is a very straight forward select on a set of Oracle tables. I cannot even generate the schema from my query:

Error while retrieving or generating the WSDL. Adapter message: Retrieval of Operation Metadata has failed while building WSDL at 'http://Microsoft.LobServices.OracleDB/2007/03/POLLINGSTMT'

WCF Custom Adapter with SQL Binding

$
0
0

I have a receive location configured with a WCF-Custom adapter and SQL binding. The receive location has a custom pipeline, which archives the incoming SQL data using a simple archive mechanism and a XML disassembler. 

The polling statement in configured to execute a SP. When the SP returns a dataset of about 100 records the data gets archived and disassembled and gets consumed by the orch.

When the SP returns about 1000 rows of data, the archiving seems to work (as I can see the data) but the disassembler generates an error 'Object reference not set to an instance of an object', which suggest that the disassembler is not receiving the full data stream.

I then re-configured the port with the built-in 'XML Receive' pipeline, and the message was received (1000 rows) and processed with success.

Anybody experience this before?

Any help would appreciated.

Thanks,

Raj


Processing Flat or Encrypted files in a custom WCF LOB Adapter

$
0
0

Hello.

I am creating my own custom WCF LOB adapter for a custom send port. (It would work pretty similar but not exactly like a FILE adapter)

I have used the WCF LOB adapter project in Visual Studio 2010 and gone through the wizard, tweaked the code, updated the machine.config and got the adapter working in my test biztalk application.

In the AdapterOutboundHander class there is a public Message Execute(Message message, TimeSpan timeout) method to implement my own customer sending process.

In my scenario, the message parameter would have passed through a pipeline which would either be processed as a flat file (non xml) or PGP encrypted (message would be binary data).

My issue is it seems like the message parameter to the Execute is expected to be XML.

Is there anyway I could access the raw message content itself and dump to a file?

This is needed as if the pipeline configured for this adapter includes PGP encryption the message contents would be not XML parsable but still would need to be sent on via my custom code.

Thanks for any help!

Wierd behaviour: WCF SQL send port execution time increases for same operation

$
0
0

I am using WCF SQL adapter (BTS 2009) (request-response send port :UseAmbientTransaction is False, using PassThru pipeline) to receive typed messages by executing SP. The issue I am facing is, when I execute same message multiple times, I see an consistent increase in SQL operation time that too only send operation. When I run 1st time, SQL send operation (start and end time of Send Shape in Orch debugger) takes 1sec, 2nd run takes 4sec, 3rd run takes 13 sec, 4th run takes 25sec, this leads to increase in total time for the process.

Also, one thing I noticed is when I use scope (Transaction Type: None) then first SQL send takes more time and rest of the send operation within same scope takes less than 1 sec time.

Have anyone seen such behaviour or any idea what could be wrong? Any suggestion to improve performance for WCF SQL adapter?


Regards, Ajeet Kumar MCTS Biztalk Server

Transferring movie to Kindle File HD

$
0
0

 Hi, I attempt to put some movies to MP4 to play on my Kindle Fire HD. I have Windows Vista Home Basic, and I've converted a standard DVD (I don't have a blu-ray drive) at 1:1 and 2:1, to tablet friendly format h.264 mp4. And when I transfer them to the Kindle and play them back via the Personal Video player app, audio is fine but the video playback is stuttery, like it's only showing every 10th frame or something. What am I doing wrong?

Static Solicit-Response port time consuming

$
0
0

Hi All,

I useda stored procedureinmssqlto getdatainto an biztalk Orchestration.For this I used a Solicit-Response Sql port.My question is:

 -even if thestoredprocedure returnsresultsin 30milliseconds theresponseinorchestration  isreturned after700milliseconds

Whatshould I doso that stored procedureresponse to bereflectedin theorchestration?

Thanks

Adapter for SAP 6.0 ERP with EHP 6

$
0
0

Hi

The Biztalk 2010 adapter document lists the following supported SAP servers

  • SAP R/3 4.6c Non-Unicode
  • SAP R/3 4.7 Non-Unicode
  • SAP R/3 4.7 Unicode
  • SAP ECC 5.0 Non-Unicode
  • SAP ECC 5.0 Unicode
  • SAP ECC 6.0 Unicode
  • SAP ERP 6.0 with EHP 4.0

My scenario needs to connect with

  • SAP ERP 6.0 with EHP 6.0. Does the adapter supports this version of SAP server.

Thanks

Viewing all 197 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>