Getting raise_application_error code using  php

I have a trigger that catches an action and returns a raise_application_error. I am having a hard time finding out how to retrieve the error code (I defined it) using php code.
here is an example of the php/oracle error message that I get:
Warning: OCIStmtExecute: ORA-21000: error number
argument to raise_application_error of -2006 is
out of range ORA-06512
I can retrieve the oracle predefined error code (21000) using
$oci_error = OCIError($statement);
$oci_error["code"];
but do not know how to get the (-2006) except maybe parseing the $oci_error["message'].

nevermind, figured it out. my raise_application_error was out of range (like the error message said O=) )
changing it to -20006 (instead of -2006) works.
karn

Similar Messages

  • Code to get friend list using PHP

    Hi all ,
    I need to know how to bring the friendlist of a particullar user from it's email-id as user id in an application.
    Thanks and regards,
    Deekay.

    Hi all ,
    I need to know how to bring the friendlist of a particullar user from it's email-id as user id in an application.
    Thanks and regards,
    Deekay.

  • Get field position using PHP or JavaSript

    Hello guys! How can I get current position of some fields in Pdf form. For example, I have Pdf form with signature field. I need to get current page number and x, y position of this field. Can you give me some code example on PHP or JavaScript.
    Thanks.

    There's a big difference between doing it with JS and with PHP... Doing it with JS inside a PDF is very easy. The code will look something like this:
    var f = this.getField("FieldName");
    app.alert("Field page: " + f.page):
    app.alert("Field location: " + f.rect);
    Here I'm just outputting it to an alert window... You can do something else with it, of course.

  • How to get company code using material number

    Dear all,
              I have material number & plant on selection screen, but how do I get the company code details using MARA-MATNR ?

    HI,
    You can use a cmobination of T001K and MARC Table.
    T001K table is assignment of Plants to a company code and MARC is a table with combination of Material and Plant.
    Regds,
    Anil
    Edited by: Anil Katoch on Jul 23, 2009 6:24 AM

  • Parsing pdf form using PHP or JavaScript

    Hello! How can I parse Pdf file with form to get fields position and page # of it?
    For example, there are some pdf with structure like this:
    <</AcroForm 23 0 R/Metadata 2 0 R/Outlines 6 0 R/Pages 9 0 R/Type/Catalog>>
    endobj
    19 0 obj
    <</DA(/ZaDb 0 Tf 0 g)/FT/Btn/Ff 49152/Kids[18 0 R 20 0 R]/T(Language)>>
    endobj
    23 0 obj
    <</DA(/Helv 0 Tf 0 g )/DR<</Encoding<</PDFDocEncoding 26 0 R>>/Font<</Helv 22 0 R/ZaDb 35 0 R>>/XObject<</DSz 51 0 R>>>>/Fields[19 0 R 21 0 R 39 0 R 16 0 R 17 0 R 46 0 R 47 0 R 48 0 R]/SigFlags 1>>
    endobj
    25 0 obj
    <</BBox[0.0 0.0 72.0 20.0]/FormType 1/Length 102/Matrix[1.0 0.0 0.0 1.0 0.0 0.0]/Resources<</Font<</Helv 22 0 R>>/ProcSet[/PDF/Text]>>/Subtype/Form/Type/XObject>>stream
    1 g
    0 0 72 20 re
    f
    /Tx BMC
    q
    2 1 68 18 re
    How can I get field position from this code using PHP or JavaScript?
    Thanks.

    I solve my problem using Itext Pdf Library for Java. See here: http://stackoverflow.com/questions/19066141/itext-get-field-coordinate s-from-existing-pdf

  • I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with adminis

    I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with administration permissions?

    If your intention is to use the trial again it will not reset if you reinstall.  It will remain in its ran out state.

  • While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get

    While upgrading Adobe Creative Suite CS4 ME into Adobe Creative Suite CS5.5 Design Premium, I get an error saying This serial number is not of a qualifying product, please try another. I used to be able to get a code from customer service but I can't get to the chat. Please advise!!!!

    MoeGhazal I reviewed your account and it looks like you have have upgraded from a CS4 volume license for Design Premium to a retail upgrade of Design Premium 5.5.
    I also show that you made two purchases of CS5.5 Design Premium but the second purchase was canceled.  Please make sure you are utilizing the serial number which ends in 7886.
    If you are using the correct serial number then it is likely the installer will not recognize your volume license CS4 serial number as being valid for an upgrade.  If you can contact our support team then you can be walked through an unlocking procedure to allow you to proceed with the installation.  You can contact our support team directly at Contact Customer Care.  You may want to try installing a web browser you have not previously utilized.  It is likely a toolbar or some other software application is affecting your ability to access chat support successfully.
    If you are still unable to reach our support team then please verify the information under your account is accurate.  If you can please then update this discussion after confirming this then I can request a member of our support team contact you directly.
    Again I would recommend reaching out directly if possible as it will be the most efficient method of resolving your current error.

  • How to use : bind character in DB adapter Select Query SOA11g. Getting Error code :17003 .java.sql.SQLException: Invalid column index error

    Hi All,
    The Actual query to perform is below.
    SELECT name,number from emp  WHERE CASE WHEN :1='T' AND term_date IS Not NULL THEN 1 WHEN :1='A' AND term_date IS NULL THEN 1 WHEN :1='ALL' THEN 1 ELSE  1 END = 1;
    I have tried in DB adapter like below as a parameter for :1 as #vInputParam
    SELECT name,number from emp  WHERE CASE WHEN #vInputParam='T' AND term_date IS Not NULL THEN 1 WHEN #vInputParam='A' AND term_date IS NULL THEN 1 WHEN #vInputParam='ALL' THEN 1 ELSE  1 END = 1;
    Getting Error code :17003 .java.sql.SQLException: Invalid column index error.
    Please suggest me on using ':' bind character in DB adapter Select Query SOA11g.
    Can someone help me on this please?
    Thanks,
    Hari

    Hi,
    Could you please make sure your binding style(Oracle Positional,Oracle named..etc) of the Seeded VO and Custom Vo are same.
    This is the option you will get when you are extending your vo. So make sure that both are same.
    You can refer the below link too
    VO extension leads to "Invalid column index" exception
    Thanks
    Bharat

  • I keep getting error code 3 with a fresh sync using AUSST. Help please.

    The tool tells me the folder exists at the given path, so i'm using the command correctly.
    It's a Windows server, the path is not local to the server, but is set up as the host folder in IIS 7. I can access the website i created for this, and can see the "updates" and further folders that i have created.
    I get error code 3 when trying to synchronise, and all it does is delete the folder specified as root.
    I run the command like this:
    adobeupdateserversetuptool.exe --root="\\server\share\adobe\updates\cc"
    then choose option 1 on the menu, which is "fresh synchronisation".
    Your choice: 1
    Fresh Synchronization chosen.
    Folder exists at given root path! All the contents of the folder will be deleted
    Enter 'Y' to continue or any other key to exit: y
    Could not access the specified path.
    AdobeUpdateServerSetupTool returned with code: 3.
    "everyone" and "domain computers" has been granted full access to the folder in question, and security inheritance is on.
    Any ideas?

    I have got past the error code 3, but now I get error code 4...

  • Can I use PHP code in BC

    Yes, that is basically my question. Can I use php coding in Business Catalyst? And does BC us mysql database?
    Thank you

    Hi there, Please do a quick forum search before posting. This is asked a lot - You can even see a post in the frequently asked questions panel on the main page of this forum section.
    BC is a SAAS - Software as a service and a .Net based SQL system - It does not use PHP or mysql and you can not access the server side code.
    So to your question - that is a no I am affraid.

  • Keep getting Error Code 12 while attempting to use VXI-8360 ExpressCard

    Using Dell XPS M1530 laptop running Win XP SP3.  Everything ran great with same hardware back in September 08.  Now I am getting Error Code 12, "This device cannot find enough free resources that is can use. (Code 12)".  I have tried disabling other devices in my laptop like the Broadband card and the Media Slot with no symptom changes.  Is there a better way to understand what is going on and to get my computer back to working with the MXIExpress card? 
    Solved!
    Go to Solution.

    rhoover17,
    Are you getting this error in Measurement & Automation Explorer, or in the windows device manager?  If the device shows up correctly in device manager as a PCI-PCI bridge but is having issues in Measurement & Automation Explorer, it may be best to try resetting the Measurement & Automation Explorer database. This can be done by:
    1. For MAX 4.1 or earlier, navigate to the folder found at: C:\Program Files\National Instruments\MAX
    For MAX 4.2 in Windows XP and 2000, navigate to the folder found at:
    C:\Documents and Settings\All Users\Application Data\National Instruments\MAX\Data
    2. Rename the Data folder to Data1. If you cannot rename the folder, go to the Windows Task
    Manager and end the process called nimxs.exe and then go back and rename the folder.
    3. Now navigate to the directory \Windows.
    4. Delete the pxisys.ini and the pxiesys.ini if using MXI express.
    5. Restart the PC and launch MAX. This will cause MAX to find the installed devices again and also recreate
    the pxisys.ini and pxiesys.ini, if MXI express used. Now you should be able to identify your chassis without error in MAX.
    If this does not work, I would encourage you to try using the MXI card in a different PC if you have one available, just to make sure that this isn't an issue with the card itself.  You also may want to have a look at the thread at http://forums.ni.com/ni/board/message?board.id=270&message.id=4887&requireLogin=False, as it deals with a very similar issue that ended up being just the MXI cable plugged in backward, but good troubleshooting steps were still discussed.
    Eric K
    Applications Engineering
    National Instruments

  • Can we get the code from the project using OER

    Hi,
    i have some question about the OER (Oracle Enterprise Repository).
    when we register an artifact in OER (say wsdl file) then is there any way to get all the project code when user download the artifact.
    currentely i register one wsdl file from my OSB project in OER.
    now when i download the artifact i will get only that wsdl file.
    if i want to get all the code related to that wsdl how can i able to get that ?
    or OER is nothing but only the catalogue from where you only know which services are available for you ?
    and for using that services you manually need to download and deploy that services.
    please help me on this,
    regards,

    OER provides a channel for the automated exchange of metadata and service information between service consumers and providers. Means, it provides details about services and its consumers. You cannot download all assets(code) using one file say wsdl in your case.

  • HT3204 unable to purchase music - keep getting error code 5002 on - using Vista

    Unable to purchase songs - keep getting error code 5002 - using Vista

    I am having the EXACT same problem. It started on June 16th also. I found out that code 5002 is supposedly a billing issue. The article directed me to edit my billing information (even though it was correct). I tried to submit the new information and was told my request could not be processed, try later. I have been trying for 3 days. Was in contact with customer service. first they said it was an Itunes Stores issue with the software. they told me it was resolved. Then they had me uninstall and then reinstall Itunes, which still didnt resolve it. I am starting to think its still an Itunes Store issue. Still trying to cintact customer service about this.

  • Trying to log onto my bank get Error code: ssl_error_inappropriate_fallback_alert. Works ok using I.E.

    The above nearly says it all - but at present only getting this error on this computer on ONE of my banks. On my netbook I get this on other sites, including the virgin.net site.
    As I only get this error using Firefox I assume it is an error within Firefox.

    thanks, can you try to disable ssl scanning in bitdefender's options and see if this is making a difference? http://www.bitdefender.com/support/what-to-do-when-security-certificates-cannot-be-verified-installed-1090.html

  • How to get Listener Information using PL/SQL code

    How to get Listener Information using PL/SQL code

    user2075318 wrote:
    How to get Listener Information using PL/SQL codeThis approach (somewhat of a hack) can be used - but it does not really provide meaningful data at application layer.
    SQL> create or replace function TnsPing( ipAddress varchar2, port number default 1521 ) return varchar2 is
      2          type THexArray is table of varchar2(2);
      3          --// tnsping packet (should be 10g and 11g listener compatible)
      4          TNS_PING_PACKET constant THexArray := new THexArray(
      5                  '00', '57', '00', '00', '01', '00', '00', '00',
      6                  '01', '39', '01', '2C', '00', '00', '08', '00',
      7                  '7F', 'FF', '7F', '08', '00', '00', '01', '00',
      8                  '00', '1D', '00', '3A', '00', '00', '00', '00',
      9                  '00', '00', '00', '00', '00', '00', '00', '00',
    10                  '00', '00', '00', '00', '00', '00', '00', '00',
    11                  '00', '00', '00', '00', '00', '00', '00', '00',
    12                  '00', '00', '28', '43', '4F', '4E', '4E', '45',
    13                  '43', '54', '5F', '44', '41', '54', '41', '3D',
    14                  '28', '43', '4F', '4D', '4D', '41', '4E', '44',
    15                  '3D', '70', '69', '6E', '67', '29', '29'
    16          );
    17 
    18          socket  UTL_TCP.connection;
    19          txBytes number;
    20          rxBytes number;
    21          rawBuf  raw(1024);
    22          resp    varchar2(1024);
    23  begin
    24          socket := UTL_TCP.open_connection(
    25                          remote_host => ipAddress,
    26                          remote_port => port,
    27                          tx_timeout => 10
    28                  );
    29 
    30          --// convert hex array into a raw buffer
    31          for i in 1..TNS_PING_PACKET.Count loop
    32                  rawBuf := rawBuf || HexToRaw( TNS_PING_PACKET(i) );
    33          end loop;
    34 
    35          --// send packet
    36          txBytes := UTL_TCP.write_raw( socket, rawBuf, TNS_PING_PACKET.Count  );
    37 
    38          --// read response
    39          rxBytes := UTL_TCP.read_raw( socket, rawBuf, 1024 );
    40 
    41          UTL_TCP.close_connection( socket );
    42 
    43          --// convert response to varchar2
    44          resp := UTL_RAW.Cast_To_Varchar2( rawBuf );
    45 
    46          --// strip the header from the response and return the text only
    47          return( substr(resp,13) );
    48  end;
    49  /
    Function created.
    SQL>
    SQL> select tnsping( '10.251.93.30' ) as TNSPING from dual;
    TNSPING
    (DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=0)(ALIAS=LISTENER))
    SQL> select tnsping( '10.251.95.69' ) as TNSPING from dual;
    TNSPING
    (DESCRIPTION=(TMP=)(VSNNUM=0)(ERR=0)(ALIAS=LISTENER))
    SQL>

Maybe you are looking for

  • Can Not Update Software

    Pls, My HTC one M8 is still on 4.4.3 kit Kat. I want to update it to 4.4.4 kit Kat. All attempts has failed as the phone keeps telling me I can only update while on CDMA mode. I live in Nigeria and my gsm carrier is not a CDMA, but only gsm. Anything

  • ADAPTER.HTTP_EXCEPTION / HTTP 302 Moved Temporarily

    Hello all, I have an RFC->XI->Web Service (SOAP) synchronous scenario. I'm trying to send a message from the the RFC, and in the message monitoring (SXMB_MONI) I'm getting this error message:   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

  • Face time activation - an error occurred while verifying your email

    i can't get facetime to work on my iPad - i go to settings add my account details and password (i know they are correct as i just logged onto my apple account and they worked fine) - and when i click on "next" the message that comes up is "an eror oc

  • TS3899 Having trouble getting email from my blue yonder account.

    ipad says searching for mail and then times out with error message, "server not working check settings". have checked settings and deleted account and re installed but still having trouble. Also tried power on off. Can send mail ok. Any help would be

  • Integration Engine Persistance Layer Analysis

    Folks, These are the entries in Persistance Layer Analysis <i><b>Current Table Load       Number of Table Entries                                                 338,417       Maximum Number of Table Entries                                         89