Validation sequencing not working

hi
I have found that my item level validations on a page are not working as I expected. I validate a field (P74_change_id) to 'must be numeric', then I have another validation with a much higher sequence number that checks whether the value already exists in the database, but this is causing an error if the value if not numeric. The following text is taken from my debug mode, what surprises me is the second line that clearly states the first 'not numeric' validation is functioning correctly and returning a fail, but it still carries on with the other validations.
0.28: ...Item is numeric validation: P74_CHANGE_ID
*0.28: ...Validation did NOT pass*
0.28: ...Item Not Null or zero Validation: P74_CHANGE_ID
0.28: ...Item Not Null Validation: P74_RAISED_DATE
0.29: ...Item is date validation: P74_RAISED_DATE
*0.29: ...Validation did NOT pass*
0.29: ...Item Not Null Validation: P74_APPROVED
0.29: ...Item Not Null Validation: P74_TYPE
0.29: ...Item is date validation: P74_APPROVED_DATE
0.30: ...Exists Validation: type="NOT_EXISTS" select * from budget_ct_header where (change_ID = :P74_change_Id) and (change_ID_rev = :P74_change_id_rev) and (project = :P74_project) and (type = :P74_TYPE)
0.30: Show ERROR page...
I get a 'ORA-01722: invalid number' and 'Error ERR-1006 Error in validation routine' referring to 'Exists Validation: type="NOT_EXISTS" select * from' etc the on the page below the debug.
Any ideas/thoughts??
Thanks
-Marc

Marc
Apex will check all validations before the error page - hence the 'X errors have occured' message. This is a good thing, there's nothing worse for a user to get an error, fix it, re-submit the page only to get another error etc etc.
Looks like you need to check you NOT EXISTS validation so make all the other validation conditional never and then get that one working.
I think the problem is probably with one of the bind variable predicates where you reference the page items. Have you tried wrapping them in TO_NUMBER() where appropriate?
By the way you don't need brackets round your predicates in the WHERE clause of your not exists query.
Let me know if you need further help.
Cheers
Ben
Sorry forgot to mention that your ORA error seems to relate to your NOT EXISTS query - not your IS NUMERIC validations
Edited by: Munky on Apr 8, 2009 11:37 AM

Similar Messages

  • Test sequences not working in standard prototype adaptor with Execute Steps in process

    Test sequences not working in standard prototype adaptor with "Execute Steps in process" but the sequences works in "Execute steps in an External instance of CVI"(Debug mode). Pl help with solution
    Apriciate your help
    Regards,
    Sharanu

    Sharanu,
    Thanks for contacting National Instruments. It would help us out a lot if you could specify exactly what is not working. Will the sequence just not run? Is it giving you an error message? Or what exactly does not work about it? The initial thing that I could think of that would make it not work in External Instance but not using the RunTime Engine is that you might be missing a support library when trying to run it in this configuration. If you click on the "Configure Auto-Loading of Support Libraries Needed for Linking .objs and .libs" button, you can make sure that all the support libraries you might be using are added in this list (you can add them using the "Add Other Libraries..." button). If this does not fix your problem, then let us know a litt
    le more about what is going on and we can help you from there. Thanks.
    Adam B.
    Applications Engineer
    National Instruments

  • Why Strict validation is not working

    Hi,
    Why the Strict validation is not working in the XMLDB. I validated successfully the same file from XML Spy. The error in Oracle is:
    begin
    for x in (select warehouse_spec from xml_validate where warehouse_id=51) loop
    x.warehouse_spec.schemaValidate();
    end loop;
    end;
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00011: internal error: LsxvPushCandidate array overflow
    ORA-06512: at "SYS.XMLTYPE", line 345
    ORA-06512: at line 3
    Thanks in advance
    Rizly

    The error is LSX-00011: internal error: LsxvPushCandidate array overflow
    This might be helpfull
    Error in STRICT Validation
    Regards,
    Remy

  • Publishing HTML(Page content) field required field validation is not working

    The required field validation is not working on Site Column of type "Full HTML content with formatting and constraints for publishing". I found a link i.e.
    https://social.msdn.microsoft.com/Forums/office/en-US/7b544aae-2562-4b8e-8e5b-36a1d47a4d14/publishing-htmlpage-content-field-required-field-validation-is-not-working?forum=sharepointdevelopment
    which tells this is a hot fix in July 2014 CU . Can anyone help me with what all Fixes are there in July 2014 CU. So that I can update only if it required!
    Or any other alternative where I can use the required field validator on "Full HTML content with formatting and constraints for publishing" column type?

    You could add a scripteditor webpart on the newform.aspx page and add client side validation using jQuery.
    $(document).ready(function()
     var fname = document.getElementById('fname').val();
     var lname = document.getElementById('lname').val();
     var age = document.getElementById('age').val();
     /*Do not know how to get element by class and that too, two different type. Have to check if user chose anything or not*/
      $("#submit").click(function()
       if(fname.length === 0)
        alert("Please input a first name");
       else if(lname.length === 0)
        alert("Please input a last name");
       else if(age.length === 0)
        alert("Please input an age");

  • Validation is not working for F-28 and F-53

    Hi,
    I wrote a validation for Transaction Code F-28 and F-53 and F-44 and F-54. But it is not working. Kindly help me where i went wrong. please do the needful.
    Pre-Requisite : Company Code and Transaction Code
    Check : Business Area 4000
    Requirement is - In the above transaction if i give the other business area like 3000, system should throw error. System should only accept the Business Area 4000
    But i am not able to succeed to full fill the requirement.. Kindly Help me
    Thanks
    Sunil

    Hi,
    Please pass some transactions using mentioned t-codes in testing server. After passing transactions please check the accounting document header for checking T-code for the same.
    Use that t-code for validations . also check whether Validation - call p point is activated or not in t-code OB28
    Rgds,
    Saurabh

  • "Document type" in access sequence  not working in free goods

    Dear All,
    our requirement is to provide free goods with the main items in portal.
    for this i defined access sequence 1.Customer/Material and 2. SalesOrg/Documnet Type/Material.
    for access sequence Customer/Material  it's working fine but when i use SalesOrg/Documnet Type/Material it's not working.
    problem is that when i use Document type in access sequence it's not working.
    pls help.
    Radhashyam Sahoo

    Hi Apoorva!
    What do you mean with "Access Sequence"?
    In CRM 7.0 EHP1 there is a generic framework-feature available which allows the defininition of the tab-order.
    Best regards
    Arno

  • Orion.edit.validator example not working

    The example mentioned in the below link for orion.edit.validator does not seem to work.
    https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor
    Please help with the proper code snippet or example for orion.edit.validator

    The code on that page was outdated, I fixed it.
    Here's a gist showing a complete working example: https://gist.github.com/mamacdon/cb1e20fd8f967e97cfb4

  • Browse sequence not working in IE 10 - works in Chrome and Firefox

    Hi all:
    I am using RH10 and generating webhelp. I have applied the recent fixes for webhelp.
    The browse sequence does not work when the webhelp is displayed with IE 10. It works when the webhelp is displayed in Chrome and Firefox. Index, Search and Glossary are working in all three browsers.
    Does this sound familiar to anybody? It seems to be a different problem from the one that was addressed by the recent fixes.
    Thanks in advance for any help.
    Juliette
    Working on a deadline and getting rather stressed....

    Do you have the latest IE patches installed? See
    http://www.wvanweelden.eu/articles/robohelp-patches-and-updates for an
    overview of available fixes.
    Kind regards,
    Willam

  • , Finger print validity sensor not working probook 450 g2

    i have downloaded the finger print validity sensor and intalled it ..till now it's not working and i cant even find it in sign in options 

    Hello @ess_elgiendii ,
    To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Commercial Forums.
    Even though this is a Commercial product, I would check is it enable biometric support.
    Here is a link to troubleshoot the Fingerprint Reader software.
    You have installed the incorrect version of software for your system. You will have to uninstall it and install this version.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Selection-Screen validation is not working

    Dear Gurus,
    I did one report in that,selelction screen is not working properly.
    if i give input by F4 searching,selection condition not working.
    it does not retrive the particular result instead of that it retrive the all values what can i do for this.
    Regards,
    Rajkumar.A

    Hi Rajkumar,
    What do you mean by selection-screen not working?
    Does not it give values on clicking execute or doesnot it move to the output screen or does it throw an error?
    Please explain

  • Request Data Validator is not working

    Hi Guys,
    I am trying to invoke a plugin while submitting a request through CATALOG in OIM 11gR2. The user case i am trying to achieve is - (1) User/Admin login to OIM and go to CATALOG option (2) Select an Application instance, fill the values in the form and checkout (3) While submitting this validator should invoke which will validate the request data and throw exception if any.
    For this i was thinking to utilize the plugin for oracle.iam.request.plugins.RequestDataValidator "This is used for custom validation of request data after submission"
    My plugin.xml looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
    <plugin pluginclass="com.test.oim.TestRequestValidator" version="1.0" name="TestReqValidator">
    </plugin>
    </plugins>
    </oimplugins>
    And i am using simple code as below
    package com.test.oim;
    import oracle.iam.request.exception.InvalidRequestDataException;
    import oracle.iam.request.plugins.RequestDataValidator;
    import oracle.iam.request.vo.RequestData;
    +public class TestRequestValidator implements RequestDataValidator {+
    +public TestRequestValidator() {+
    super();
    +}+
    +public void validate (RequestData reqDta) throws InvalidRequestDataException{+
    System.out.println("************************************************");
    System.out.println("***Justification***" reqDta.getJustification());+
    throw new InvalidRequestDataException(new Exception("Invalid User"));
    +}+
    +}+
    My plugin directory contains the plugin.xml file and the jar file (with above class) under lib directory. I placed the zip file under OIM_HOME/Plugin directory and even restarted the servers.
    However this code is not invoking and i can successfully create the request (i tried from user and admin both). Please advise if anyone has any idea. Thanks

    Hi Duncan,
    I have mapped the DataSet validator element in my plugin.xml file
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<oimplugins>+
    +<plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">+
    +<plugin pluginclass="com.test.oim.OIMREQValidate" version="1.2" name="OIMREQValidate">+
    +<metadata name="Data Validator">+
    +<value>AssignRolesDataSet|ModifyUserDataset</value>+
    +</metadata>+
    +</plugin>+
    +</plugins>+
    +</oimplugins>+
    Still my request data validator is not getting invoked. I can successfully create the request. (Per this validator every request should fail and logs should getting logged). My validate method code is below
    +public void validate (RequestData reqDta) throws InvalidRequestDataException{+
    RequestLogger.LOGGER.logp(Level.WARNING, "OIMREQValidate", "validate", "CALLING THE CUSTOM PLUGIN");
    System.out.println("***Justification***" reqDta.getJustification());+
    throw new InvalidRequestDataException(new Exception("Invalid User"));
    +}+

  • Validation is not working properly in OIM 10g

    I have a below scenario in OIM10g…
    1.     Users of group A have the permission to provision a resource to “Dummy1”.
    2.     Users of group B have the permission to deprovision resource from “Dummy1”.
    I have one admin user which belongs to both group that A and B, now suppose this admin user try to deprovision multiple resources by selection the corresponding check box . Say resource “Dummy1” and “Dummy2”, then in OIM we are getting error message “You do not have permission to perform this activity”, and none of process task is triggered in OIM and status is still showing as Provisioned. But at the resource “Dummy1” user is getting deleted.
    Request you please help me on this.
    Thanks
    Edited by: 953339 on 17/08/2012 03:35

    Thanks Kavin,
    It is working fine with positive testing and failing during the negative testing.
    Can I put an entity adapter for validating this ? if yes what would the steps.
    Edited by: 953339 on 21/08/2012 03:21

  • SolMan 4.0: Support Team determination via Access Sequence not working

    Hi,
    from all the documentation I've read I got the following understanding for automatically determination of Support Team via Access Sequence (well, for one possibillity at least):
    - Maintain Sold-to-Party in IBase IB52, especially country attribute. DONE
    - Maintain Organizational Structure in PPOMA_CRM and create Org. Units, Business Partner No. get assigned automatically. DONE
    - The Organizational Unit "Support Team" has the same country attribute as the Sold-to-Party and was marked "Obj. Permitted in Determination". DONE
    - In IMG under SolMan -> Sc.-Specific Settings -> Partner Det. Proc. -> Def. Partner Det. Procedure select Procedure "SLFN0001" -> Partner Functions in Procedure -> Select "Support Team" -> Details, in block "Partner Determination" under "Access Sequence" select "Organizational data: Support Team by org. model". DONE
    If I now create a support message in a satellite system the Support-Team will NOT be assigned. Instead if I have a look into transaction data of the message under tab "Actions" there is an entry "When message is created, find support team responsible" with processing parameters RULE AC13200137, PARTNER_FCT SLFN0003.
    This makes absolutely no sense to me, why is the determination rule 13200137 used (which contains no entries at the moment) instead of the assigned Access Sequence?
    Am I missing something?
    Regards,
    Marco Kipka

    Hi,
    no hint for solving the problem?
    This is getting quite urgent, since I'm working at a customers site and try to implement the describted scenario.
    Regards,
    Marco

  • Spry Validation widgets not working on local WAMP server

    I just started the process of creating a contact page. I got the client side done last night, woke up this morning and panicked. The spry validation widgets weren't working anymore. I re-did the entire page and realized it was only the contact.html page in the wamp directory that wasn't working. All the needed CSS and javascript assets are there and in the proper folders, so what's up?
    (I'm still in the middle of the lynda.com series Dreamweaver CS5 with PHP and MySQL , so I'm not even certain where I'm heading just yet. I'm doing stuff as I think I understand it.)

    OK, this is interesting. It works online, but not in local cache.
    Here's the contact page on my website: http://www.ladyhawkslair.com/contact.html (So far, GNDN: goes nowhere; does nothing.)
    And here's the WAMP version: http://www.ladyhawkslair.com/wamp/contact.html
    worky-worky online.
    No worky-worky when I preview in Firefox on my system.
    Wait. Hold that thought.
    I only refuses to work when I preview it in Firefox THROUGH Dreamweaver. Let me test again.
    Verified.
    The spry widgets don't work when I load them to Firefox WITH Dreamweaver. Interestingly, it works with IE.
    Any ideas, Gramps?

  • Custom Function in a Sequence Not Working

    Hi All,
    We have defined a Custom Function and it has got a class (ZCL_IP_DERIVE_XXX_XXXX).
    Further, in the IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE method of this class, we have defined a logic of appying a new Index (Sales Curve) and the forecast values are uplifted accordingly.
    This Custom functon of Applying a new Index is one od the step in a Planning Sequence.
    When I try to execute only the step of applying function in the modeler, I get the output as required and I can see them accurate in the trace.
    But If I execute the entire sequence either step by step or at one go, the function is not applied. In the messages, it says step1 to 7 are executed. But there is no change done to the records read.
    I doubt the values written back in the function are refreshed as soon as the come out of the step. Correct me if I am wrong.
    The Values are read and written abck to the table C_TH_DATA.
    Are we populating the right table? Do let me know if I need to change anything in the sequence.
    Regards,
    Harika

    Thanks for your replies.
    As suggested, the problem was with in the sequence as in the step before the function is applied, they are getting deleted...smll change in the code fixed the issue.
    But now, when I try to run the same sequence on a button in a workbook, it doesnt work.
    I checked the sequence behind the button. it is assosciated with the same one defined.
    But no clue why it doesnt work.
    Also, please let me know if there is any option to unhide the fields on the workbook in design mode.
    Regards,
    Harika

Maybe you are looking for