Page is not refreshing with the correct data.

Hello experts,
I have an unusual situation and I'm not sure why it is happening. We have 3 instances and the error is occurring in one of them.
So here is the issue:
1) I created a custom extended controller for a customer site form to check the character length of address lines 1 and 2.
2) User creates a new contact under customer site. On the contact creation page, the contact information is entered and click Apply.
After the contact has been created, the application directs you back to the customer site page.
3) On the customer site page, the user clicks Apply again. The custom extended controller runs and then it takes you back to the customer site page.
4) Now the page has some other address that is not in anyway related to the customer.
5) I checked in the back end and the address is associated to hz_parties.party_id = -1.
If I remove the custom controller the page refreshes with the correct address information. What I am baffled is that it is only happening in 1 of the 3 instances (all using Release 12.1.3).
I already asked the dba to bounce middle tier/apache, cleared the cache and it is still having the same issue.
Anyone have any idea why this is happening?

Here's the custom controller code:
package xbol.oracle.apps.ar.cusstd.acctSite.webui;
import java.io.PrintStream;
import oracle.apps.ar.cusstd.acctSite.webui.ArAcctSiteOverviewCO;
import oracle.apps.fnd.framework.*;
import oracle.apps.fnd.framework.webui.OADialogPage;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.jbo.Row;
public class XXF5ArAcctSiteOverviewCO extends ArAcctSiteOverviewCO
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
System.out.println("Running extended controller processRequest......");
super.processRequest(oapagecontext, oawebbean);
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
System.out.println("Running extended controller processFormRequest......");
OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
String s = oapagecontext.getParameter("event");
System.out.println((new StringBuilder()).append("Event: ").append(s).toString());
System.out.println((new StringBuilder()).append("OkButton: ").append(oapagecontext.getParameter("OkButton")).toString());
if(oapagecontext.getParameter("Save") != null || oapagecontext.getParameter("Apply") != null)
System.out.println("Start of validation");
OAApplicationModule AddressAM = (OAApplicationModule)oaapplicationmodule.findApplicationModule("HzPuiAddressAM");
if(AddressAM == null)
throw new OAException("Error: Stale Data - The requested page contains stale data. This error could hav" +
"e been caused through the use of the browser's navigation buttons (the browser B" +
"ack button, for example)."
, (byte)0);
System.out.println((new StringBuilder()).append("HzPuiAddressAM: ").append(AddressAM).toString());
OAViewObject AddressVO = (OAViewObject)AddressAM.findViewObject("HzPuiLocationVO");
System.out.println((new StringBuilder()).append("HzPuiLocationVO: ").append(AddressVO).toString());
if(AddressVO == null)
throw new OAException("Error: Stale Data - The requested page contains stale data. This error could hav" +
"e been caused through the use of the browser's navigation buttons (the browser B" +
"ack button, for example)."
, (byte)0);
Row AddressRow = AddressVO.getCurrentRow();
System.out.println((new StringBuilder()).append("AddressRow1: ").append(AddressRow).toString());
if(AddressRow == null)
AddressRow = AddressVO.last();
System.out.println((new StringBuilder()).append("AddressRow2: ").append(AddressRow).toString());
String Address1 = (String)AddressRow.getAttribute("Address1");
String Address2 = (String)AddressRow.getAttribute("Address2");
System.out.println((new StringBuilder()).append("Address1: ").append(Address1).toString());
System.out.println((new StringBuilder()).append("Address2: ").append(Address2).toString());
int length1 = 0;
if(Address1 != null)
length1 = Address1.length();
int length2 = 0;
if(Address2 != null)
length2 = Address2.length();
System.out.println((new StringBuilder()).append("Address length1: ").append(length1).toString());
System.out.println((new StringBuilder()).append("Address length2: ").append(length2).toString());
if(length1 > 35 || length2 > 35)
OAApplicationModule PurposeAM = (OAApplicationModule)oaapplicationmodule.findApplicationModule("HzPuiAccountSiteAM");
OAViewObject PurposeVO = (OAViewObject)PurposeAM.findViewObject("HzPuiCustSiteUsesVO");
int BPcount = PurposeVO.getRowCount();
System.out.println((new StringBuilder()).append("Business Purpose Row Count: ").append(BPcount).toString());
Row PurposeRow1 = PurposeVO.getFirstFilteredRow("SiteUseCode", "SHIP_TO");
System.out.println((new StringBuilder()).append("Ship_to row: ").append(PurposeRow1).toString());
System.out.println((new StringBuilder()).append("Length1: ").append(length1).append(" Length2: ").append(length2).append(" Ship_to row: ").append(PurposeRow1).toString());
if(PurposeRow1 != null)
System.out.println("Throwing exception.");
System.out.println("Before SuperPFR2");
super.processFormRequest(oapagecontext, oawebbean);
System.out.println("After SuperPFR2");
OAException ErrorMessage = new OAException("WARNING: Ship_To sites address lines 1 and/or 2 have more than 35 characters.", (byte)3);
OADialogPage dialogPage = new OADialogPage((byte)1, ErrorMessage, null, "", null);
dialogPage.setOkButtonItemName("OkButton");
dialogPage.setOkButtonToPost(true);
dialogPage.setPostToCallingPage(true);
dialogPage.setOkButtonLabel("OK");
oapagecontext.redirectToDialogPage(dialogPage);
} else
System.out.println("SuperPFR3");
super.processFormRequest(oapagecontext, oawebbean);
} else
System.out.println("SuperPFR4");
super.processFormRequest(oapagecontext, oawebbean);
System.out.println("End of validation");
} else
System.out.println("SuperPFR5");
super.processFormRequest(oapagecontext, oawebbean);
public XXF5ArAcctSiteOverviewCO()
}

Similar Messages

  • Ensure List/Menu populate my update form with the correct data before update

    Hello,
    Please how do I ensure my update form is populated with the correct data before update?
    On my update page I have text fields and select fields (dynamic list/menu). When I open my profile page to make updates, I see the field well positioned in the text fields but in the select list/menu fields, I see "Select from list" instead of the value that was initiated selected
    Correct Values before update
    Wrong values during update
    As you can see from the images below, when I open the update page, the list automatically populate the select fields with the last values in the list instead of the Initial values that where selected by the user before the update.
    Can anyone please review and let me know where I have gone wrong.
    Thank you
    Mike

    Hello All,
    Once more thank you. I have sorted the issue out.
    I observed that I was selecting the wrong field. I selected the field matching the record set of the select instead of the field matching the record set of the table I am working as seen on the image belew
    I was selecting this - This is the record set of the table that hold values for the city select list
    Instead of this. This is the record set of the table behind the form I am working on
    My issue is now re-solved.
    Mike

  • HT1849 when I download album works from itunes it does not associate with the correct artist

    when I download album works from itunes it does not associate with the correct artist

    Where are you looking to download them from ? You might be able to redownload them via the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage on your Mac's iTunes. If that album shows there but doesn't have the cloud symbol against it for redownloading then that implies that it's still in your iTunes library

  • ALV refresh with the Old Data

    Hi All,
    I have a question with OO ALV. I have an Editable ALV output which contains around 10 fields. In the output the User can Edit/Insert/Delete the Records, and on the application tool bar I have a button (CHANGE)by which the user can swtich between the change and display mode of ALV.
    Once the ALV list is displayed, when the user click on change the output is open for Editing. Lets say the user deletes the record, and again clicks on the change(which should take to display) by giving the message "Changes made will be lost" and the old data should get displayed.
    The logic i followed is,
    1. displayed the ALV.
      CALL METHOD gr_grid->set_table_for_first_display
        EXPORTING
          it_toolbar_excluding = gt_exclude
          is_layout            = gs_layout
        CHANGING
          it_fieldcatalog      = pt_fieldcat
          it_outtab            = pt_outtab[].
    2. when I click on the change button, the ALV is set for Edit using
            CALL METHOD gr_grid->set_ready_for_input
              EXPORTING
                i_ready_for_input = 1.
    lets say, now the record in the output is deleted, and I clicked on Change again, which should take me to display with the old data.
    can you help me in displaying the old data.

    It works good for me.
    I copied the program BCALV_EDIT_01 to Z program and add the required logic. Backup of the table after the ALV display
        gt_backup = gt_outtab.
    Refreshing the ALV table display in the perform SWITCH_EDIT_MODE
    *§3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
      IF g_grid->is_ready_for_input( ) EQ 0.
    *§4.Use SET_READY_FOR_INPUT to switch between the substates.
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 1.
      ELSE.
    *------ ADD Begin
        message I398(00) with 'Data not saved.!'.
        gt_outtab = gt_backup.
        g_grid->refresh_table_display( ).
    *------- ADD end
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 0.
      ENDIF.
    Regards,
    Naimesh Patel

  • Table is not filling with the RFC data

    Hi,
       I am new to WDJ. I have a created a wdj application by importing adaptive RFC model. deployment is sucessful but at runtime the table is not getting filled up with the RFC data. RFC is executing find from the backend. JCO is maintained correctly in the webdynpro, mapping and  binding is done.
    Could someone guide where could be the problem?
    I am giving the code below for doinit and service controller method.
    public void wdDoInit()
        //@@begin wdDoInit()
        //$$begin Service Controller(-222509821)
        wdContext.nodeZsalesheader_Data_Input().bind(new Zsalesheader_Data_Input());
    //     wdComponentAPI.getMessageManager().reportSuccess("Node value " + wdContext.currentContextElement().getAttributeAsText("auart"));
        //$$end
        //@@end
    public void executeZsalesheader_Data_Input( )
        //@@begin executeZsalesheader_Data_Input()
        //$$begin Service Controller(-1232218854)
        IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
         wdContext.nodeOutput().invalidate();
          wdContext.currentZsalesheader_Data_InputElement().modelObject().execute();
        catch(WDDynamicRFCExecuteException e)
          manager.reportException(e.getMessage(), false);
        //$$end
        //@@end
    Can anybody guide if am missing something?
    Regards
    Sireesha.

    Anup and all,
    Can anyone please identify whats the mistake in the below code?
    OnLeadSelect Event
        wdContext.nodeZsalesheader_Data_Input().getElementAt(wdContext.getLeadSelection()).getAttributeValue("Vbeln"));
    I am getting a runtime exception that "unknown attribute Vbeln".
    Here is my Context Node.
    ---Zsalesheader_Data_Input
    Output
    T_Salesheader
    Vbeln
    Auart
    Vbtyp
    Trvog
    As per the above Context structure is my code correct? If not how do i read the value vbeln from the above context?
    Can anyone pls advice?
    Regards
    Sireesha.

  • Pl/sql Procedure is Not Creating With the CLOB data Type

    Hi,
    I am Using Oracle 10g Express Edition Release2.... My Doubt is While creating a table With CLOB Data Type the table is created successfully,but while Creating a Procedure With the CLOB Data type i am getting an Error Message
    2667/5 PL/SQL: Statement ignored
    2667/24 PLS-00382: expression is of wrong type
    then i tried With the Varchar2(30000) the Procedure is Created Successfully note i have not changed any thing in my code except the data type.
    I am Just Confused ......Why the Procedure is not Created with CLOB Data type?
    Please advice ...
    Thank U
    SHAN

    hi,
    Thanks for reply....Another Example
    CREATE TABLE USER_MAS (USER_ID     VARCHAR2 (20 Byte),MAIL_ID     VARCHAR2 (255 Byte));
    set serveroutput on
    declare
    atable varchar2(64) := 'USER_MAS';
    acolumn varchar2(64) := 'MAIL_ID';
    avalue varchar2(64) := 'NEWYORK' ;
    dyn_sql clob;
    begin
    dyn_sql := 'update '||atable||' set '||acolumn||' = '''||avalue|| '''' ;
    dbms_output.put_line(dyn_sql);
    execute immediate dyn_sql;
    end;
    commit ;
    Error at line 2
    ORA-06550: line 9, column 23:
    PLS-00382: expression is of wrong type
    ORA-06550: line 9, column 5:
    PL/SQL: Statement ignored
    When i Changed the Data type to varchar2(64)
    update USER_MAS set MAIL_ID = 'NEWYORK'
    PL/SQL procedure successfully completed.
    Commit complete.
    I like to Know the Reason Why the Procedure is Not Created in Oracle 10g XE DB
    Note :the Same Script i used in 11g DB the Procedure is Created Successfully....
    Why you need use CLOB or VARCHAR2 in your temp_num variable as you sending parameters as number?
    In the Procedure we are create some run time queries while executing the procedure. There are around 10 run time queries created.
    The size of each query is more than 4000 characters . We then add all the queries using union all after each query  to the clob variable as the normal varchar will not support.
    Please Advice
    Thank U
    SHAN

  • Uploading videos to iCloud photo library don't appear with the correct date

    When I upload older photos to iCloud photo library beta they appear in the correct date in my "Moments", but when I upload a video it appears under today's date rather than the date the video was actually shot.. wonder if anyone has encountered the same problem?

    Hey ribonucleoside,
    I understand that you are seeing some issues with the behavior of your iCloud Photo Stream on your iOS device. Here is an article for you that will help you address this issue:
    Get help using My Photo Stream - Apple Support
    https://support.apple.com/en-us/HT203511
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • Why will my web form submit but my fillable form not submit with the same data in both?

    i have developed a form in formscentral. When I trest it as a web form, it submits all the data to my attached fromscentral response form. I copy and paste the same data into tjhe fillable pdf form I generate from the distribute forms option with a submit buttion, and the form will not submit. It gives an "unable to connect to server" error.
    When I try an empty form. it will submit. When I delete data from text fields. I will eventually reach a pint where the form will submit.
    Is there a file size limit on the fillable pdf for submission to the formscentral response form?

    Hi Mark,
    Sorry for not being clear.
    There is a system limit of 10000 characters in a multiline text field. Say you designed a form where a multiline text field has a limit of 20 characters. The following text will submit without error in the HTML form but will fail in the PDF form:
    1234567890
    123456789
    In the HTML form there is a total of 20 characters in the field value, 19 digits and a linefeed character representing the newline. In the PDF form there is a total of 21 characters in the field value, 19 digits, a carriage return, and a linefeed.
    Regards,
    Brian

  • Renaming files in LR5 with the correct date

    I am getting the wrong date when I rename files in LR5. How do I fix it? I hae always used a custom preset
    date (YYYYMMDD)_Custom Text_Sequence #(0001)
    Everything works except the date. What I get is 20130128
    I am using a Nikon Df . I checked the date and time and it is set correctly.
    What should I do?

    If you select one of these "wrongly-dated" photos and look in the Metadata panel (set to display EXIF), what dates do you see listed for Date Time Original, Date Time Digitized and Date Time?

  • ITunes says my iphone is not synced with the correct account, but the account has never changed

    I recently got my computer reset due to start up issues, which means everything off my computer was wiped. Now im trying to add music to my iphone but it says that its not connected to the synced itunes account, and prompts me to sync and erase my phone so i can add the new music to my phone. im using the same computer, what can i do?

    I recently got my computer reset due to start up issues, which means everything off my computer was wiped.
    What exactly was done? Was also hardware replaced, so that the serial number of your mac changed? Or did you not restore the computer from a Time Machine backup using Setup Assistant? Then your account or computer will be a different account.
    and prompts me to sync and erase my phone so i can add the new music to my phone. im using the same computer, what can i do?
    In that case you need to let iTunes wipe the phone and replace it with the current content of your computer.

  • Album Art Not Displayed with the Correct Songs.

    I seam to be having trouble with The Album Art On my I Pod.
    When I view the Songs on I Tunes from the I Pod, Every thing Looks fine, But when I Eject the I Pod and Play my Songs, The Songs show the Album Art for another Artist. Excetra. For Example: I play A song from 3 Doors Down and the
    Album art is showing The Album Art for A deferent Album-Artist. This is happing to The Album Art That I have done for my music 100 DPI scanned CD Covers (JPG’s) as well as I Tunes downloaded Art.
    Has any body Got this problem and know A solution?
    Thanks
    Gustav

    I have had the same issues. It all started with iTunes 7.0. I have lost all track numbers as well, so now all my songs are in ABC order. It really *****!!
    The only way I have been able to fix the artwork issue is to cut the artwork off of the file the re-paste it back on. (I have over 3,000 tracks, very time consuming) This has worked for most of the files but I am still coming across a few tracks that have the incorrect artwork on them.
    Dell Dimension 8400   Windows XP   5G 60G iPOD
    Dell Dimension 8400   Windows XP   5G 60G iPOD

  • Solved af:table is not refreshed with updated MBean data from list even

    Hi,
    I have a af:table which gets its data from a Managed Bean List type varaiable.
    My table hav one lov as a row item.
    When i change the lov in each row... a new row should get added to the table.
    So in the value change listener of the selectOneChoice i added one element to the list.
    Enabled PPR on table.
    But table is not getting refreshed until i click on some button or link.
    Thanks
    Murali
    Message was edited by:
    Murali Chepuri

    Solved after adding partialtarget in ValueChangeListener.
    Thanks
    Murali

  • Repeated events not showing on the correct dates.

    Hi,
    In 2009 I set a number of events to reoccur yearly. This year I have found that every event is a day out. This means I have to manually go through each one and correct it. Why is iCal doing this. Surely it should match the date for the following year/s.
    Is this a bug or something i'm doing correctly?
    Thanks
    Michael

    Michael,
    1. Quit iCal, and open System Preferences...>Language & Text>Formats>Region> and select/reselect your appropriate region. You can also try setting/resetting the various options available in the "Dates" section of that panel.
    2. If you updated to Mac OS X 10.6.2 with Software Update, try using the Mac OS X v10.6.2 Update (Combo).
    Are you using any sync software?

  • BAdI /SAPAPO/DM_PO_MNTN - CT_ORDKEY is not populated with the order data for PO Memo

    Dear All,
    I have done enhancement in the ERP system by adding the customer specific field ZZ_RESWK in structure CIFPUORCUS. This field is filled in the ERP user exit EXIT_SAPLMEAP_001, for the Purchase order (category BF & BG) and PO Memo (Category AH).
    Now, in APO I have implemented the BAdI /sapapo/dm_po_mntn, and in the method "Change" I am passing the field zz_reswk to ct_ordkey table field reswk, so to write the field in livecache.
    This set up is working for order category BF and BG. However, when I am transferring the PO memo (Category AH) from ERP to APO, the the BAdI internal table ct_ordkey is having no records. Hence I am not able to write field reswk for the PO memo in the live cache.
    Any one have any idea, why there is not data in ct_ordkey for PO memo ?
    Note: The data transfer from ERP to APO is using IDOC.
    Please Help.
    Regards,
    SC

    Hi,
    If you don't do what I told you, I can not do anything more....
    Your code should look like this:
    loop at it_item into ls_item.
    ls_cust-refobject = 'POITEM'.
    ls_cust-fieldname = 'CATALOGID'.
    ls_cust-REFFIELD1 = 'PO_ITEM'. <b>and not 'POITEM'</b>
    ls_cust-REFVAL1 = ls_item-number_int. <b>and not a fixed value</b>
    ls_cust-container = ls_item-catalogid.
    append ls_cust to ct_bapi_customer_fields.
    endloop.
    For R/3 mapping table BBP_CUFMAP:
    DOC_TYPE = PO
    KEY_TYPE = Z
    CUF_FIELD = CATALOGID
    R3_FIELD = ZSRMCATALOGID
    Rgds
    Christophe

  • Nokia 6124 classic wont work with the USB Data Cab...

    Hi all,
    I'm trying to connett Nokia 6124 classic but its not working with the USB Data Cable. Is there a way to fixing it yourself?
    Thanks
    Jonathan 'Jonnie'

    You should install the drivers first before connecting your phone. Drivers are bundled in with pcsuite/ovi suite which can be downloaded from here.

Maybe you are looking for

  • FCP DV Output to External Monitor Quality Problem

    Hi there, I'm using Final Cut Pro HD from Final Cut Studio 2, and I'm having a problem with the quality of the image on my external monitor. I have checked all the settings etc... for external video and they all seem right, but when I play the video

  • Photos are split in 2 files when sent by Apple Mai, why?

    Anybody encountered the same problem? if sending a photo by mail, my web.de account would show the recieved email with 2 files instead of one!! Also if I send photos to my msn.com account, there appears the same phenomenon. I can't open these 2 files

  • Approval process should proceed if deadlins is missed

    Hi all, In the workflow WS10400002 (One-step approval) in SRM, when the deadline had exceeded the approval should happen automatically. While checking in the latest end tab, an alert mail can be triggered. but how do we make sure that the approval pr

  • Vendor return excise register update

    Hi , this scenario is for India. 1. We have received 100 excisable materials. 2. captured and posted the excise invoice 3. returned 10 material now with ref to th eoriginal material document. 4. Creating an excise invoice with ref to this material do

  • Aperture library lost after deleting preferences/repair?

    Hi: I tried opening Aperture this morning and got an error message saying: "There was an error opening the database for  the library <library_name>." I found this article from Apple support (http://support.apple.com/kb/HT3805) on the problem.  I wasn