VALIDATION - function returns the error text

I have a domain that occurs on about 12 pages, I need to post this field with some code

I created a function on the database that performs this validation, I pass the field value to the function and it returns some text of error, or NULL if the value is correct

I can't for the life of figure me out how to call the function of APEX

I've tried everything

FUNCTION RETURN ERROR TEXT, Expression SQL, PL/SQL Expression... nothing works!

to call the function my comand is

FN_VALIDATE_HR1_REF (: P1_GCI,: P1_HR1_REF);

I want to return the error on the function text and display it in the banner of APEX error

any help greatly appreciated

A function like this return error text should work:

Return (FN_VALIDATE_HR1_REF (: P1_GCI,: P1_HR1_REF));

Is giving the error?

Tags: Database

Similar Questions

  • Looking for an example of "function that returns the error text.

    Environment: APEX 3.1.1.00.09 on AIX 5.3

    I'm looking for an example implementation of the posting of the "function that returns the error text.

    I would like to write a database function that does the validation logic and return the text of the error.

    Is it possible to create multiple lines of text of error based on error conditions?

    I'm trying to use it at the end of the input data to go on the set of the 'document' to the entry and highlight all error conditions encountered before the 'document' is subject to additional processing.

    I wrote the function and reference it in a posting as ' validate_stuff (: P3_DOC_SEQ); »

    I have an error message "validate_stuff is not a procedure or is not defined.

    The object is a function, not a procedure. It is defined to return a parameter VARCHAR2 hoped posting if it is not NULL.

    When I run the SQL function * more and spend in a number of documents are returned the correct error messages.

    Any direction is greatly appreciated.

    -gary

    Hi Gary,.

    You must RETURN the result of the function:

    BEGIN
     RETURN validate_stuff(:P3_DOC_SEQ);
    END;
    

    Andy

  • Why the HTTP become function returns the error code 63?

    I tried to use the get HTTP function to get the XML file is returned by the api Google MAPS distance-matrix. I got the right answer if I insert the url directly in the browser, but using the get HTTP function, it returns the error 63, why?

    This is my code (the VI is developed on LV2011).

    I guess, the VI GET for use with LabVIEW Web Service, only not to get of the Internet pages.

    Using the simplest way:

    Andrey.

  • Calling PropertyUtils.h functions return the error!

    Hello!

    I required the use of certain functions defined in the PropertyUtils.h class in the Photoshop SDK. I used the PIGetLayerName() function. I hoped that everything would be fine, instead an error was returned with the code 30901. I searched the internet, but have found no solution so far. Help, please! I use PS CS5 on Windows.

    Thank you!

    Hello

    I expect an answer to this question...! People, I don't know how to go about this problem... I wanted to know if we can find out if a particular layer is locked or not... The class propertyutils.h in question contains a method, which hopefully can solve my problem... The sound of the name of PIGetTargetLayerLock() with three Boolean parameters. Now, I don't know what type of values to pass to this function, because there is absolutely no info about... I get the same error I mentioned earlier--30901 (errPlugInPropertyUndefined)... Please help me... How to go to this topic... ??? Again, I want to know if we can know through code c ++ If a layer is locked or not...

    Thank you!

  • function returning the text validation error

    Hello

    I have a page where I can insert/update user, organization, responsible.
    Organization can be nullable.

    A single user can both be responsible for an organization.

    To check this responsible for validation, I made a function that returns the error of validation of text as follows:

    BEGIN
    FOR c IN (SELECT usr_spa
    OF kpi_users
    WHERE usr_org_id =: p22_usr_org_id
    )
    LOOP
    IF upper(:p22_usr_spa) = upper('YES') and upper (c.usr_spa) = upper('YES')
    THEN
    RETURN 'user is already responsible for this organization' |'. ' ;
    END IF;

    END LOOP;

    END;

    The validation works fine.

    But it won't when I want to insert a new user, without attributing it to an organization.
    I get the following message:

    ORA-01722: invalid number

    Cannot run the validation of the "body of the function return text' ERR-1024.

    Can someone please help me solve this problem?

    Thank you

    Hello

    The user selects a body in a select list? If the default value is considered "null %"? If so, you could modify the test to the IF: P22_USR_ORG_ID <>'% "| 'null %' THEN

    Andy

  • The page validation: function returning a Boolean

    Hi guys,.

    I'm doing a page validation simple to check an element in my presentation table if it is a number or not:

    START
    FOR i IN 1.. apex_application.g_f12. COUNTY
    LOOP
    IF LENGTH (TRIM (TRANSLATE (apex_application.g_f12 (i), "0123456789","" "))) is NOT null
    THEN
    RETURN FALSE;
    END IF;
    END LOOP;
    END;

    but I get this error message if g_f12 = AAA:

    ORA-06502: PL/SQL: digital or value error: character of number conversion error
    ERR-1021 error cannot run the validation of the "body of the function that returns a Boolean.
    Ok

    If g_f12 = A12 or a mixed alphanumeric it will work!

    * (I tried this with the function returning the text and it works like a charm, but in this case I have to use the function returns boolean to allow me to translate the error message) *.

    am I doing something wrong please help

    Thank you

    Hello

    Well, now when I look at the error message, I think that the problem is quite obvious.

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • ORA 28817 PLSQL function returned an error. When the apex 4 2 instance access

    Hello

    I just upgraded from apex to apex 4.2 4.1. All is well except for this error I get when I try to access the parameter Instance on the App Admin (localhost/apex/apex_admin)
    ORA-28817: PL/SQL function has returned an error
    What could be the problem? How we solve this problem...

    I'm working on the 2012 Win server machine... apex 4.2 with earphone 2 deployed on Glassfish 3.1.2 apex.

    Best regards
    Fateh

    Hello Faye,

    We are already aware of this problem, even if it is not yet present on our Web page of problems known. The reason for this error is that the new facility replaces an instance to the scale encryption key. In the preferences of the instance which have been encrypted with the old value (the SMTP password and the password for the portfolio), the values are not valid after the upgrade and decryption causes this error. As a work around, you can use the apex_instance_admin package to replace the invalid passwords.

    The following code shows how the decryption throws ORA-28817:

    SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
    select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual
           *
    ERROR at line 1:
    ORA-28817: PL/SQL function returned an error.
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 44
    ORA-06512: at "APEX_040200.WWV_FLOW_CRYPTO", line 89
    ORA-06512: at "APEX_040200.WWV_FLOW_INSTANCE_ADMIN", line 239
    

    You can fix this by entering new password:

    SYS@a411> exec apex_instance_admin.set_parameter('SMTP_PASSWORD','my smtp password');
    PL/SQL procedure successfully completed.
    
    SYS@a411> exec apex_instance_admin.set_parameter('WALLET_PWD','my wallet password');
    PL/SQL procedure successfully completed.
    
    SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
    APEX_INSTANCE_ADMIN.GET_PARAMETER('SMTP_PASSWORD')
    ----------------------------------------------------------------------------------------------
    my smtp password
    
    1 row selected.
    

    Kind regards
    Christian

  • function to_numer returns the error in pl/sql

    Hello
    I don't have a prob when executing select double to_number('1234.56'), the numer contains decimal numbers
    But this stm return number not valid error in the procedure, except if I use to_number('1234.56','9999999.99')
    Please help me.
    I need to set parameter in DB?
    BTW: my NLS_NUMERIC_CHARACTER has the value '.,'
    Thank you.

    function to_numer returns the error in pl/sql

    hlthanh wrote:
    Hello
    I don't have a prob when executing select double to_number('1234.56'), the numer contains decimal numbers
    But this stm return number not valid error in the procedure, except if I use to_number('1234.56','9999999.99')
    Please help me.
    I need to set parameter in DB?
    BTW: my NLS_NUMERIC_CHARACTER has the value '.,'
    Thank you.

    Handle: hlthanh
    Status level: Beginner
    Join date: March 7, 1999
    Messages total: 94
    Total Questions: 60 (38 pending)
    many questions and so few answers.
    How SAD!

  • I want my procedure to return the error message in the batch file

    Hi team,

    I have a requirement from users of the company. Could you please provide your suggetsion to achieve this.

    We have a batch file that is short on time, in this batch file, I'll call you a SQL script.

    In the SQL script, I called you a procedure to run.

    Inside the procedure, I have the following statement,

    Select, insert and update commands.

    and I use ANOTHER exception to handle errors.

    My requirement is to pass the error messages for the batch file when one of the orders was not not run and send a notification e-mail to the group with the error text.

    Please provide your suggestion.

    Thank you and best regards,

    Robette.

    Could you please tell me, inside the procedure I have to remove the OTHER exception and how I can pass the value to the command file and where I add the content of the e-mail notification.

    I suggest that you write modular code instead.

    1. create a log table

    2 modify the procedure to log on to the error log table or exceptions

    3. that others suggest have the recovery/return procedure an exception in the client/batch file

    4. for an exception have the batch file to call a procedure to do the emailing if there were exceptions

    IMHO, it's a MISTAKE to try to put all these features in a single file. It is NOT scalable and makes it almost impossible to update the batch file if the requirements change in the future.

    Logging should be a separate process with a separate log table so that you can capture ALL of the information that may be necessary, now or in the future. Enter information in a table of newspaper, it is EASY for ANYONE to query to see what problems are occurring in the process.

    Emailing should be a separate process so that it can be used for your batch file current, files of future orders or even by procedures or functions in the database.

    Do not try to create a solution "a script does everything."

  • Parser returned the error 0xC00CE566 help!

    Hello Microsoft! :)      * Got to mentioned before starting! My English is so bad! and... I'm a fool to the system in computer science ==

    I can't find a solution to solve the issue of the "Setup parse error", so I need help!
    Because I can't attached images here, so I will attach a few links of the error. Sorry!
    Well, first of all! I mention that I used this old computer on 4years. And I can't play anygame, Sims2 & 3, Resident Evil1 ~ 5, Fear, Left4Dead1 & 2, and so on...
    Since last Thursday, I played my favorite game, Sims3!  And it pops up an error...
    Error image:
    I keep restarting and rebooting always cannot open the Sims3 Launcher, but I can still play "TS3.exe" is NOT TheSims3Launcher! I have although there is Sims3 error, ignore it and I play another game (Resident Evil), Popping Out error again! So I tried some of my games in my laptop, but fortunately some work normally and some error pops out!
    So, I continue to find the solution for the error! I read alots of section in the Microsoft communityand do what the article says. But no solution!
    I also have this reference article:
    Because some of their problem is the blue screen and the error of the Analyzer when they start! ToT
    I did as he said, run System File Checker (SFC.exe) and type sfc/scannow
    Then start it again, but when it comes out an error saying cannot solve the problem.
    So I run method 2: run the Startup Repair by using the Windows Vista installation disc
    But still can not help. I restore the system to the point different.
    No solution too, after the restoration, it restarts and goes back to the desktop, so I run Sims3, but error pops up once again. ==
    So I have different restore point, but the same question... Configuration parse error!
    Some of the article Turn Windows Feature On or Off. So, I try to turn on and off all in the box of Microsoft .NET Framework 3.5.1. Restart, and restart. Then I try to activate some and disable some, restart, then restart.
    Image to activate or disable the functionality in Windows

    I though that solves the problem. But still, pops up an error...
    ==... I continue to find solution around these days... If I'm helped Microsoft! D
    I thought to uninstall it and reinstall, but is not in the section Uninstall or change a program . I found MICROSOFT.NET Framework 4 Client Profile and Microsoft .NET Framework 4 Extended only...
    The Uninstall or change a program image below section is:
    Then he says,
    Parse error
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG \machine.config
    Parser returned the error 0xC00CE566
    Then I went to C:\Windows\Microsoft.NET\Framework\v2.0.50727\config \machine.config and check my "machine.config" lack.
    But it's still there and I went to click on all those who ".exe" (application) in the Framework folder (because I'm and silly) xD ".
    I thought that all of the problem solves but still error Parsing comes out when I run Sims3Launcher.exe ==
    Well, I don't know this is my computer problem, but before Thursday last, everything works perfectly...
    But I still want to show my 'OLD' portable system
    The system image: (if I scroll down it was the product key, so I jump, isn't bad, right?)

    Microsoft hopes to help, I can do some steps you call me to do!
    Please answer weather you have or no solution :(
    I can't wait! ToT x 9999999 thanks Microsoft!
    Thank you<>
    Louis

    Hey andrewsu,

    Thanks for the reply! : D
    None of them works for me, but I found a solution here:

    The steps are: * (copied from a user)

    -Go to the folder C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\, do a right-click the machine.config file, and then select Properties.

    -On the Security tab, click on the Advanced button and from there, click on the owner tab.

    -Choose your user account under the heading "change owner to" and click on apply.

    -Return to the Security tab in the previous window, then click the button change.

    -To give you complete control over the files.

    -It may be a good idea to make copies of the machine.config and machine.config.default files if you have not already.

    -Rename the file 'machine.config' to 'machine.config1' or something like that.  Then rename 'machine.config.default' just 'machine.config '.

    After you rename and apply, everything works fine for me ~ ^^

    But some problems persist at the launch of some software ~

    But the games work perfectly ~! xDD

    Thank you very much for your help! xDD

    * (Sorry for my bad English) ==

  • Error message: "an internal support function returned an error" trying to attach files in emails.

    Original title: Error message-not invited

    Trying to electronic. Error message: 'an internal support function returned an error.'

    Hello

    Which email client you are using?

    If you are facing the issue in Microsoft Office, you can post your question in the Microsoft Office community & get help support professionals.

    Hope the helps of information.

    Please post back and we do know.

  • Windows Update fails to install KB974234 and returns the error code 80070641

    Previous issues with the installation of the updates or with those who just do not had are released on 11/10, but cannot install KB974234 (published on 10/13).  Update returns the error code 80070641.

    I am running Vista Home Premium with Office 2007 SP2.  Diagnostics Office finds no problem.

    Following further discussions, I have (among other attempts): stopped the Service Windows Installer (returns this message "the Windows Installer service is not started"), tried the Patch Registration Cleanup Tool (wouldn't not - said "a productcode must be determined"), downloaded manually updated.

    Any help would be appreciated!
    Dave

    Hi Dave,http://support.microsoft.com/default.aspx/kb/818018/

    http://support.Microsoft.com/kb/304498

    Hope this can solve your problems,

  • Can not dial any number, because when I press the call button, it returns the error message

    Dear friends, I am struggling to dial any phone number. When I press on the symbol of the dial, it immediately returns the error message 'arrested contacts' - ' o is parou - in Portuguese.
    I already tried to clean the cache and the data of all the apps, tried the hard reset and still the same error. What could possibly be wrong? The errors began after I composed a total of 16 numbers huge telefone number (XX XX xxx xxx xxx xxx). Could it be related to that?
    Thank you all!
    Billy of the Brazil!

    Hello

    Dialing a long number should not affect the Dialer in this way. I suggest you factory reset on your phone via the settings > Backup & reset > reset data. Before you do a factory reset, you might want to backup your data.

  • "The analysis returned the error 0XC00CE556.

    Original title: "Parsing returned the error OXCOOCE556.

    When I start my computer, I get 'Parsing returned error OXCOOCE556' several times. What is - this and how to fix this. I use Vista.

    Hi LouisVoorhies,

    (1) since when are you facing this problem?

    (2) remember to make changes?

    It is sufficient to indicate the complete error message you receive.

    Method 1:  Put the computer to boot and then check if the problem persists

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.
    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

    Method 2: Check the box next to Microsoft .NET Framework 3

    (a) click Start, click Control Panel, and then double-click programs and features.

    (b) click on Turn Windows Features on or off.

    (c) If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (d) check the box next to Microsoft .NET Framework 3

    (e) click Ok, and then restart the computer

  • Parser returned the error 0xC00CE556

    Parser returned the error 0xC00CE556

    Hi Muhammad,

    I quickly gather information in this topic to help you best.

    1. Once you get this error message?

    2. What is the brand and model of the computer?

    3 have there been recent changes made on the computer before the show?

    This error is related to the .net Framework, I suggest you go to the link below and view suggestions posted by Mike onTuesday, October 27, 2009 04:07 and check if it helps.

    http://social.answers.Microsoft.com/forums/en-us/XPRepair/thread/52e9dd11-78c6-4B07-809e-11f7b6cf81ee

    Please post back with the results and we will be happy to help you further.

Maybe you are looking for

  • Why can't the Web icon for some of my saved favorites

    A lot of my saved favorites have their correct Web icons.However, many fail to save their Web icon leaving the icon of the Virgin.The Web Sites in question have specific Web icons.I tried to delete the bookmarks in question and the recording of their

  • Help! Can I restore my photos?

    I'll try to do it is concise: when I turned on my computer today, I received a message "NTLDR is missing".  CTR/alt/del did nothing.  Everything I had was a black screen with the message above. I never created System Restore on my computer points; I

  • How to control NI USB-6509 with Micrsoft Excel Macro?

    Hello I have recently brought NI USB-6509 (96 digital i/o channels) and tested ok with Labview. But I wanted to detect and control the same device in microsoft excel. Can anyone suggest me some solutions to work on excel with this device?

  • a problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory

    When looking at the module a LabVIEW VI called for TestStand, I get the following message: A problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory.  Please reinstall or repair. I made the mistake of cleaning C: in my compute

  • Installation Failure.Error Code 0x663__

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: Security Update for Microsoft .NET Framework 1.1 SP1 on Windows XP, Windows Vista and Windows Server 2008 x 86 (KB2416447) Erroe Code 0 x