Incorrect VO instance updating.

Hi all
I have a problem. I have a custom OAF page which contains a single context-dependent header record and an Advanced Table with the details associated with the header record. Between the header record and the detail record, there is another advanced table containing the various input columns required to create a detail record in the Advanced Table below.
Both the Input Table and the Detail Table utilise the same View Object, but each uses a different instance of the VO - let's call them VoDetailVO1 and VoDetailVO2 respectively.
There is a single select bean on the Advanced table which is used to Copy, Update and Delete the claim. The Copy and Update functions utilise the fairly standard method given in the Developers Guide which takes the values from the source row of the detail record ( VoDetailVO2 ) and copies them into the destination row of the input table's VO instance (VoDetailVO1 - initiliazed on initial page render).
Everything works fine up until the point where the values are inserted into the destination vo. At this point, instead of inserting into VoDetailVO1, the first row of VoDetailVO2 is being updated with the values.
Code synopsis here:
VoDetailsVOImpl sourceVO = getVoDetailsVO2();
VoDetailsVOImpl destVO = getVoDetailsVO1();
//no problems yet...
// get the source row..
Row sourceRow = sourceVO.getFirstFilteredRow("SelectRow", "Y");
// still no problems...
if (sourceRow != null)
for (int i = 0; i < attrCount; i++)
byte attrKind = attrDefs { i }.getAttributeKind();
// Bypass copying attributes internally created by BC4J or OA Framework.
// If you want to copy your own known dynamic attribute values from the
// source VO to the destination VO, then copy those attribute values
// explicitly using hardcoded attribute names.
if (!(attrKind == AttributeDef.ATTR_ASSOCIATED_ROW ||
attrKind == AttributeDef.ATTR_ASSOCIATED_ROWITERATOR ||
attrKind == AttributeDef.ATTR_DYNAMIC))
String attrName = attrDefs[ i ].getName();
// Loop through the attributes...
if (attrName == "TypeLookup"
|| attrName == "DateFrom"
|| attrName == "DateTo"
|| attrName == "AssignmentId"
|| attrName == "LineInput1"
// This all still works fine up to here. Now get a handle on the destination VO row..
VoDetailsVORowImpl destRow = destVO.first();
// There is only ever one row in this VO, so use of first() should be peachy;
destRow.setAttribute(attrName, attrVal);
// All gone wrong here - this updates the first row of the sourceVO as defined at the start of the procedure. (!!!)
else
// The user did not select a row
throw new OAException("PER", "MYCLAIM_NOROWSELECTED");
Anyone had any experience of this issue, or any idea on what's going wrong?
Regards
CK
Edited by: CK on 18-Jul-2011 03:10
Edited by: CK on 18-Jul-2011 03:14

Hi,
When exactly you are creating and inserting record in destVO?
mere destVO.first() won't work, first() works if records are already fetched using query.
If I understand correctly, you should be creating new record in destVO (albait the only record) as follows:
Row row = destVO.createRow();
//defaulting logic should go here
row.setAttribute("Attr1", value);
destVO.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
Thanks,
Hrishikesh

Similar Messages

  • SAP liveCache instance update exited abnormally

    Hi MaxDB/Livecache,
    While applying LIvecache patch from 07 to 13 i got this error.
    checking unpacked archive... ok
    installation of SAP liveCache APO LiveCache finished successfully Tu, Feb 05, 2008 at 17:14:33
    finding instance type...
    checking mmap support...
    starting release already known
    apo starting release already known
    migration strategy already known
    running finalize check...
    current liveCache state is OFFLINE
    checking parameters...
    switch liveCache state to ADMIN
    switch liveCache state to ONLINE
    loading system tables...
    checking catalog...
    registering liveCache application procedures...
    registering lcapp routines failed
    load_lcapps
    ERR
    -24964,ERR_EXECUTE: error in program execution
    768,/sapdb/LCA/db/bin/x_python /sapdb/LCA/db/env/lapps.py -R /sapdb/LCA/db -d LCA -u SUPERDBA,*
    Installing APPS
    Installing APPS
    Traceback----
      File "/sapdb/LCA/db/env/installib.py", line 401, in connectAndInstall
        installRoutine (session, options)
      File "/sapdb/LCA/db/env/lapps.py", line 34, in install
        "APPS"
      File "/sapdb/LCA/db/env/installib.py", line 163, in include
        install (session, options)
      File "/sapdb/LCA/db/env/APPS.py", line 36, in install
        loaderCmd (session, 'USE USER %s %s' % (sapuser[0], sapuser[1]))
    Command----
    USE USER SAPLCA MANAGER
    Error----
    loader.LoaderError: [-25008] Logon failure; previous user's (SUPERDBA) connection was restored.
    cannot finish instance update for "LCA"
    checking catalog...
    table SYSDBA.SYSCHECKCATALOGERRORS does not exist
    registering liveCache application procedures...
    registering lcapp routines failed
    load_lcapps
    ERR
    -24964,ERR_EXECUTE: error in program execution
    768,/sapdb/LCA/db/bin/x_python /sapdb/LCA/db/env/lapps.py -R /sapdb/LCA/db -d LCA -u SUPERDBA,*
    Installing APPS
    Installing APPS
    Traceback----
      File "/sapdb/LCA/db/env/installib.py", line 401, in connectAndInstall
        installRoutine (session, options)
      File "/sapdb/LCA/db/env/lapps.py", line 34, in install
        "APPS"
      File "/sapdb/LCA/db/env/installib.py", line 163, in include
        install (session, options)
      File "/sapdb/LCA/db/env/APPS.py", line 36, in install
        loaderCmd (session, 'USE USER %s %s' % (sapuser[0], sapuser[1]))
    Command----
    USE USER SAPLCA MANAGER
    Error----
    loader.LoaderError: [-25008] Logon failure; previous user's (SUPERDBA) connection was restored.
    SAP liveCache instance update exited abnormally at Tu, Feb 05, 2008 at 17:15:27

    Hi Rolland,
    As you told is right, there was a problem in the password,
    we changed that password and we have tested the DB connection in db59, this was ok. and we ran the command user_sap SAPLCA,<password>
    this was ok.
    After the registration has been succefully from LC10 ..
    Thanks for your inputs,
    Mahesh Chedde

  • HT4972 What does network settings incorrect mean when updating?

    What does network settings incorrect mean when updating?

    Felipe,
    Thanks for the reply.  I was able to get it working by changing my access list from:
    ip access-list extended outside_to_inside
    permit tcp any any eq 8222
    permit tcp any eq 8222 any
    permit tcp any any eq 22
    permit tcp any eq 22 any
    to:
    ip access-list extended outside_to_inside
    permit tcp any host 192.168.10.10 eq 22
    Thanks for your help.
    Paul

  • Incorrect exchange rate - update of existing documents

    Hello
    By mistake the exchange rate currency tabel was updated with incorrect rates, which has affect a lot of incorrect values in our Finance and Controlling module
    Does anybody know if it is possible to update the existing data with the new exchange rates?
    Thank you in advance.
    BR
    Søren

    Not possible, nor legally allowed.
    revaluate and make correction postings.

  • Lens incorrectly recognised following update to Digital Camera RAW 4.03

    I have a Canon 5D II and use a Sigma 12-24 DG HSM II lens with it.
    My lens used to be identified in Aperture 3 as "Unknown (137) 12-24mm' until I updated to the latest Digital Camera RAW Compatibility 4.03.
    Now the lens is incorrectly identified as Sigma 8-16mm with 1.4x converter.
    Has anyone come across this issue or knows how to resolve this?
    Using other softwares, the lens gets correctly recognised as 12-24mm.

    I'd suggest you use Aperture's "send feedback" mechanism to report this.

  • Incorrect processor drivers updated for Satellite L850-138 (PKSDLE)

    Today i'm trying to update my processor drivers (2nd generation Intel i5 processor, i5-2450m), but updated drivers for this model AREN'T CORRECT, they're for 3rd generation Intel processors with Intel HD Graphics devices. It's impossible to update drivers of this model!
    Repeat: Incorrect display drivers for intel processor with model Toshiba Satellite L850-138!!
    It's very important to be solved soon!

    > Intel's setup was launched directly but it said my computer doesn't is compatible hardware
    This is exactly what I meant you will not be able to install the driver by executing the exe file!
    The driver need to be installed via device manager:
    1. Open Control Panel.
    2. In the upper left portion of the Control Panel dialog, click on the words "Classic View" to cause Control Panel to switch to Classic View mode.
    3. Double-click the Personalization icon, and - after the Personalization dialog appears - double-click the Display Settings option.
    4. Click the Advanced Settings button at the Display Settings dialog.
    5. At the Adapter tab of the Advanced Settings dialog, write down the exact name of the adapter type that is currently in use. This may be important in case you ever want to switch back to that driver.
    6. After jotting down the name of the existing adapter type, click Properties. If Windows asks for permission, click Continue.
    7. Click the Driver tab, and click the Update Driver button.
    8. Windows will ask whether you want to search automatically or browse for driver software. Choose the "Browse my computer for driver software" option.
    9. At the next dialog that appears, click the "Let me pick from a list of device drivers on my computer" option.
    10. A list of video drivers will appear, and you should scroll down and select Standard VGA Graphics Adapter. Click Next after making the selection.
    11. Once Windows reports that it has successfully updated your driver software, you can click either Close and/or Ok as many times as you need to close all open Control Panel dialogs. If, during this process, Windows asks whether you want to restart your computer for the changes to take effect, click Yes.

  • Music in On this iPad tab is incorrect, how to update?

    When syncing my iPad in iTunes the On This iPad tab is showing music that is no longer on the device (both greyed out songs and not), how do I update this section so it is correct?

    Restore the iOS software on the iPad mini.
    Backup the iPad, transfer purchases, restore to factory settings and then restore from the backup. That should fix your problem. Read this for the step by step instructions.
    iTunes: Restoring iOS software - Apple - Support

  • ITunes App icon displays incorrect number of updates

    Am currently running iTunes 11.03 but this issue has been around for several months. The App icon in iTunes indicates there are 38 updates available. After downloading them and syncing with my iPhone 3GS, the icon contiues to indicate 38 updates being available. Is there a way to reset the update counter?

    When the export conversion completed, the correct number of songs was displayed on both libraries. Thank You.

  • Process Instance : Update Process Variables with Java API

    Hi,
    I need to set a lot of process variables in a java service that is executed in a process but can't find the way to do that.
    Is it possible to modify the value of a variable from a process instance with the JAVA API ?
    I didn't find this type of function (for example with the ProcessManager API).
    Thanks,
    Will

    Could you place your logic in an executeScript service?
    You can use native Java there.
    I have had good luck getting values in and out of process varaibles with the get... set...
    this is a very simple example.
    import com.adobe.workflow.pat.service.*;
    String allowLogging = patExecContext.getProcessDataStringValue("/process_data/@allowLogging");
    patExecContext.setProcessDataStringValue("/process_data/@errorActivity", "Save Doc XML");
    patExecContext.setProcessDataStringValue("/process_data/@errorMessage", "SystemException");
    if (allowLogging.equalsIgnoreCase("true")) {
    System.out.println("@@@@ Save Doc XML @@@@");
    System.out.println("@@@@ SystemException @@@@");
    }; // END allowLogging

  • Wsv4400N router on download page reports "incorrect version" when updating

    Appreciate any proper updates. the download page is basically useless.

    Well try upgrading the firmware of the router & keep on holding tightly the reset button in such a way that power light is blinking on the router & then do a complete network power cycle i.e., unplug the power cables from the modem & from the router & then plug in the power cable to the modem first once all the lights are solid green you could plug in the power cable to the router & check out it will definately work!! or else you could try downloading the firmware through ftp.linksys.com & you should be able to resolve the issue.

  • TS1702 Apple ID showing up incorrect in app updates?

    I'm having trouble with my Apple ID. In my settings my apple ID is showing as correct (in iTunes, etc.). But, when I go to the app store to update a few applications, the prompt is coming up with an old apple ID. I don't know how to change this.

    Delete them and then download them from the desired Apple ID. This may require repurchasing them.
    (89289)

  • STO - Delivery - Incorrect PO history update

    Hi Experts,
    I have created an STO. STO quantity is 100 TO. A Delivery is created using the BAPI BAPI_DELIVERYPROCESSING_EXE. Delivery quantity is 9000 KG. PO history should show the delivery quantity as 9 TO. However, it shows as 9000 TO. What could be the possible cause for this mismatch in PO history.
    Sravan.

    Your BAPI did not converted the KG to TO
    make sure the KG to TO conversion exist in the material master and your BAPI should take care that.

  • Software Update - digital signature incorrect

    I have several update packages that were consistently reporting the error:
    *The update "xxxxxxx" can't be saved.*
    The digital signature for this package is incorrect.
    The updates are:
    iLife Support 9.0.3
    Java for Mac OS X 10.5 Update 4 1.0
    Safari 4.0
    Several other updates (eg. recent iTunes and QuickTime) downloaded and installed OK.
    I tried all of the following to no avail:
    Repair disk permissions
    Reinstall 10.5.7 combo package manually
    Delete Software Update preferences & cache files
    Multiple restarts
    Finally I tried running Software Update under a fresh admin account and they downloaded OK. (Different issue that the Java Update later said it couldn't install).
    So seemingly this is related to something in my usual admin account. Does anybody know what other preference files I should look to delete, or any other hidden setting that is affecting the digital signature checking?

    I tried all of the following to no avail:
    Repair disk permissions
    Guess Carolyn didn't notice this.
    This was happening fairly frequently about a month ago when 10.5.7 came out. The Apple servers were overloaded apparently and some incomplete downloads occurred so some type of checksum prevented running the update. Waiting and downloading later seemed to be the best solution.
    http://discussions.apple.com/thread.jspa?messageID=9456350&#9456350
    So seemingly this is related to something in my usual admin account. Does anybody know what other preference files I should look to delete, or any other hidden setting that is affecting the digital signature checking?
    Perhaps by the time you did all the troubleshooting steps, if you tried it from the original admin account it would have downloaded correctly.

  • Hello all trying to update a table with utl input file

    Hi all
    please kindly help me with the below :
    i have a table having 100 rows ,where i have to update the vxxx_DESC column from teh input file ,when the xxx_CODE is equal to vxxx_CODE from teh input file which is 3 didgit numeric format like the below :
    exmp csv nput fie: where i have some duplicate records in it.
    238,FKP
    208,DKK
    242,FJD
    978,EUR
    978,EUR
    978,EUR
    953,XPF
    978,EUR
    950,XAF
    from the below script, in the log file its writing for me like -
    Total Records present in Input file : 275
    Total Records updated sucessfully in table : 186
    But the update count is wrong whihc is more than the existing records. how do i get the exact update count avoiding the duplicates from the input file.
    Please kindly help.
    DECLARE
    finfile UTL_FILE.file_type;
    flogfile UTL_FILE.file_type;
    vglobal_name VARCHAR2 (300) := NULL;
    vlogfile_PATH VARCHAR2 (500) := NULL;
    vINFILE_PATH VARCHAR2(100) := NULL;
    vinfile_name VARCHAR2 (400) := 'INPUTFILE.csv';
    vlogfile_name VARCHAR2 (500) := 'INPUTFILE.log';
    vxxx_CODE CUN_CODE.xxx_CODE%TYPE :=NULL;
    vxxx_DESC CUN_CODE.xxx_DESC%TYPE :=NULL;
    vinput_rec VARCHAR2 (500) := NULL;
    ntotal_rec NUMBER (20) := 0;
    nUPD_rec NUMBER (20) := 0;
    BEGIN
    DBMS_OUTPUT.ENABLE (50000);
    IF INSTR(vGlobal_name,'RAMAN') > 0
    THEN
    vLOGFILE_PATH := '/home/log/';
    vINFILE_PATH := '/home/rpts/';
    ELSE
    DBMS_OUTPUT.PUT_LINE('Incorrect DB instance, so exiting from: ' || vGlobal_name);
    RETURN;
    END IF;
    BEGIN
    flogfile := UTL_FILE.fopen (vlogfile_PATH, vlogfile_name, 'W');
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'ERROR WHILE OPENENING LOG FILE : '
    || SUBSTR (SQLERRM, 1, 200)
    END;
    BEGIN
    finfile := UTL_FILE.fopen (vINFILE_PATH ,vinfile_name, 'R');
    LOOP
    vxxx_CODE :=null;
    vxxx_DESC :=null;
    BEGIN
    UTL_FILE.get_line (finfile, vinput_rec);
    vinput_rec:=TRIM(vinput_rec);
    ntotal_rec := ntotal_rec + 1;
    vxxx_CODE := SUBSTR(vinput_rec,1,INSTR(vinput_rec,',',1,1)-1);
    vxxx_DESC := SUBSTR(vinput_rec, INSTR(vinput_rec,',',1,1)+1);
    BEGIN
    UPDATE CUN_CODE
    SET xxx_CODE= vxxx_CODE
    WHERE xxx_DESC= vxxx_DESC ;
    nUPD_rec := nUPD_rec+SQL%ROWCOUNT;
    EXCEPTION
    WHEN OTHERS
    THEN
    UTL_FILE.put_line
    (flogfile,
    'ERROR FOR WHILE UPDATING : '
    || vxxx_CODE
    || SUBSTR (SQLERRM, 1, 250)
    END;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    UTL_FILE.put_line
    (flogfile,
    'No more records in the input file.So Exiting the update :'
    EXIT;
    WHEN OTHERS
    THEN
    UTL_FILE.put_line
    (flogfile,
    'ERROR WHILE READING FROM INFILE. '
    || SUBSTR (SQLERRM, 1, 250)
    EXIT;
    END;
    END LOOP;
    UTL_FILE.put_line (flogfile,
    'Total Records present in Input file : ' || ntotal_rec
    UTL_FILE.put_line (flogfile,
    'Total Records updated sucessfully in table : ' || nUPD_rec
    DBMS_OUTPUT.PUT_LINE('Total Records updated in table : ' || nUPD_rec);
    DBMS_OUTPUT.PUT_LINE('Total Records present in Input file : ' || ntotal_rec);
    EXCEPTION
    WHEN OTHERS
    THEN
    UTL_FILE.put_line (flogfile,
    'ERROR WHILE OPENING INFILE '
    || vinfile_name
    END;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'ERROR WHILE GETTING GLOBAL NAME'
    || SUBSTR (SQLERRM, 1, 250)
    END;
    <<skip_loop>>
    IF UTL_FILE.is_open (finfile)
    THEN
    UTL_FILE.fclose (finfile);
    END IF;
    IF UTL_FILE.is_open (flogfile)
    THEN
    UTL_FILE.fclose (flogfile);
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'ERROR WHILE ACCESSING DB '
    || SUBSTR (SQLERRM, 1, 250)
    END;
    /

    975482 wrote:
    i have a table having 100 rows ,where i have to update the vxxx_DESC column from teh input file ,when the xxx_CODE is equal to vxxx_CODE from teh input file which is 3 didgit numeric format Looks like your code does exactly the opposite :
    UPDATE CUN_CODE
    SET xxx_CODE= vxxx_CODE
    WHERE xxx_DESC= vxxx_DESC ;Additional suggestions :
    1) create a directory object pointing to the location of your input file
    2) create an external table to read the file
    3) use a single UPDATE or MERGE statement to do the job, instead of this mess

  • WSUS Update Files Store will not change setting

    Hello,
    I have a Server 2008 R2 SP1 machine with the WSUS role on it.  It is going to work in conjunction with our SCCM 2012 SUP to handle Windows Updates.  
    When we go to WSUS Role -> Update Services -> Options -> Update Files and Languages and change the setting from "Store update files locally on this server" to "Do not store update files locally. . ."  the server acts like
    it's going to change the setting.  When we check on it after a few minutes it tells us that the server is changing setting and therefore we can't alter anymore settings.  
    When we come back about an hour later the settings are back to the original settings.  
    We've tried with a Domain Admin account and local admin Account.  
    Any help would be greatly appreciated.
    -Thanks,
    T_Albus

    If the WSUS role hasn't approved any updates then ConfigMgr SUP won't have an accurate database to cross-reference to see if the computer is compliant or not for a particular update, correct?
    That is incorrect. Client update compliance is performed against the entire catalog which the WSUS instance downloads and makes available to the clients and the SUP synchs to ConfigMgr. Clients scan for compliance against *all* updates in the catalog. Approving
    (or declining) updates in WSUS should not be done when WSUS is integrated with ConfigMgr. In fact, as mentioned, no administration of WSUS should ever be done directly in the WSUS console when integrated with ConfigMgr.
    Also, clients do not (by default) report compliance to WSUS when using ConfigMgr -- there is no need to do so as WSUS, as mentioned, simply exists for the download and distribution of the update catalog (and EULAs) and nothing more. All update activity is
    controlled, monitored, and managed directly within ConfigMgr with no involvement from WSUS.
    Jason | http://blog.configmgrftw.com

Maybe you are looking for