WCF-SQL Adapter Hangs in Active State for hours

I'm at a new client, and doing a simple test with a content-based-routing solution picks up a file, maps it, and is supposed to update a SQL database.  The WCF-SQL send port is stuck in the "active" state.  No messages in EventLog.  If there's
an issue, I don't know why it doesn't just suspend.
Any ideas?
Thanks,
Neal Walters

Hi Neal,
Few things to check IMO,
Check if the host instance is running properly
Check the version of the Host instance, If required make the host instance to 32 bit. 
If it is using any schemas then make sure the binaries are deployed and gace'ed
Try to restart the BizTalk host instance to see if it makes a difference
Check if your SQL Database Instance is UP and running , Make sure the BizTalk service Account has proper rights on the SQL server and has execute permission on the SQL Stored procedure (if using one)
Check if you have anything on the SQL server event viewer.
Try to complete you routing of file using a send port also which will copy the input message to a temp folder location , Try  Using Failed Message Routing to see
if it helps!
There is an article
Configuring a Port Using the WCF-SQL Adapter for further reference. 
HTH,
Naushad Alam
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or
Mark As Answer
alamnaushad.wordpress.com
My new TechNet Wiki
"BizTalk Server: Performance Tuning & Optimization"

Similar Messages

  • Polling using WCF SQL Adapter

    Hi - I have to develop this in BizTalk
    There is a table in SQL database where BizTalk needs to poll the data using WCF SQL Adapter.
    How and what query/stored proc do I need to write ?
    and how about polling interval should I mention.
    Is there any detailed blog or link which clearly explains this, will be helpful
    MBH

    The first thing that you should remember is that the most effective way of getting data from SQL would be if you could remove the records after reading them. This was something that the native SQL Server adapter supported. For WCF-SQL, the way to achieve
    this is to
    Create a SP which is what you will specify as the execute statement for your adapter. This SP would, on the basis of TOP 1, get the ID, read the record and delete it. Then it would return the read data. You will generate schemas for this SP and deploy them
    for subscribing to the received messages.
    You will create a query that returns the count of records from the said table which you will use as the polling query. This will ensure that the adapter uses this on the configured interval to see if data exists. If it exists, it would use the execute statement
    (invoking your SP) to get the data.
    There is an option to keep executing the SP while data is available. This ensures that if more than ONE record is inserted into your table, all the records would be picked up after the first polling interval (as opposed to poll, pick-up one, poll and then
    pick up the other, etc.). Be careful while setting the polling interval (you cannot go beyond 1 sec) since this depends on your SQL servers ability to process the data.
    With regards to documentation, I'd refer you to
    http://msdn.microsoft.com/en-us/library/dd788532.aspx - Polling SQL Server by using the WCF-SQL Adapter.
    Regards.

  • WCF-SQL Adapter Login fail 'NT AUTHORITY\ANONYMOUS LOGON

    Hi,  
    I am have three WCF-SQL receive with WCF-SQL Adapater and two are working fine but the third one is giving the following warning in the Eventlog.  Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    I really appreciate your help.
    thanks
    Ram
    ---------------Warning written to EventLog --------------- 
    The adapter "WCF-SQL" raised an error message. Details "Microsoft.ServiceModel.Channels.Common.AdapterException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.. Endpoint Address - mssql://txhubdb//switch_mailbox_RX2?
    ---> System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       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, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteXmlReader()
       at Microsoft.Adapters.Sql.ExecutionHelper.ExecuteXmlReader(SqlCommand sqlCommand, Double totalSeconds)
       at Microsoft.Adapters.Sql.SqlAdapterInboundHandler.Polling_TryReceive(TimeoutHelper timeoutHelper, Message& wcfMessage)
       at Microsoft.Adapters.Sql.SqlAdapterInboundHandler.TryReceive(TimeSpan timeout, Message& message, IInboundReply& reply)
       --- End of inner exception stack trace ---
       at Microsoft.ServiceModel.Channels.Common.Channels.AdapterInputChannel.EndTryReceive(IAsyncResult result, Message& message)
       at System.ServiceModel.Dispatcher.InputChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
       at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)".

    1) Do you have the same Credentials settings for all 3 Receive Locations (Found under Configure | Other | Credentials on you WCF-SQL Adapter)
    2) Are all 3 Receive Locations Locations polling from the same SQL Server? If not are they then on the same domain? If the server that is failing is not on the same domain as your BizTalk Host User, then you might need to supply credentials and use a local
    SQL User.
    Morten la Cour

  • WCF-SQL Adapter Set up

    Hi,
    I am using Microsoft Biztalk 2010 on Windows Server 2007(SP2). I am want to use WCF-SQL adapter but I am not able to see any adapter when I tried to create new adapter at "Platform Setting -> Adapter -> New Adapter dropdown.".
    Windows Communication Foundation LOB Adapter SDK, Microsoft Biztalk Adapter Pack, Microsoft Biztalk Adapter Pack(x64) are installed on my machine.
    Am I missing something? how to get the WCF-SQL in the list of adapter.
    Thanks, Girish R. Patil.

    Hi Girish,
    Another area to check is machine.config file for binding entries.
    check following for hint  :   http://tech-findings.blogspot.in/2013/06/no-valid-adapters-installed-on-machine.html
    Maheshkumar S Tiwari|User Page|Blog|BizTalk
    Server : How Map Works on Port Level

  • Polling records from mulitiple table(61 Tables) using WCF-SQL adapter

    Hi,
    I would like get some suggestion from this forum. I've a scenario, in which I need to poll the records from multiple table(61) which are related and may have one to many relationship. what's the best way to poll the records from SQL table to BizTalk.
    Thanks in advance..
    Regards,
    Karthick

    Karthick,
    Write a SQL stored procedure with joins from your 61 tables (!!!) . Use WCF-SQL adapter to invoke the procedures.
    Following references shall help you:
    Executing Stored Procedures in SQL Server by Using BizTalk Server
    Performing Composite Operations on SQL Server by Using BizTalk Server
    Bing-Results: biztalk wcf sql
    adapter polling stored procedure
    I don’t know your exact requirement. Consider using SQL-SSIS for ETL process depending on your requirements. Anyway if your requirement really needs BizTalk, above suggest
    should solve your problem.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Adding wcf-sql adapter

    Please suggest how to add the wcf-sql adapter to biztalk application.

    you first need to configure handler for wcf-sql adapter.
    open admin console, goto platform settings, expand adapters, and select wcf-sql adapter. and right click on it, and then create receive/send handlers for it.
    if you don't see wcf-sql adapter in adapter section, it means that you did not install wcf-sql adapter components.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Prepared/Active state for a Resource adatper.

    Hi All,
    I am deploying a resource adapter and as soon as the adapter is deployed, though the weblogic page shows it to be in "Prepared" state but it gets started.
    If I click on the "Start" button and the weblogic page shows it to be in "Active" state.
    What does "Prepared" and "Active" state for a resource adapter signify?
    And after this I am unable to stop the resource adatper. Clicking on the "Stop" button makes the status back to to "Prepared" but I can see the adapter still connected to the EIS.
    So how to stop a resource adapter?

    refer the links;
    http://www.dannorris.com/2009/03/12/start-database-services-automatically-after-instance-startup/
    http://surachartopun.com/2009/04/why-my-oracle-cluster-could-not-start.html
    http://surachartopun.com/2009/07/change-oracle-asm-resource-autostart.html
    http://surachartopun.com/2009/11/disableenable-automatic-startup-oracle.html
    Re: CRS auto-start
    hope this may helps you, please update the output here for future references:

  • How do you configure a WCF-SQL adapter to write data from a SQL2012 "always on" database?

    Hi All,
    I have a BizTalk environment. I have to write the data from BizTalk to the database which is configured using ALWAYS ON availability group.
    I use WCF-SQL adapter to write the data. My question is this setup a supported?

    The answer is NO.
    Refer: Can
    I use a BizTalk WCF-SQL send adapter with a SQL 2012 Always on Database?
    A snippet quoted below.
    In summary (in order of preference):
    Disable AlwaysOn Availability Groups / Mirroring on SQL server if you need to connect to this SQL server which has this enabled
    Disable transactions and implement logic to be able to handle duplicates .
    Disable transactions and handle the duplicates or lost messages with custom logic (e.g. Send twice and compare and implement error handling). You need to write your own DTC handling this which
    is probably very complicated.
    Disable transactions and live with risk of duplicates or lost messages without handling duplicates.
    Refer: SQL Server AlwaysOn feature does not support MSDTC transactions.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • WCF-SQL Adapter

    How to add the wcf-sql adapter to BizTalk application?
    Aditi

    Hi Aditi,
    To add WCF-SQL adapter follow the MSDN link:Adding the SQL Adapter to BizTalk Server Administration Console
    To add WCF-SQL adapter  and start working with it, follow the technet article :
    BizTalk Server: WCF-SQL Adapter Table Operations
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    Server: Multiple XML files to Single FlatFile Using File Adapter

  • For the property PollingStatement issue in WCF-SQL adapter

    Why i am getting below errors and finally receive port is disabled .
    Configured WC_SQl properties :
    In General tab:
    InBoundID=PODepartment
    IntialCatalog:Test
    Server: .
    First error :
    The Messaging Engine failed to add a receive location "RL_WCFCustomer" with URL "mssql://.//Test?InboundId=PODepartment" to the adapter "WCF-SQL". Reason: "Microsoft.ServiceModel.Channels.Common.AdapterException: The value
    "" for the property PollingStatement is invalid.
    Second error:
    The receive location "RL_WCFCustomer" with URL "mssql://.//Test?InboundId=PODepartment" is shutting down. Details:"The Messaging Engine failed while notifying an adapter of its configuration. ".

    After configure below properties ,getting new issue,but i don't see the schema in admin console which has mentioned in below schema related issue
    Property details
    Inbound operation type:TypedPooling
    Poll data available statement:select * from dbo.PODepartment
    Polling statement:select * from dbo.PODepartment
    Issue Details:
    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: "XML disassembler" Receive
    Port: "RPN_WCFCustomer" URI: "mssql://.//Test?InboundId=PODepartment" Reason: Finding the document specification by message type "http://schemas.microsoft.com/Sql/2008/05/TypedPolling/PODepartment#TypedPolling" failed. Verify
    the schema deployed properly.

  • Notice update or delete in Database via WCF SQL Adapter

    Hi Folks,
    i try to notice any changes in a database table via SQL Adapter: so i check for a special column wich contains '0' for new datasets and '1' for those i already copied via BizTalk.
    This works fine as long as you only insert datasets, update or delete is not recocnized...
    Whats the best or possible way to react on these actions too?
    Thanks for your Ideas!

    Hi,
    I am shure there are many different approaches so here is what I have in mind:
    In case you need to react to deleted rows in your original table you need a sub table to trigger your biztalk for datasets that do not exist any longer.
    In this table you need 2 colums:
    first one to correlate to your original data row (id),
    second one to hold the status: For ex. 0= new, 1=update, 3=deleted
    Then you need a
    Trigger event on your original table that sets the status for the modified data id in your new table.
    You can then poll on this sub table as you already mentioned in your question.

  • How Biztalk Engine come to know through WCF-Sql Adapter that new record was added in Sql Table?

    Regards Ravin

    WCF-SQL adapter for receiving polls the the DB to fetch records. Its not by intelligence that the adapter will know that a new record is added.
    Your db and table design and the poll querry has to be intelligent enough to pull in new records from the table and not the already processes or polled records.
    Something like a poll flag for processed records.
    Regards
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

  • Creating an "active" state for a button

    I am creating a page with six buttons that need to have an
    active state when clicked, ie., the button currently clicked needs
    to change colors to signify that it has been selected. Then it
    needs to change back to its original color when another button is
    clicked. Please help!! I am relatively inexperienced with coding so
    any extra clarity in explaining is appreciated.
    Thanks in advance!
    I had originally posted this topic in the 'site design'
    section, but it seems no one can be bothered to answer this one.
    Please Help Me Out!

    A workaround I like is using movieclips instead of buttons.
    With actionscript they can act like buttons without being a button.
    Just make a moviclip with keyframes, each frame being a different
    button state.
    Ex:
    frame 1 - button off
    frame 2 - button on
    frame 3 - buton active
    sample AS attached to frame:
    button1.onPress = function(){
    button1.gotoAndStop(3); //makes button 1 active
    button2.gotoAndStop(1); //makes button 2 go to off state
    button3.gotoAndStop(1); //makes button 3 go to off state
    button1.onMouseOver = function(){
    button1.gotoAndStop(2);
    button1.onMouseOut = function(){
    gotoAndStop(1);
    My syntax may not be 100% correct, but the theory is there to
    help you figure it out.

  • WCF-SQL Adapter and idle SQL Server sessions

    Hi,
    I have a BizTalk 2013 server with a send port that periodically send SQL statements to a remote SQL Server. The remote SQL Server hosts the database of a Dynamics NAV server.
    The DBA of this SQL Server warned me that a lot of SQL Server sessions remain idle after a long period of time (about 20 idle sessions coming from my BizTalk server with a Idle time that is more than 10 days). He thinks that we have a trouble in BizTalk to
    close the connections to the SQL Server.
    I wondered if I can handle the situation by changing some settings in the sqlBinding used by my send port, for example the MaxPoolSize or other parameters.
    Any idea?
    Thanks.

    So, is this causing an actual problem or is this something the DBA just happened to see?
    20 idle sessions isn't a lot at all and is well below the default Connection Pool size, 100 in most cases.
    So long as it does not keep increasing unchecked, I'd say what you're seeing is the expected and desired behavior.
    You maybe have had a burst at some point causing 20 connections, then normal continuous operations only uses 1 or 2.

  • WCF-SQL adapter issue

    Hi all,
    I have ne issue with adapter when i am polling data from sqldb the dataset is creating in biztalk how can i add the elements in that,i am using this first time.
    Regards,
    Raman

    What do you mean "add the elements"?
    If you add a column to the SQL ResultSet, just add the corresponding Element to the Schema in the Schema Designer.
    If the ResultSet changes significantly, you can just re-run the Wizard.
    There is nothing special or remotely complicated about this.

Maybe you are looking for

  • Problem with User Permission in BI Publisher.

    I have successfully managed to integrate BI Publisher with Discverer , but am facing a problem when i log in with the credentials of the SSO user biptest. The user does not have the rights to create a report.I dont understand why.I have followed all

  • Remote speakers no longer show up in iTunes

    I have recently had to send my DVD/surround-sound into the shop for repair. It used to play iTunes through Airport Express fine, but now I've tried hooking Airport up to both my TV and another stereo, but in both cases remote speakers no longer show

  • Posting invoices in F-43 where items have different VAT codes

    Hi, I am not sure whether I am in the correct forum so just boot me into the correct one if I guessed incorrectly. I have to start by saying I have almost no FI knowledge and it seems no-one in the business has enough FI applications knowledge. I am

  • G4 power mac SDRAMM DIMM slots

    I re-seated the three boards, but one of them doesn't go down as far as the other two. I don't know if that's right or if there's something wrong with how I'm putting it back in. I don't want to force it and possibly break the board.

  • Problem with rename command in ftp_command

    hi all , i am facing a problem in renaming a file by rename command... this is how i am calling the fm ftp_command CALL FUNCTION 'FTP_COMMAND'     EXPORTING       handle        = g_handle       command       = 'RENAME l_templine_file l_templine_file1