Xsql:dml update... does not get executed?

I was testing a simple one field update in <xsql:dml> block and getting the following statement:
<xsql-status action="xsql:dml" rows="0"/>
What might be the problem?

The issue is that JDBC returns a row count only for simple DML statements.
Whenever you use a BEGIN...END block, JDBC doesn't know how many rows your statement has affected.
If you try the latest XSQL 9.0.2B release, and use:
<xsql:dml>
update emp set ename='FORD2' where empno=7844
</xsql:dml>
You'll see that it shows one row was affected.

Similar Messages

  • CommandButton code does not get executed with partialSubmit=false

    Following code in Jdev11g
    <input type="text" value="#{myBacking.text}"/>
    <af:commandButton text="Click" action="#{myBacking.doSomething}"/>
    <af:commandButton text="Click" actionListener="#{myBacking.doSomethingElse}"/>
    public void setText(String value)
       System.out.println("Setting value");
    public String doSomething()
       System.out.println("Clicked");
        return "";
    public String doSomethingElse(ActionEvent e)
       System.out.println("Clicked with event");
    } I always get following output:
    Setting valueI never see the output from my commandButton. It seems that my button does not executes it's code but just notifies the components to call their setters.
    I notice that when i set the partialSubmit to true, de code do get executed.
    Why is that and what is causing this behaviour? How can i use my own code in the buttons without setting the partialSubmit to true? I do need a complete refresh of the page and can not use the partialSubmit but when it's set to false, it ignores my code...

    They are inside an af:form
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document id="doc1">
          <af:messages id="m1"/>
          <af:form id="frm1">
               //MY buttons are here
          </af:form>

  • Customer Exit Text Does Not Get Executed

    Dear all,
    I have a text variable to display the last date of a month, named ZT_LASTDATE.
    Subsequently, I write an ABAP code in CMOD as follows:
    CASE I_VNAM.
      WHEN 'ZT_LASTDATE'.
    *    IF I_STEP = 2.
    * Assign 0P_PER3 (Posting Period) value to v_month.
          CLEAR loc_var_range.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY VNAM = '0P_PER3'.
    * Logic to convert Period 13, 14, 15 & 16 to Period 12.
          IF loc_var_range-low GT '012'.
            v_month ='12'.
    * For normal periods (Period 01 - Period 12).
          ELSE.
            v_month = loc_var_range-low+1(2).
          ENDIF.
    * Assign 0P_FYEAR (Fiscal Year) value to v_year.
          CLEAR loc_var_range.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY VNAM = '0P_FYEAR'.
          v_year = loc_var_range-low.
    * Assign first date of the month i.e. 01 to v_date.
          v_date = '01'.
    * Concatenate Year, Month & Date into ZW_DT1 as input
    * for SLS_MISC_GET_LAST_DAY_OF_MONTH function module.
          CONCATENATE v_year v_month v_date INTO ZW_DT1.
    * Call function module to get last date of the month.
    * Input  : ZW_DT1 e.g. 20111201
    * Output : ZW_DT2 e.g. 20111231
          CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in            = ZW_DT1
            IMPORTING
              last_day_of_month = ZW_DT2.
    * Prepare last date of the month in DD.MM.YYYY format.
    * ZW_DT2 date format        = 20111231
    * l_s_range-low date format = 31.12.2011
          CLEAR l_s_range.
          l_s_range-low+0(2) = ZW_DT2+6(2).
          l_s_range-low+2(1) = '.'.
          l_s_range-low+3(2) = ZW_DT2+4(2).
          l_s_range-low+5(1) ='.'.
          l_s_range-low+6(4) = ZW_DT2+0(4).
          l_s_range-sign     = 'I'.
          l_s_range-opt      = 'EQ'.
    * Send last date of the month output to ZT_LASTDATE variable.
          APPEND l_s_range TO e_t_range.
    *    ENDIF.
    ENDCASE.
    However, when I execute my query, the variable text is displayed as &ZT_LASTDATE& and not as expected e.g. 31.12.2010.
    I tried to debug it and found out that after the program stop at  
    WHEN 'ZT_LASTDATE'.
    it went straight to ENDFUNCTION of INCLUDE ZXRSRU01.
    May I know what went wrong here?
    Thanks!

    Hi,
    Uncomment the line I_STEP = 2 and then try debugging your code, put external break point on read table statement and keep on debugging. Don't put session breakpoint, for debugging you will have to use external break point. 
    Regards,
    Durgesh.

  • JdoPostLoad() does not get executed!!!

    Kodo 2.4.3
    Sequence
    1. Create PC (docket)
    2. Persist it
    3. evict it
    4. read one of its fields of PC type - jdoPostLoad() isn't triggered OR
    read one of its simple fields which are part of default fetch group -
    jdoPostLoad() gets triggered
    After evictAll() I am reading
    pmi.currentTransaction().begin();
    nd = createDocket();
    touchDocketMilestones(nd);
    pmi.currentTransaction().commit();
    pmi.evictAll();
    pmi.currentTransaction().begin();
    nd.getGoal(); //PC field so it is not in default fetch group: DO NOT
    triggers jdoPostLoad()
    nd.getDescription(); //String field from default fetch group: Triggers
    jdoPostLoad()

    I agree that specs are rather wague about it. My point is that jdoPreClear()
    and jdoPostLoad() logically should go in pairs - if jdoPreClear() invoked on
    evict jdoPostLoad() should be invoked on first field access (it means that
    default fetch group fields will have to be alwaysloaded first)
    If jdoPostLoad() is not invoked on transition from hollow to p.clean we will
    have no way to reinitialize transient fields the same way we do when an
    object read first time
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]...
    Alex,
    It is not clear to me that jdoPostLoad() should be triggered in that
    situation.
    Evicting the object makes it transition to Hollow, meaning that all
    fields in the object are marked as not loaded.
    Subsequently, you access a field that is not in the default-fetch-group.
    After this call completes, the default-fetch-group is still unloaded. So,
    it is not clear to me that the jdoPostLoad() callback should have been
    invoked.
    Section 10.1 of the spec states that InstanceCallbacks.jdoPostLoad() is
    invoked after the dfg is loaded. So, to invoke jdoPostLoad() after
    loading a non-dfg field in a hollow object would be in violation of the
    spec -- unless we first loaded the dfg, we'd be executing jdoPostLoad()
    before loading the dfg.
    I don't believe that the spec states that the dfg must be loaded when a
    non-dfg field is loaded. Given this assumption on my part, I believe that
    our behavior is correct.
    -Patrick
    On Fri, 11 Apr 2003 16:44:49 -0400, Alex Roytman wrote:
    Kodo 2.4.3
    Sequence
    1. Create PC (docket)
    2. Persist it
    3. evict it
    4. read one of its fields of PC type - jdoPostLoad() isn't triggered OR
    read one of its simple fields which are part of default fetch group -
    jdoPostLoad() gets triggered
    After evictAll() I am reading
    pmi.currentTransaction().begin();
    nd = createDocket();
    touchDocketMilestones(nd);
    pmi.currentTransaction().commit();
    pmi.evictAll();
    pmi.currentTransaction().begin();
    nd.getGoal(); //PC field so it is not in default fetch group: DO
    NOT
    triggers jdoPostLoad()
    nd.getDescription(); //String field from default fetch group:
    Triggers
    jdoPostLoad()--
    Patrick Linskey
    SolarMetric Inc.

  • Rc.local does not get executed

    Hi all Archers,
    today I put some commands into my rc.local to enable features recommended by powertop.
    The problem is they aren't applied with a restart.
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    # Power aware CPU scheduler
    echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
    # Audio codec power management
    echo 1 > /sys/module/snd_hda_intel/parameters/power_save
    # SATA link power management
    echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
    # VM writeback timeout
    echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
    # Turn off NMI watchdog
    echo 0 > /proc/sys/kernel/nmi_watchdog
    echo "Script has finished"
    Permissions:
    # ls -l /etc/rc.local
    -rwxr-xr-x 1 root root 568 24. Mai 23:31 /etc/rc.local
    Because of this I added the last command and it gets printed while booting.
    But all other commands do nothing…
    That's really odd and I don't know how to solve it.
    By the way, I'm not using systemd.
    What could be the reason for this?
    Thanks for help.
    Radioactiveman

    ice9 wrote:Are you running X ?
    Yes, I am (also with XFCE). And the behaviour is exactly as you described.
    Without startx the settings are applied.
    Did you manage to solve that? Or do you know a workaround?
    Last edited by Radioactiveman (2012-05-28 18:12:45)

  • .login does not get executed

    Hi,
    I have a problem with my .login file. As of the Intel-Compiler documentation I should place the line
    source /opt/intel/cc/9.1.032/bin/iccvars.sh
    into my ".login" file. I've done this, but neither when I start a Terminal, nor when I try to compile something, the appropriate vars are set. If I execute the file by hand, everything works as expected.
    Any ideas ?
    Thanks

    This is another marginally helpful response...
    It sounds as if perhaps you need those variables set without opening up a unix shell, i.e., without starting up Terminal or X11. If that is the case, there is yet another file in which you do it.
    The problem is, I don't remember its name. Something like "environment.plist", maybe. And the file has to be in the right directory, of course, which might be ~/Library instead of your home directory. But again, I don't remember.
    Hopefully, someone who knows will read this and answer, or perhaps you can dig it up with some web-searching.

  • AdbeRdrUpd1001_Tier1.msp Update Does Not Install using Nullsoft

    Hello,
    I am attempting to use the Nullsoft Scriptable Install system to install the Adobe® Reader® 10.0.1 update on Windows XP SP3.  I determined that the Adobe update will install as expected when I run the msp on a console command line with the following arguments:
    C:\temp\> AdbeRdrUpd1001_Tier1.msp /passive /norestart
    However, when I put the same exact command into Nullsoft script, the update does not get applied.  I have a theory that the Tier1 update needs to determine language information from Windows XP and because the Nullsoft script executes in a Windows environment that is not fully initialized, the language information is not available and the update fails.  If you can expand on this or provide any insight please respond to this message.  Any help with this question would be greatly appreciated.
    Thanks, Jeff

    you could start by uninstalling the HP Update program from Add/Remove Programs.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • Deadline branch not getting executed

    Hi
    In my BPM i have an infinite loop and also the deadline branch with inerval as 1 minute (for testing purpose) but when i send the message my deadline branch does not get executed after 1 minute and it keeps on waiting.
    in the bpm monitoring it shows wait step created.
    i have verified my design with the standard pattern available, and it is almost similar.
    i am not able to find out the reason behind this strange behavior.
    Regards
    Dheeraj

    Hi Saravana
    i did exactly the same, i have my deadline branch, in it i have my control step which trows exception, which is catched by my exception branch and does nothing, so ideally it should continue the processing after that.
    but the problem is the exception is never thrown.
    my deadline has been configured as
    Reference Date/Time: Creating the step
    Duration: 1
    Unit: Minutes
    control step in deadline branch
    Action: Throw Exception
    Exception: Time_out
    Exception branch
    Exception Handler: Time_Out
    and outside this block i have transformation and other steps... which shoul get excuted after 1 minute deadline.
    Regards
    Dheeraj

  • Scheduled job not getting executed on a logical standby

    Hello,
    We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
    However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
    select * from all_scheduler_job_log
    select * from dba_scheduler_running_jobs
    select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
    Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
    Appreciate your thoughts in this regard.
    Thanks.

    Hi Justin,
    Thanks for your response.
    As per the app design, the job invokes a stored program(that maps to a stored procedure present in standby db itself) that reads the data from standby and populates the relevant tables/entities in another database(third db, not primary or standby) which acts as a repository. No write operations are to be performed on standby.
    So, i have two doubts:
    -- Can scheduled jobs execute on logical standby db[Oracle release 10g(R2)]
    I was going through few of the oracle docs and it is mentioned that this is a known limitation in 10g
    R2 release and has been corrected in 11g. Now we have something called database_role
    attribute that needs to be set to 'LOGICAL STANDBY' if you need to execute a job on
    standby. However it is available in 11g onwards.
    -- If there is no workaround for the above mentioned problem in 10g-R2 release.
    Then we may have to schedule a job from third db instance that shall invoke the program(residing on the standby db). Can we have a scheduled job which executes a program that maps to a remote stored procedure instead of local stored procedure?
    Appreciate your thoughts.
    Thanks

  • AOP JoinPoint not getting executed

    The spring configuration that I have is
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
      http://www.springframework.org/schema/aop
      http://www.springframework.org/schema/aop/spring-aop-3.1.xsd ">
      <aop:aspectj-autoproxy />
      <bean id="addCarrierService" class="com.service.AddCarrierService" />
      <!-- Aspect -->
      <bean id="authorizeBeforeAspect" class="com.custom.AuthorizeBeforeAspect" />
      <aop:config>
      <aop:aspect id="aspectLoggging" ref="authorizeBeforeAspect">
      <!-- @Before -->
      <aop:pointcut id="pointCutBefore" expression="execution(* com.service.*.*(..))" />
      <aop:before method="secureBefore" pointcut-ref="pointCutBefore" />
      </aop:aspect>
      </aop:config>
    </beans>
    And the join point class is
    package com.custom;
    import org.aspectj.lang.JoinPoint;
    import org.aspectj.lang.annotation.Aspect;
    import org.springframework.security.core.context.SecurityContextHolder;
    import org.springframework.stereotype.Component;
    @Component
    @Aspect
    public class AuthorizeBeforeAspect {
      public void secureBefore(JoinPoint joinPoint) {
      System.out.println("Inside AuthorizeBeforeAspect.secureBefore() method");
      if (SecurityContextHolder.getContext().getAuthentication().getPrincipal() != null)
      DEPUser user = (DEPUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    AuthorizeBeforeAspect .java class does not get executed at all. Not sure where am I going wrong?

    Hi,
    Was the chain created and activated properly, try activating the chain once again, if there is an issue with any of the variants the process chian will not get activated and throw and error.
    If this is not the case and if you are able to activate the process chain successfully, open the start variant and change the settings.
    Right click on the start variant -> Select direct scheduling option.-> press Change selection button
    Select immediate button and press enter. Now come back save the start variant and activate the chain once again.
    Schedule the chain and it should run right away. Monitor the logs.
    Regards,
    Sudheer

  • Sent items of my exchange account in iphone does not get updated

    Hi..
    sent items of my exchange account in iphone does not get updated. Mails sent from iphone are getting recieved by everyone and same is getting updated in outlook. sent items for the same account in ipad is getting updated. I am not facing this problem with any other folders in my exchange account. someone please provide a solution for this. I have tried resetting, restoring but nothing works...
    Regards,
    Yash

    Hi,
    The problem could be the currency of the valuation area. It has to be the local currency. Maybe the company code has the local currency but the valuation currency is another.
    Without having access to your system it is difficult to say. Maybe double check your customizing for assignment of update types for derived business transactions in spro:
    Transaction Manager
    -> General Settings
         -> Accounting
             -> Settings for Position Management
                  -> Derived Business Transactions
                      -> Update Types
                          -> Assign Update Types for Derived Business Transactions
    I hope this is helpful.
    M Trein
    Edited by: Marcelo Trein on Jun 21, 2011 12:19 AM (spelling)

  • Dispute case does not get updated with subsequent partial payment

    Hi Experts
    I am now still testing the Dispute management .. but it's my first time to see that some times created dispute case does not get updated with the payment posted against the invoice which the dispute case has been raised .. when i trying to add open item to the current dispute case i face this Error..
    Process step 004: Change not possible, process step 003 missing
    Message no. UDM_MSG037
    Diagnosis
    The dispute case is to be changed by process step 004 from accounting. However, there is at least one process (for example, clearing transaction from payment or credit memo) that was performed before the current step and that has not yet updated the dispute case. The changes to the dispute case must be carried out in the correct order.
    System Response
    The dispute case could not be changed.
    Procedure
    In an asynchronous change to dispute cases using IDoc, make sure that all IDocs of the previous process have been posted. Then you can carry out the required action (for example, post the current IDoc from process step 004 or include further items). The immediate previous process step is 003.
    Your kind feed back is highly appreciated..
    Regards
    Mahmoud EL Nady

    Hi
    Thanks for straight forward solutions its now working properly after run the program.. thanks too much..
    also do i need to run this program periodically or once i notice that one dispute case it not getting updated?
    Regards
    Mahmoud El Nady

  • Moving Average Price does not get updated for Project Stock

    Hello Experts
    We have an Engineer-to-Order implementation for our client. Accordingly procurement is done per project. Each Project issues its PRs which are then converted to POs and recieved into Project Stock.
    While assigning the material to the Network activity in Project (using material component) the system uses the price found in the material master (MAP or STD) as a planned cost appended to the project.
    Problem:
    while procuring the material, when we receive it into Project Stock (Mvt 101 Q + ) the Moving Average Price in the material master does not get updated. this way all newly created material master will never have a moving average price, thus whenever we try to assign them to the project we receive an error message (Cost for Material Component ###Mat.Num### cannot be determined.
    Question:
    How can I get the system to update moving average price (for all types of stock) based on procurement for project stock.???
    Your help is kindly appreciated.

    I'm sorry for the confusion
    Case:
    The T-code is CJ20N Project Builder in PS module
    we are assigning material components to network activities under a certain WBS element in the project.
    there is a function in the Project Builder to calculate the cost of a network. it uses the costing variant assigned to the network which is PS02 (We get the error here)
    The costing variant has a valuation variant which lists a series of strategies  to get the material price. Planned 1 if not then STD if not then MAP. (you can choose between many options via a drop down menu) you can choose 5 consequent options.
    The MAP that the valuation variant is coded to get is the Plant Stock MAP -- Or the Project Stock MAP but only Per WBS element.
    The MAP that the Actual postings update is the Project Stock MAP only Per WBS element.
    This means that if you use a material component to purchase material 123 Acc.As. Q for WBS X for 10 $ then you try to assign a new material component with the same material 123 to WBS Y, the system will not get a MAP. because it's stored in QBEW per WBS element.
    This way the system will never get the MAP right.
    However, we don't always use project stock to procure for projects, for some requirements we can assign and use plant stock as well for Projects. that way we need the MAP from plant stock.
    In the Valuation Variant you can use a User Exit Strategy. The user exit's name is COPCP005
    My Suggestion is:
    Use the User Exit COPCP005 to calculate the { Total value / the total quantity (MAP) from QBEW + Total value / total quantity (MAP) from MBEW } / 2
    which is the MAP for both plant and project stock together, since that we are going to use both.
    Q: Is this correct !?

  • Scheduling agreement ( Pur. doc. Type LPA) does not get updated in MEI1

    We have a requirement that, purchasing documents ( POs and Scheduling Agreements) needs to be updated when there is change in price in purchasing info record. We have made configurations to activate the change pointers on pricing conditions and they are working fine. To update the price in purchasing documents following process is used.
    1.     Transaction MEI4 u2013 Create work list
    2.     Transaction MEI3 u2013 Recompilation of document index.
    3.     Transaction MEI1 u2013 Changes to purchasing documents due to changes in conditions.  
    After running MEI1, price is updated only in purchasing documents and the update does not take place in scheduling agreement. Does anyone one know what things may be missing? Or is this a SAP transaction issue?

    Hi
    If scheduling agreement has time dependent conditions it will not update. You need to remove time dependent tick from document type definition config.(spro>MM>purchasing>scheduling agreement>define document type)
    remove tick mark it will update.
    Regards
    Antony

  • Windows update does not work after using System recovery disk

    I have a Toshiba Satellite c655 with WIndows 7 64 bit Home premium. The hard drive died on it, so I purchased a new hard drive and purchased the appropriate Recovery media from Toshiba. I followed the directions and installed the 3 disks on to the new hard drive. But Windows update does not work I get the following error: Windows update can not currently check for updates, because the service is not running. You may need to restart your PC    No matter what I try, I can not get it to work. And it will not let me install Windows Defender either. Any ideas or help would be appreciated. Thank you in advance for your time on this matter.
    Solved!
    Go to Solution.

    I get errors saying A problem is preventing the troubleshooter from starting.
    That makes two similarities to the following thread. Both Windows Update and Troubleshooters fail to work correctly.
       Trouble with reinstall of Win7 64 on a L505-ES5018
    The fix was to install a new hard disk driver.
       Intel Rapid Storage Technology
    -Jerry

Maybe you are looking for