Messages in on-error coming more than once.

Hi
Iam working in Forms 10g.
Iam over-riding on-error and on-message triggers in my form.
Assume below as my on-error code:
message(error_type || '-' || to_char(error_code));
I have a date item with below code in its key-next-item trigger.
if :blk.item1 > sysdate then
Message('greater than sydate);
end if;
if :blk.item1 < sysdate then
Message('less than sydate);
end if;
Here is my issue:
I run the form and give a negative test case for the date field, ie. enter value 'asdf' for the date field.
Now iam getting on-error fired twice and getting the error message twice. ie. am getting on-error fired as many times i refer the date item in the key-next-item trigger.
But i need to get the error only once and not twice or thrice.
Please suggest me how to solve this.
Thanks
Sriram

Thanks
I tried both raise form_trigger_failure as well as return but still am getting on-error firing as many times the field reference in the trigger. We are doing maintenance of client's application and i cannot remove the existing key-next-item functionality.
The client application has lot of validations in key-next-item and post-change. Whenever we face date validations in these triggers, we are getting on-error fired as many times the number of date field reference in the trigger.
Iam trying to fix the issue in on-error itself but i couldn't. As of now i found a work-around which is given below.
In on-error i have below code:
show_alert(error_message);
if error_code in (50025,50026) then
raise form_trigger_failure;
end if;
So when ever i get "Invalid date" error, iam making the form status failure.
In my key-next-item
if :blk.item1 > sysdate then
Message('greater than sydate);
end if;
IF NOT FORM_SUCCESS THEN
RAISE FORM_TRIGGER_FAILURE;
END IF;
if :blk.item1 < sysdate then
Message('less than sydate);
end if;
(Note: The code in upper case is the one that i added newly.
So if i give an invalid date for :blk.item1 iam getting on-error fired, then iam making form status failure, then in key-next-item iam checking if form status is failure then raise. )
This is just an work around but practically it is not possible for me to give this work around in so many triggers, it will be great if i can able to raise the error only 1 time in on-error.
I think i have stated the issue clearly. Please help me to give a fix in on-error itself.
Thanks
Sriram

Similar Messages

  • Displaying the records records which are coming more than once

    hi
    create table temp(comp_id int,branch_id int);
    comp_id | branch_id
    ---------+-----------
    1000 | 1
    1000 | 1
    1000 | 2
    1000 | 2
    1000 | 3
    2000 | 1
    2000 | 1
    2000 | 2
    2000 | 3
    how can i write a query which displays the records records which are coming more than once on the basis of fields comp_id and branch_id. e.g. 1000 | 1 should be displayed because it is coming more than once. 1000 | 3 should not be, because it has a single entry.

    select comp_id, branch_id, count(*)
    from temp
    group by comp_id, branch_id
    having count(*)>1
    Please note this forum is not a SQL class and it is not the place to have your homework done.
    Sybrand Bakker
    Senior Oracle DBA

  • Updating cs6  error   happens more than once

    trying to update cs 6
    this error code appears
    Extension Manager 6.0.4 Update
    Installation failed. Error Code: U44M1P7
    happens more than once

    Please see http://forums.adobe.com/thread/1096705 where I just discussed this with another user.

  • Why does the message alert tone repeats itself more than once?

    every once in a while my message alert tone repeats itself while a message is delivered. if i switch off and switch on the problem gets resolved only for a while.

    Check your Settings > Notifications > Messages > Repeat Alert ?

  • The same SMS messages are showing more than once

    Hi,
    On my SMS page, my message threads are showing up more than once ,
    How would I go about fixing this?

    Hello,
    Maybe helps you:
    *[http://kb.mozillazine.org/Repeatably_downloading_the_same_messages]

  • Messages receive appear more than once in my mailbox

    The problem is the messages that i receive appear more than once and it keep doing this.
    Its like they were cloning or multiplicand, I have until 8 messages of the same thing and this thing continuous happening.
    What can I do?, i all ready try the suggestions in the support area in apple, but this does not works with my problem.
    I even think that cold be a virus.
    Any suggestions will be very appreciate.
    Thnaks

    Please, try to provide as much information as possible, instead of as little as possible. What’s the time interval chosen in the Remove copy from server popup menu?
    It looks like Mail has lost track of which messages have already been downloaded and is downloading them again, or maybe it’s failing to remove them from the server according to your settings.
    Try to remove from the server all the messages that have already been downloaded by clicking the Remove now button -- check for new mail first, just in case there is something amiss and that function doesn’t work as expected.
    If Preferences > Accounts > Advanced > Remove now fails to remove the messages from the server, you can try to do so manually using the Account Info window. In order to use that feature, choose Get Info (⌘I) from the Action menu (gear icon) located below the mailboxes list in the main Mail window.

  • Error : Document contains same order item more than once in IDOC

    We have Intercompany IDOCs getting created in our system. The
    trigger for this is the Billing Document in the same system in
    differenct company code. The MEssage type being used is INVOIC and the
    basic type is INVOIC01.
    The IDOC is in the status of 51 with the error message
    Document contains same order item more than once
    Message No : M8 321.
    Can anyone tell me why raise this error and how to resolve it?
    Thanks.

    What I have recently learned is that in 6.0 SAP allows the same line item to be on an idoc multiple times.  However, the item has to be GR-based-IV and there has to be a unique entry in the delivery note of the GR.   I have successfully tested this in my development system.  
    What I can't get to work is if the GRs have the same delivery note value.   What I think is happening is these GRs are not unique so SAP cannot match a GR with an IR so it fails with this error. 
    Here are the examples:
    Works 
    GR# A           deliverynote/BOL    "abcd"
    GR# B           deliverynote/BOL     "efgh"
    Invoice idoc
    e1edp02    qualifier 016          abcd
    e1edp02    qualifier 016          efgh
    Doesn't work:
    GR# A           deliverynote/BOL    "abcd"
    GR# B           deliverynote/BOL     "abcd"
    Invoice idoc
    e1edp02    qualifier 016          abcd
    e1edp02    qualifier 016          abcd
    If anyone knows of a way to make the second scenario work, I'd like to hear your solution.
    Thanks
    Sandra

  • Message may be sent more than once

    Hi,
    When I use mailq, I can read the following error in many emails:
    008B354E529F 7265 Tue Jun 30 10:08:19 [email protected]
    (delivery temporarily suspended: conversation with server.domain[/var/imap/socket/lmtp] timed out while sending end of data -- message may be sent more than once)
    [email protected]
    What is happen?
    Thanks for all.
    Message was edited by: jonflas

    It means that Cyrus IMAP is not responding or ready to deliver mail (at least temporarily). Most likely reason is that there are too many connections/users.

  • Permissions Error if Script is run more than once with out closing Diadem

    I am in a REAL pickle here and need some HELP......
    I get a permissions error message when I try and run my scripts more than once with out closing Diadem 2011.
    Call scriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Importing Multiple Data Logs_CaltermIII_Local.VBS")
    Error is around this portion of script:
    '******* GetFilePaths() *** *** NEW Function ***
    Function GetFilePaths(DefaultDir, ExtFilter, MultipleDir, Msg)
    Dim i, k, f, fso, iMax, FileListPath, StartIdx, CurrFiles, FileList
    ' Promt the User to select the ASCII files to load with a File Dialog
    FileListPath = AutoActPath & "FileDlgList.asc"
    Set fso = CreateObject("Scripting.FileSystemObject")
    StartIdx = 0
    ReDim FileList(0)
    Do ' Until (DlgState = "IDCancel")
    Call FileNameGet("ANY", "FileRead", DefaultDir, ExtFilter, FileListPath, 1, Msg)
    IF (DlgState = "IDCancel") THEN Exit Do
    ' Read in the saved list of file(s) selected in the File Dialog into FileList()
    **** This next line is where the ERROR happens *******
    Set f = fso.OpenTextFile(FileListPath, 1, True) ' f.ReadAll returns file contents
    CurrFiles = Split(vbCRLF & f.ReadAll, vbCRLF) ' turn file lines into an array
    f.Close ' close the file
    iMax = UBound(CurrFiles)
    IF iMax > 0 AND Trim(CurrFiles(iMax)) = "" THEN
    iMax = iMax - 1
    ReDim Preserve CurrFiles(iMax)
    END IF
    Call BubbleSort(CurrFiles) ' sort the array of file names alphabetically
    ' Append current file dialog selection(s) to any previous file dialog selection(s)
    IF iMax < 1 THEN iMax = 0
    ReDim Preserve FileList(k + iMax)
    FOR i = 1 TO iMax
    k = k + 1
    FileList(k) = CurrFiles(i)
    NEXT ' i
    IF MultipleDir <> TRUE THEN Exit Do ' forces only 1 dialog, good if all desired files are in the same folder
    Loop ' Until (DlgState = "IDCancel")
    GetFilePaths = FileList
    End Function ' GetFilePaths()
    266 6:18:34 PM Error:
    Error in <NoName(1).VBS> (Line: 8, Column: 1):
    Error in <Importing Multiple Data Logs_CaltermIII_Local.VBS> (Line: 140, Column: 5):
    Permission denied
    I can send the script and file I am loading if that would help.
    Solved!
    Go to Solution.

    Jcheese,
    I understood that if you call this script within DIAdem you don't get any error, however, when you run that script from another source (with DIAdem opened) for the second time you get the error, right? 
    If this is the case, I think it might be that the file haven't close correctly in the script. Could you upload the script file?
    Carmen C.

  • Elements 11:  After selection tool defines move area, error message reads "No pixels are more than 50% selected".  How to remedy?

    Elements 11:  After selection tool defines move area, error message reads "No pixels are more than 50% selected".  How to remedy?

    Are you certain that you are on the correct layer?
    As a test, try this:
    Select the object with one of the selection tools, e.g. lasso, selection brush.tool. You should see "marching ants" once the selection is complete
    Place the selection on its own layer (Layer>new>layer via copy or CTRL+J). This will place the object on a separate layer.
    With this layer active, use the move tool to move/position it
    Does that work?

  • Custom Administrative Template Error 53 Key name specified more than once

    Hi All,
    Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
    settings. I am trying to set this up so that it is controlled via GPO.
    My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software. 
    The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
    Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
    The adm file I have so far is below
    TIA
    Jason
    ---------------------------------------------CUT---------------------------------------------
    CLASS User
    CATEGORY "App Site Settings"
    POLICY !!Site1Policy
    EXPLAIN !!Site1Explain
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME "SystemDatabase"
    VALUEON "D:\\App\\Data\\App.mdw"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME "ConfigPath"
    VALUEON "D:\\Site1\\Data"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME "ConfigFile"
    VALUEON "D:\\App\\Data\\App_Comms.mdb"
    VALUEOFF DELETE
    VALUENAME "SysConfig"
    VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
    VALUEOFF DELETE
    END POLICY
    POLICY !!Site2Policy
    EXPLAIN !!Site2Explain
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME "SystemDatabase"
    VALUE "D:\\App\\Data\\App.mdw"
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME "ConfigPath"
    VALUE "D:\\Site2\\Data"
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME "ConfigFile"
    VALUE "D:\\App\\Data\\App_Comms.mdb"
    VALUENAME "SysConfig"
    VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
    END POLICY
    END CATEGORY
    [strings]
    Site1Policy = "Site1 settings"
    Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
    Site2Policy = "Site2 settings"
    Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."

    Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
    ---------------------------------------------CUT---------------------------------------------
    CLASS USER
    CATEGORY "ApplicationSettings"
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    POLICY !!SITE1Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    POLICY !!SITE2Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    END CATEGORY
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings

  • I'm trying to change my secret question because I forgot to answer. Followed all the instructions, but not yet I receive a message to let me change the answer, I tried more than once, but without an answer

    I'm trying to change my secret question because I forgot to answer.
    Followed all the instructions, but not yet I receive a message to let me change the answer, I tried more than once, but without an answer

    See this thread:
    https://discussions.apple.com/message/23280567#23280567

  • Powershell and Client Object Model - no error thrown if user is added more than once to same site or group

    Hello All -
    I am trying to add a user to a SharePoint site using PowerShell like below:-
    New-SPUser -UserAlias MyDomain\jan20a -Web http://SPServer/sites/MySite
    If I execute the above more than once, SharePoint does not throw that user already exists or something. This is not the same behavior in AD/Exchange PowerShell cmdlets.
    Also, even the client object model behaves the same way.
    Another interesting thing I noticed, I tried to remove a user from group in which the user was not part of it at all and still no error..!!
    Looks like SharePoint does not care of invalid input and just ignores it.
    Can anyone please confirm this and also the reason behind it ?

    It's not really invalid input, since the user exists and that is how SharePoint behaves (will behave same way in browser).  Try to input a user that and misspell the name, e.g. say you didn't have a MyDomain\Jan21a, then try to use same script above,
    only with invalid data.  It will bark at you.  Or try using a web that it cannot find, one that does not exist.  You'll get what I like to call, the red badge of courage if you enter invalid data.
    you can test that sharepoint will let you enter a user twice in the browser, and nothing bad comes from it.  Powershell is just unable to tell that the user was not in the site, when you removed it the second time. 
    Hope that confirms it, if it does please mark this reply accordingly.  thanks
    Stacy Simpkins | MCSE SharePoint | www.sharepointpapa.com

  • Error: An attribute cannot appear more than once in the same start tag

    Hi Everyone,
    when i run the page sometimes it works fine but sometimes it throws Compilation Error as below.
    "Error(502,1224): file:/C:/Jdeveloper/jdevhome/jdev/myhtml/OA_HTML/fwk/t/Session_2055663493/region1.uix<Line 502, Column 1224>: XML-20124: (Fatal Error) An attribute cannot appear more than once in the same start tag."
    And i delete the particular file from the path and run the page so this time it works fine.
    But later after sometime i get the same error but the session number will be changed, then again i need to delete it and run.
    What can be the permanent solution for this issue?
    Plz let me know any suggetions.
    Thanks.

    Seems like the mdl file is corrupted or was not generated correctly.
    Can you try to create the mdl file again and then try the import ?
    If it doesn't work then try contacting Oracle Support.

  • Statechart module: Using a master statechart to launch a slave statechart more than once without getting Error 1100 at Obtain Queue (No object of that name was found)

    Hello,
    I am trying to create a project using the statechart module, and one of the techniques I am trying to use is a "master-slave" statechart structure, illustrated by the code I have attached to this post (you probably need the statechart module installed to look at my example code).  The problem I have recently discovered is that the slave statecharts cannot be launched more than once without raising an Error 1100 at Obtain Queue.  I have gathered from a few other posts that the cause of this error is the fact that the First Call primitive is used by the Statechart module to initialize the statechart when it is first run.  This works fine for the first launch of the slave statechart, but the second launch and subsequent launches of the statechart fail on Error 1100, since the First Call primitive won't let the statechart initialize (the First Call primitive tells the statechart it has already been initialized (this isn't the first call), and the External Trigger function then tries to send an external trigger to a queue that doesn't exist).
    What I can't gather from those posts is the correction I need to make to get this design to work.  I tried to send the slave statecharts a boolean flag for the "Init?" terminal, to force a reinitializing of the slave statechart.  I couldn't get that to work.  I tried to not load the slave sub VI as a slave sub VI, and launch it using some VI Server code, so that maybe the slave sub VI would be loaded and unloaded, therefore causing the statechart to properly initialize, but I couldn't get that to work either.  What correction should I make?  How do I get this to work?
    I really want to use this design pattern, first of all since I wrote a lot of code already with this structure, and second of all, it makes a lot of sense to me.  How do I make it work?  If someone could post a version of my code that functions the same, but without the error, I would appreciate that.  If you don't have time for that, but would be able to outline the steps I need to take to get it to work, that would be helpful, as well.
    Thanks to anyone for any assistance they can provide.  If you need any other information, please let me know.
    Attachments:
    Statechart Sample.zip ‏431 KB

    Thanks, Deborah.  I tried this approach out, and it turns out you can't just wire a TRUE to the "Init?" terminal.  You have to wire a TRUE for the first run of the slave statechart, and then it has to become a FALSE.  If you wire a TRUE, it will constantly try to reset the statechart, which doesn't work.
    The master statechart has to keep track of whether it has called the slave statechart, and communicate that to the slave statechart.  On the very first call of the slave statechart, the "First Call?" function inside of the "Run Statechart" function will give a TRUE, which initializes the statechart properly, and then gives a FALSE from that point after.  After that, the "First Call?" function doesn't work anymore (it will always return FALSE), and an initial TRUE, with subsequent FALSE values, has to be provided manually.
    I attached a version that does this, which appears to work.  Let me know if it doesn't work for someone, or if you have a better idea to implement the correction.
    Thanks to everyone for the replies!
    Attachments:
    Master-Slave Statechart Sample.zip ‏439 KB

Maybe you are looking for

  • Zen Vision M: 30GB//Player gets stuck @ "ZEN vision M" lo

    Alright, this player loads, but it freezes at the "ZEN Vision M" logo (as I said in the subject). I tried formatting it, and all those other options on the boot menu, except for updating the firmware (I can't, since I do not own Windows Media Center

  • Multiple listings for one shared user

    Occassionally, a single user in my office will show up under the Shared Music heading in the iTunes source list multiple times! One coworker's shared library currently shows up 6 times, one after the other! Only the last listing actually connects to

  • Binging KFF in DFF - Oracle EBS 11.5.10.2

    Hi, I am working on the requirement of bringing KFF in a DFF and its works fine. But i just wanted to understand if there is a way to capture a run time value from the Form and insert into the custom table. Right now, i have created a sequence which

  • HT2614 Saved pdf files arrive on my phone as winmail.dat

    I save a pdf file on my computor,then i email it to my phone and it arrives as a winmail.dat file ?

  • Says need to install quicktime 7

    Asked me to update itunes to itunes 6 i guess. I tried. Originally i got not installed properly message. Now getting message that itunes requires quicktime 7. Seems like i have quicktime 6.5.2. I followed around 3 different methods to correct itunes.