The form claims to update the record, but isn't.

Maybe I just need a sanity check, but this has been driving me bonkers.
This is in a "when-button-pressed" trigger. Everything seems to be fine in the properties of the form fields, and I even get a "FRM-40400" message saying that two records have been updated in the database (since there are two tables attached to this form), but when I go back to the database table, the records have not been populated. There's actually more to this trigger, but since the records aren't being updated, the rest of the trigger can't do its job.
I'm posting the beginning of the trigger just so someone can sanity check me. The fact that I'm even getting the FRM-400 message that says it's updated is confusing me. Everything looks fine from the debugger standpoint. Is there something in here that looks like it would prevent me from being able to update the database? I've left in everything, not just what I deem to be the "relevant" portions, just because I'm not sure what might throw it off.
(anything saying 'soft_messages' can be ignored, it is our own internal way of recording alerts and what kind).
---------begin code snippet------------------------------
DECLARE
     subj VARCHAR2(500);
     v_body VARCHAR2(5000);
     Reqtype varchar2(25) := :INVENTORY.Request_type;
     uft UTL_FILE.FILE_TYPE;
     fpath VARCHAR2(100);
     fname VARCHAR2(100);
     i NUMBER;
     ret NUMBER;
     v_db_name varchar2(50);
     v_support_officer varchar2(35);
     v_owner varchar2(35);
     v_wastemp      NUMBER;
     cust_name VARCHAR2(50);
     cust_phone VARCHAR2(50);
     cust_email VARCHAR2(50);
     cust_test VARCHAR2(50);
     al_button Number;
     msg_txt VARCHAR2(1500);
     V_SMTP_Mailer Boolean default False;
     to_whom VARCHAR2(1000);
     Missing_info exception;
     Proc_failed exception;
     v_node number;
     v_id number;
BEGIN
     -- Changes the email address so that in production, it goes to the contact, in test it doesn't.
     If v_db_name ='PRODUCTION' then     
          if     :INVENTORY.contact_email is not null then
               to_Whom := to_Whom||';'||:INVENTORY.contact_email||';';
          else
               to_Whom:= to_Whom||';';
          end if;
     END IF;
     Message('Working........Please wait');
     SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
     select op_sys.current_db_name into v_db_name from dual;
     --Check request type before completing the process
     IF :INVENTORY.VENDOR_NO = 632 THEN
          If :INVENTORY.Request_type ='DISCONNECT' then
               If :INVENTORY.bill_hierarchy is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
               Elsif
               :INVENTORY.auth_code is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Authorization/Host Code before completing the process');
               End if;
          ELSIF
          :INVENTORY.Request_type ='START' THEN
               If :INVENTORY.bill_hierarchy is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
               Elsif
               :CARD.node is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Node/Card Number before completing the process');
               Elsif
               :INVENTORY.auth_code is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Authorization/Host Code before completing the process');
               End if;     
          End if;
     ELSIF
     :INVENTORY.VENDOR_NO = 1268 THEN
          If :INVENTORY.Request_type ='DISCONNECT' then
If :INVENTORY.bill_hierarchy is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
               Elsif
               :CARD.node is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Card No before completing the process');
               Elsif
               :INVENTORY.auth_code is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Authorization Code before completing the process');
               End if;     
          ELSIF
          :INVENTORY.Request_type ='START' THEN
               If :INVENTORY.bill_hierarchy is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Billing Hierarchy before completing the process');
          Elsif
               :CARD.node is null THEN
               SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                         soft_messages('E',true,'Please enter card number before completing the process');
               elsif
               :CARD.folder_id is null AND :inventory.vendor_no = 1268 THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter folder ID before completing the process');
               elsif
               :INVENTORY.PAC is null AND :inventory.vendor_no = 1268 THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter participant access code before completing the process');
               Elsif
               :INVENTORY.auth_code is null THEN
                    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
                    soft_messages('E',true,'Please enter Authorization Code before completing the process');
               End if;     
          End if;
     END IF;
     If :INVENTORY.tsr_no is null THEN
          soft_messages('E',true,'Please enter the TSR number.');
     elsif
     :INVENTORY.csa is null then
          soft_messages('E',true,'Please enter the CSA number.');
     elsif
     :INVENTORY.tsr_no is null and :INVENTORY.csa is null then
          soft_messages('E',true,'Please enter the TSR number and CSA number.');
     end if;
     if :inventory.vendor_no = 632 then
          v_node := :card.cnt_card;
          v_id := :card.cnt_id;          
          if v_node > 1 then
               soft_messages('E',true, 'Only one node/account # is required for request, Please correct to continue');
          end if;
     end if;
     if :inventory.vendor_no = 1268 then
          if :card.folder_id is not null and :card.node is null then
               soft_messages('E',true,'Please enter card number to continue');
          elsif
               :card.node is not null and :card.folder_id is null then
               soft_messages('E',true,'Please enter folder ID to continue');
          end if;
     end if;
     if :inventory.vendor_no = 1268 then
     v_node := :card.cnt_card;
     v_id := :card.cnt_id;     
     if v_node <> :inventory.num_requested and v_id <> :inventory.num_requested then
          soft_messages('E',true, 'The node and folder ID entered must equal the number requested , Please correct to continue');
          end if;
     end if;
     If (:inventory.tsr_no is not null AND :inventory.csa is not null
     AND :inventory.bill_hierarchy is not null AND :card.node is not null
     AND :inventory.auth_code is not null) then
          msg_txt := 'Are you sure you want to complete this request: '||:inventory.REQUEST_NO||' ?' ;          
          al_button :=     DISPLAY_ALERT('CG$ASK_COMMIT',msg_txt);
          --If status change is requested          
          If al_button = 88 then     
               SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');     
               If Reqtype = 'START' and :INVENTORY.status = 'PENDING START' then
                    :INVENTORY.status :='ACTIVE';     
                    :INVENTORY.COMPL_DATE := SYSDATE;
               :INVENTORY.COMPLETED_BY := USER;          
               Elsif Reqtype = 'START' and :INVENTORY.status = 'ACTIVE' then
                    :INVENTORY.status :='ACTIVE';
                    :INVENTORY.CREATE_DATE := SYSDATE;
                    :INVENTORY.CREATE_USER := USER;
                    :INVENTORY.COMPL_DATE := SYSDATE;
                    :INVENTORY.COMPLETED_BY := USER;          
               Elsif Reqtype = 'DISCONNECT' and :inventory.status = 'PENDING DISCONNECT' then
                    :INVENTORY.status :='DISCONNECTED';
     :INVENTORY.COMPL_DATE := SYSDATE;
     :INVENTORY.COMPLETED_BY := USER;
               End if;     
          end if;     
/* something is not letting the commit for the card block happen*/
          :SYSTEM.MESSAGE_LEVEL := 5;
          COMMIT_FORM;
          :SYSTEM.MESSAGE_LEVEL := 0;
          SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');     
          if al_button = 88 then
               soft_messages('I',false,'Request has been successfully processed.');
     else
               soft_messages('I',false,'This Request has not been saved.');
          end if;
------------end code snippet-----------------
Everything after this point hinges on the data having been committed.
This is unfortunately code I've inherited, so I'm not sure why the former owner decided that just because you pressed "yes" the request should be declared successfully processed. I've cleaned up what's listed above, but for debugging purposes I've planted little messages throughout this code to let me know what the state of some of the variables are, and everything looks to be correct.
Why would I get a FRM-40400 if it's not actually successfully updating the database?
Cyd

"The fact that it's doing a commit no matter what..."
It won't do a commit if the form_status is QUERY. Did you check the form_status before coming to the actual commit statement? If it's QUERY, it won't commit. You need to do check this!
If the form_status is not QUERY, then it will do a commit unless the form is doing something in a pre-commit trigger, or deleting the records in a post commit trigger. The fact you were getting a "are no changes to be saved" message, leads me to believe you may have something going on in a trigger that fires when it encounters your commit statement. You may have to use the debugger to execute your code one line at a time to find out what's going one here. Have you tried doing that?
Other possibilities are:
a. The database or schema you are looking at is not the database or schema Forms is using to save the records.
b. The records being commited are not the records you were expecting.
"FRM-40400 blinking up on the screen"
not sure why it would be blinking... maybe due to the version of Forms Builder you are using.

Similar Messages

  • I started to update my ipad but I have an old MacBook and it's really old and I don't have the correct software to update anything. But my ipad is stuck on the connect to itunes screen and wont budge. What do I do?!

    I started to update my ipad but I have an old MacBook and it's really old and I don't have the correct software to update anything. But my ipad is stuck on the connect to itunes screen and wont budge. What do I do?!

    Your options depend on which MacBook you have and the version of OS X installed.
    To find out:  > About This Mac

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  t worked, but only for those with PC.  I could not get it to work with Apple Yosemite even with reader installed .  is there a way i can make it work for apple /

    Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. It worked, but only for those with PC. However,  I could not get it to work with Apple loaded with Yosemite even with reader installed .  Is there a way i can make it work for apple / Mac? It worked fine on a mac using Mountain Lion and reader
    Thanks

    LiveCycle = XFA forms.
    afaik - These cannot be used in Apple OSs.
    Be well...

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go.  it worked, but only for thos

    Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go.  it worked, but only for those with adobe pro.  i could not get it to work with reader.  is there a way i can make it work for reader?

    Noted.
    The LiveCycle user to user forum is across town at:
    Adobe LiveCycle 
    Be well...

  • Just got a Nikon D610 and CS5 for Mac can't open the images -- message says installed version of camera raw doesn't support the camera.  Downloaded the Raw 6.2 update for Mac, but installation failed. Now what?

    just got a Nikon D610 and CS5 for Mac can't open the images -- message says installed version of camera raw doesn't support the camera.  Downloaded the Raw 6.2 update for Mac, but installation failed. Now what?

    The D610 didn't get out-of-the-box RAW support until Photoshop CC.
    You can either upgrade to CC or use the DNG Converter to convert and open your DNGs in CS5.

  • I just bought a macbook pro and the mountain lion free update applied correctly but the internet went down and now the download won't appear/ continue, and when i open the app store it requests me to pay for the update? what can i do?

    i just bought a macbook pro and the mountain lion free update applied correctly but the internet went down and now the download won't appear/ continue, and when i open the app store it requests me to pay for the update? what can i do?

    Welcome to Apple Communities
    http://www.apple.com/support/mac/app-store/contact

  • I have just overwritten important data, i.e. the names of those who completed the forms.  I need to restore but wasn't able to 'undo'. Please help

    I have just overwritten important data, i.e. the names of those who completed the forms.  I need to restore but wasn't able to 'undo'. Please help

    Hi,
    Unfortunately, it is not possible to retrieve the deleted data. If you have made the changes to the response and closed the response window; new data must have been saved automatically. In future, if you accidentally overwrite any data; please press ctrl+z to undo the change.
    Regards,
    Nakul

  • I m having issues with the phone which i made a recording but the customer care support in our place donot seem to be of much help. i have told them nuumerous times that for better understanding i have made a video of it but no response.. really disspoint

    i m having issues with the phone which i made a recording but the customer care support in our place donot seem to be of much help.
    i have told them nuumerous times that for better understanding i have made a video of it but no response..
    really disspointed with your customer support.
    i have uploaded them in google docs..links below.. t
    he first one happened on 30th of april 2014   https://docs.google.com/file/d/0B6z0lUXVGPGrc0tXNnZFaDQ3WDg/edit
    the second happened today. i called customer care but no satisfactory respose either.  https://docs.google.com/file/d/0B6z0lUXVGPGrSldEeWQ3aGFhaDA/edit
    who is going to help me out and atleast pay attention to what my problem is. apple seems to ignore my attempts to show them what is the problem... the dont even want to see the videos.. !! disgusting.
    its still under warrenty. please help.

    Take your iPhone to an Apple Store or authorized service center in the country where you purchased the iPhone and they will look at it and replace it under warranty if applicable.
    If you cannot take it person contact them to determine how to send them your phone.
    You can't expect them to replace your iPhone without first examining it.

  • Ajax is caching the output and not updating the page.If you force a second postback after you should have seen a popup (but didn'), you then see popup displayed

    Ajax is caching the output and not updating the page.If you force a second postback after you should have seen a popup (but didn'), you then see popup displayed

    Hey, thanks for replying. It is the user who needs to manually submit the page.
    Basically our page has a hidden div with various text fields and combo boxes. When the user click on specific links on the page, this div is populated and made visible to the user in server side code.
    What happens for all other browsers other than firefox 23 onwards (worked fine in 22) is that after the user clicks on the link, our server side code is executed via a HTTP post. The server then renders the hidden div and sends the additional HTML down to the browser via ASP.NET AJAX.
    With Firefox 23, the additional HTML is not rendered on the first postback. Subsequent clicks of the same link execute the same server side code but the additional HTML is rendered on the browser without issue.
    We've done a lot of debugging now and the issue is localised to a specific third party supplier's (Infragistics) control. I think Firefox 23 must have changed the way that the viewport or screen bounds are calculated or reflected back to this control as the issue seems to stop when we remove the control's MaintainPositionOnScroll attribute. It might be that the Firefox 23 DOM is not able to provide the screen dimensions accurately when the page is first rendered. I say this as the second postback renders the additional HTML fine.
    The control in question is quite an old version so I don't think it's your issue to be honest.
    Just so that this might be helpful to other developers using the Infragistics Window Dialog Control, setting MaintainPositionOnScroll to false solved this issue for us.

  • I have tryed to connect an AirPort Express to my wireless network. But I alwais get the errocode -4. Can anybody help. I have reset the AirPort Express and updated the software.

    I have tryed to connect an AirPort Express to my wireless network. But I alwais get the errocode -4. Can anybody help. I have reset the AirPort Express and updated the software.

    The ZyXEL P-2601HN-F1, as you know, is a combination DSL modem & 802.11n wireless router (or gateway device).
    For your goal you will want to take a look at this Apple Support article for details on how to configure an AX for iTunes.
    If you are still having difficulties with the AX joining the ZyXEL's wireless network, you can try the following:
    Temporarily disable wireless encryption.
    If you are hidding the SSID, disable that feature.
    Change the Mode Select setting to: 802.11g Only
    Change the Channel Selection from "Auto" to a set channel, like 1, 6, or 11

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Hi can anyone tell me how to make the forms url short to the end user

    Hi,
    Im using oracle forms 11gR2 and everything is working fine, but my question in how to make the forms url short to the end user.
    For example my forms url is  " http://localhost:9001/forms/frmservlet "  now i want to modify this url as   "myweb.gov.ae"
    can anybody suggest me the possibilities to change to default forms url to our own url as mentioned in the above example.
    Thanks & Regards,
    Hari

    You would have to either -
    * edit the code pointed to by the new action attribute to
    include the form
    processing and email generation, or
    * edit the form processing script to also include the insert
    record and
    check user name scripting
    The former is probably the better procedure, since I suppose
    you'd want to
    do the check user name before sending the email.
    Unfortunately, this means
    you will have to get your hands into the code, or hire
    someone to do it for
    you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ducati1" <[email protected]> wrote in
    message
    news:gkriis$et6$[email protected]..
    > Hi guys.
    > I have a page with a form on it here.
    >
    http://www.thechallenge.net.au/superredemption.php
    > I want the data placed in the textfields within the form
    to come to me in
    > an
    > email upon submission.
    > Now normally I would action the form to use this page
    here
    >
    http://www.thechallenge.net.au/Redemptionform.txt
    > But because the action of the form is now <?php echo
    $editFormAction; ?>
    > due
    > to an insert record and check user name server behavior
    I cannot use my
    > normal
    > method.
    > Can anyone tell me how I can get around this problem?
    >

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • I have an iPad 1.  I filled out a PDF questionaire in adobe reader. When I send it to Dropbox, iBooks,mercury browser the form shows up without the answers .  My objective is to email the completed form. Please advise as to how to do thisThanks. Big Jake

    I have an iPad 1.  I filled out a PDF questionaire in adobe reader. When I send it to Dropbox, iBooks,mercury browser the form shows up without the answers .  My objective is to email the completed form. Please advise as to how to do thisThanks.
    Big Jake

    If the PDF is a form fillable PDF, which I assume that it is, email it to yourself or send it to DropBox and open it on your computer. You should see the fields filled in there. It works for me if I do it that way.
    Adobe Reader supports it, but the other apps don't. I assume that if you email the PDF to a computer user it would be readable in Adode Reader.

  • How to make the document dirty after updating the links?

    Hi,
    I am using the below code to update the link resources by providing new URI. The link resources are getting updated, but the document is not becoming dirty.
                    InterfacePtr<ICommand> updateCmd(CmdUtils::CreateCommand(kLinkResourceStateUpdateCmdBoss));
                    InterfacePtr<ILinkResourceStateUpdateCmdData> updateCmdData(updateCmd, UseDefaultIID());
                    updateCmdData->SetResource(ref.GetUID());
                    updateCmdData->SetDatabase(ref.GetDataBase());
                    updateCmdData->SetNotify(true);
                    updateCmdData->SetUpdateAction(ILinkResourceStateUpdateCmdData::kUpdateURI);
                    updateCmdData->SetURI(newURI);
                    updateCmd->SetUndoability(ICommand::kRegularUndo);
                    CmdUtils::ProcessCommand(updateCmd);
    How do I make the document dirty after updating the resources?
    Thanks,

    Thanks. It is working fine.
    I called PreDirty(docPtr), before updating the links.

Maybe you are looking for

  • Cant see my user account

    Guest is always showing on my log in page and im looking for the solution to remove this, then when im looking a way to remove the guest id turn off my user account cause i thought it will automatically directed to my account if i will turn on my ima

  • Can't delete photos from Lightroom 2

    Hi all, My first post here. I am having trouble deleting photos from my hard drive through Lightroom 2. It will remove the "Rejected" photos from the catalogue, but will only sporadically delete them from my hard drive. I've tried a number of solutio

  • I keep getting Err = -3259

    I have spent 2 days on the phone with Apple Support, although they are nice and located in the US they cannot solve my problem. I have been trying to update my Verizon iPhone 4 for over a week and each time I do I get Err = -3259 (timed out). I have

  • Ios simulator for director ios apps

    did someone have success with the xcode ios simulator running a director published .ipa? ive tried so far in xcode 5: uncompressed the .ipa file which gives me a folder called Payload with the .app inside. i copied the app into /Applications/Xcode.ap

  • Every time I click on something, an ad pops up in a tab

    Every time I click on something, an ad pops up in a different tab. Things like MacKeeper and tons of unauthorized websites that interrupt my casual internet experience. PLEASE HELP!!!