A trigger returned a resultset and/or was running with SET NOCOUNT OFF while another outstanding result set was active

I have 2 servers connected over a low speed wan and we're running SQL Server 2008 with Merge replication.
At the subscriber, sometimes when attempting to insert new rows, I get this error:
A trigger returned a resultset and/or was running with SET NOCOUNT OFF while another outstanding result set was active.
My database doesn't have any triggers; the only triggers are the one created by the Merge replication
Also, whenever this error occurs it automatically rolls back the existing transaction
I am using DataTables and TableAdapters to
insert and update the database using transactions
What I have checked:
the database log file size is below 50Mb
Checked the source code for Zombie transactions (since I wasn't able to retrieve the actual error at the beginning)
Checked the connection between the two servers and found it congested
Questions:
How to avoid this behavior and why it's occurring at first place?
Why it's cancelling the open transaction?

did the issue happen on some specific tables or all the tables?
I suggest to run sql server trace at publisher and subscriber when the issue happens. Please involve below events and columns
Stored      Procedures
RPC:Completed      
RPC:Starting
sp:Completed
sp:Starting
sp:StmtStarting      
sp:StmtCompleted      
TSQL
SQL:StmtCompleted
SQL:StmtStarting      
SQL:BatchCompleted
SQL:BatchStarting      
Unprepare SQL
 ‘Errors and Warnings’
ErrorLog
EventLog
Exceptoin
attention
columns:
 TextData ,error, LoginName, ApplicationName , StartTime ,EndTime,DatabaseName,NestLevel,ObjectName,ObjectType,ServerName,eventsequence,linenumber,cpu,reads ,writes,rowcounts,clientprocessid,spid,transactionid
Once the issue happens, please check the trace to find which step or statement hit the error.

Similar Messages

  • I was using ios 7.0.3 nd it was working very nice but before some days i got an update 7.0.4 nd i updated and now my iphone is getting switch off while using nd restarts..???? what to do

    i was using ios 7.0.3 nd it was working very nice but before some days i got an update 7.0.4 nd i updated and now my iphone is getting switch off while using nd restarts..???? what to do

    Sorry you cannot go back to previous version once your are updated to the latest iOS version.
    Apple prevents downgrading your phone.

  • Af:inputListOfValues sets value of first item in result set when using enter key or tab and component set to autosubmit=true

    I'm using JDev 11.1.1.6 and when I type a value into an af:inputListOfValues component and hit either the enter key or the tab key it will replace the value I entered with the first item in the LOV result set. If enter a value and just click out of the af:inputListOfValues component it works correctly. If I use the popup and search for a value it works correctly as well. I have a programmatic view object which contains a single transient attribute (this is the view object which is used to create the list of value component from) and then I have another entity based view object which defines one of its attributes as a list of value attribute. I tried using an entity based view object to create the LOV from and everything works as expected so I'm not sure if this is a bug when using programmatic view objects or if I need more code in the VOImpl. Also, it seems that after the first time of the value being replaced by the first value in the result set that it will work correctly as well. Below are some of the important code snippets.
    Also, it looks like it only doesn't work if the text entered in the af:inputListOfValues component would only have a single match returned in the result set. For instance given the result set in the code: Brad, Adam, Aaron, Fred, Charles, Charlie, Jimmy
    If we enter Cha, the component works as expected
    If we enter A, the component works as expected
    If we enter Jimmy, the component does not work as expected and returns the first value of the result set ie. Brad
    If we enter Fred, the component does not work as expected and returns the first value of the result set ie. Brad
    I also verified that I get the same behavior in JDev 11.1.1.7
    UsersVOImpl (Programmatic View Object with 1 transient attribute)
    import java.sql.ResultSet;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import oracle.adf.share.logging.ADFLogger;
    import oracle.jbo.JboException;
    import oracle.jbo.server.ViewObjectImpl;
    import oracle.jbo.server.ViewRowImpl;
    import oracle.jbo.server.ViewRowSetImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Wed Sep 18 15:59:44 CDT 2013
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class UsersVOImpl extends ViewObjectImpl {
        private static ADFLogger LOGGER = ADFLogger.createADFLogger(UsersVOImpl.class);
        private long hitCount = 0;
         * This is the default constructor (do not remove).
        public UsersVOImpl () {
         * executeQueryForCollection - overridden for custom java data source support.
        protected void executeQueryForCollection (Object qc, Object[] params, int noUserParams) {
             List<String> usersList = new ArrayList<String>();
             usersList.add("Brad");
             usersList.add("Adam");
             usersList.add("Aaron");
             usersList.add("Fred");
             usersList.add("Charles");
             usersList.add("Charlie");
             usersList.add("Jimmy");
             Iterator usersIterator = usersList.iterator();
             setUserDataForCollection(qc, usersIterator);
             hitCount = usersList.size();
             super.executeQueryForCollection(qc, params, noUserParams);
        } // end executeQueryForCollection
         * hasNextForCollection - overridden for custom java data source support.
        protected boolean hasNextForCollection (Object qc) {
             Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
             if (usersListIterator.hasNext()) {
                 return true;
             } else {
                 setFetchCompleteForCollection(qc, true);
                 return false;
             } // end if
        } // end hasNextForCollection
         * createRowFromResultSet - overridden for custom java data source support.
        protected ViewRowImpl createRowFromResultSet (Object qc, ResultSet resultSet) {
             Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
             String user = (String)usersListIterator.next();
             ViewRowImpl viewRowImpl = createNewRowForCollection(qc);
             try {
                 populateAttributeForRow(viewRowImpl, 0, user.toString());
             } catch (Exception e) {
                 LOGGER.severe("Error Initializing Data", e);
                 throw new JboException(e);
             } // end try/catch
             return viewRowImpl;
        } // end createRowFromResultSet
         * getQueryHitCount - overridden for custom java data source support.
        public long getQueryHitCount (ViewRowSetImpl viewRowSet) {
             return hitCount;
        } // end getQueryHitCount
        @Override
        protected void create () {
             getViewDef().setQuery(null);
             getViewDef().setSelectClause(null);
             setQuery(null);
        } // end create
        @Override
        protected void releaseUserDataForCollection (Object qc, Object rs) {
             Iterator usersListIterator = (Iterator)getUserDataForCollection(qc);
             usersListIterator = null;
             super.releaseUserDataForCollection(qc, rs);
        } // end releaseUserDataForCollection
    } // end class
    <af:inputListOfValues id="userName" popupTitle="Search and Select: #{bindings.UserName.hints.label}" value="#{bindings.UserName.inputValue}"
                                                  label="#{bindings.UserName.hints.label}" model="#{bindings.UserName.listOfValuesModel}" required="#{bindings.UserName.hints.mandatory}"
                                                  columns="#{bindings.UserName.hints.displayWidth}" shortDesc="#{bindings.UserName.hints.tooltip}" autoSubmit="true"
                                                  searchDesc="#{bindings.UserName.hints.tooltip}"                                          
                                                  simple="true">
                              <f:validator binding="#{bindings.UserName.validator}"/>                      
    </af:inputListOfValues>

    I have found a solution to this issue. It seems that when using a programmatic view object which has a transient attribute as its primary key you need to override more methods in the ViewObjectImpl so that it knows how to locate the row related to the primary key when the view object records aren't in the cache. This is why it would work correctly sometimes but not all the time. Below are the additional methods you need to override. The logic you use in retrieveByKey would be on a view object by view object basis and would be different if you had a primary key which consisted of more than one attribute.
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i) {
        return retrieveByKey(viewRowSetImpl, null, key, i, false);
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, String string, Key key, int i, boolean b) {
        RowSetIterator usersRowSetIterator = this.createRowSet(null);
        Row[] userRows = usersRowSetIterator.getFilteredRows("UserId", key.getAttribute(this.getAttributeIndexOf("UserId")));
        usersRowSetIterator.closeRowSetIterator();
        return userRows;
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i, boolean b) {
        return retrieveByKey(viewRowSetImpl, null, key, i, b);

  • Why a long and narrow image (400x2200)mm is cut off while printing on Epson 9880 using Adobe Illustrator?

    Why a long and narrow image (400x2200)mm is cut off while printing on Epson 9880 using Adobe Illustrator?

    3.2 you can make multiple clocks, each clock can have a different alarm.

  • Been using LR since 2004. My raws are all of sudden jumping around in Develop module. Image does not stay, it goes forward and backwards randomly, even with magic mouse off. Can't edit. Using MacPro, currently everything. Canon 5dmk3 raws

    Been using LR since 2004. My raws are all of sudden jumping around in Develop module. Image does not stay, it goes forward and backwards randomly, even with magic mouse off. Can't edit. Using MacPro, currently everything. Canon 5dmk3 raws

    This sounds like a hardware issue. I haven't seen this particular problem reported before.

  • I'm running OSX 10.8.5 Mountain Lion.  What version of QuarkXpress and Microsoft Word run with this level?

    I'm running OSX 10.8.5 Mountain Lion.  What version of QuarkXpress and Microsoft Word run with this level? My older versions are no longer supported.

    Hi Jrehoboth,
    please see here: http://forums.quark.com/viewtopic.php?f=14&t=4608
    At the bottom of the post we summarized which version you can run on each version of OS X:
    So if your operating system is OS X Mountain Lion (10.8) then you can use QuarkXPress 9 & QuarkXPress 10 and soon QuarkXPress 2015.
    Thanks
    Matthias

  • My iPad 1 won't hold a charge for very long and will only fully charge when turned off while plugged in. Will a full reset fix this?

    my iPad 1 won't hold a charge for very long and will only fully charge when turned off while plugged in. Will a full reset fix this?

    maybe but
    most likely no
    if you have many apps running and using data and localization at the same time yes maybe
    but batteries get worse and worse and worse over time until they die a software reset will not change that

  • I have a g5 desktop and I am having an issue with it turning off while im using it. I think it may be something to do with the cooling system

    I am wondering what could be causing my computer to shut off while i'm using it. I think it is something to do with the cooling system because it feels hot to the touch and will not turn back on for awhile until it cools down

    Is yours an iMac G5:
    or a PowerMac G5:
    There is a big difference in the cooling systems. If you have the tower, we can get your post moved to the forum where all the G5 tower gurus hang out.

  • HT1414 I had my ipod touch off and when I tried to turn it off the best I could get was the apple logo than that went out.  I can't get it come on at all.  It was working fine earlier and nothing has happen to it.

    I tried to turn on my ipod touch and the best I could get was the apple logo and even that went out.  I tried charging it with no luck.  It had charge yesterday when I turned it off but now I can't get anything at all.  Any suggestions???

    If the reset does not work try the remaining items:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • I got screwed again, my Mac suggested I download a newer version of Firefox which I did (3.6) and i ended up with the same problem as last time when I was prompted to try the Beta version (4).

    Now I can''t use or access the bookmarks !
    How can I go back to the older version that worked ok, except for the theme issues? I've consistently had issues with the themes, I can't get rid of the one I can't see through and have to uninstall it every time i open Firefox. I need a solution or I'll have to delete it for good and go back to Safari!

    Might it be that the bookmarks toolbar is hidden.
    Please see https://support.mozilla.com/en-US/kb/Bookmarks%20Toolbar#w_show-or-hide-the-bookmarks-toolbar for how to make it visible again.

  • 1st box of cards looked great. 2nd box of same cards was printed with the colors off balance, and don't have a quality look.  Who do I call?

    I have ordered many books and cards and been thrilled with the results.  Unfortunately the latest box that arrived were not printed well, and the colors are off balance.  What can be done?

    1-800-263-3394 (english & french)
    Applecare.
    They will help. Don't worry.

  • Was performing an app update to my Iphone ...the Garmin update which is huge...Synched to my pc to perform the app download to expedite, but had to leave and broke the connection with the pc improperly while the update was in progress..now the pc will not

    Can I get an assist on this

    http://support.apple.com/kb/TS1538
    try this to get phone recognized! Assuming it is windows, if not let me know

  • I need help. My new iphone 4s was working with no errors for the past month. I was out one right and it was below 30 degrees. when i came in ny house it was about 75-80. I went to sleep and nothing was wrong with my iphone. I woke up and it won't turn on.

    If anyone could help?

    Hello dvf276
    Follow the steps in the article below to resolve issues with your iPhone not powering on.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Regards,
    -Norm G.

  • On the new IMOVIE, How do you do voice overs and how do you add a video going while another video is going? HELP.

    I recently got a MAC BOOK PRO! The newest version and I make beauty videos, so I need to edit my videos, how do you do voice overs on Imovie? It doesnt give me an option to do a voice over.  And how do you have a video going and then in the corner have another one going? I Have the IMOVIE app on my phone and I know how to do all of that but it doesnt let me do it on my laptop.  Please help! Thank you

    Voice over:
    http://help.apple.com/imovie/mac/10.0/#mov91a895a64
    Picture-in-Picture:
    http://help.apple.com/imovie/mac/10.0/#mova1aaa682b
    Matt

  • Can i have ps3 macbook 2 iphone and 1 ipad running with no trouble

    hi

    Nothing can be guaranteed 100%, but each of the listed items you provide SHOULD be able to connect to a wireless router or wireless access point if they are equipped with the appropriate wireless adapter.

Maybe you are looking for

  • Adobe Acrobat 9 standard installation issues

    I have Adobe acrobat Standard 9 and I just reformatted my hard drive and tried to reinstall my product serial number 1016157926356497980XXXXX and it says that 2 of 2 licenses were already installed.  I don't know how that is possible given I have onl

  • Safari crashes each time I try to upload pictures

    I am new to Mac and never had any troubles with my Mac Air since I bought it before last Christmas. However, a couple of days ago I realized each time I want to upload a picture it crashes. I tried linkedin, yahoo and a couple of other sites. Reinsta

  • Multiple condition for payment terms

    Hi, I wanted to create new payment terms with multiple combination say for example 95% Payment in Advance & Remining 5% in Net 360 days.  How to configure with multiple conditions.

  • Transaction Variant: BBPSC02

    Hi Experts, I am facing a problem with the transaction variant which I have created for the standard transaction BBPSC02. Below are the steps which I have followed to create it in development system: In SHD0 Transaction, I have first created a varian

  • Offline Source Control Locks LV 8.2

    A colleague of mine reported this and i'm sorry to verify it: If you have your SCC database on a network and you have SCC enabled in LV and you disconnect from the network the next time you want to open a VI that is on the SCC LabVIEW hangs. Reason: