Show the object and the line number, where the error happens in Forms

Hi!
Al lot of our programmer use the ugly when others clause to raise messages like "error <sqlcode> happens in ....". Often this hides the really error in some underlying procedures. Is it possible to call the error stack from forms like in 10g database dbms_utility.format_error_backtrace? Actually FRM-40735 hides all this information. This should be work for client and database pl/sql errors!
With kind regards

First of all, send every programmer in your organization a message to STOP doing that. I am afraid there is nothing you can do when you have to call some stupid code from your form that contains the when others then... sequence.
Below is an email I sent out just two months ago. I'll share it with you:
Hi _______,
I looked over the _________ package to try to determine why it was so difficult to find the source of the problem. The problem was that the line number reported when the job failed was line 326, which is the Raise command at the end of the __xyz__ procedure.
When someone writes:
      exception when others then raise;it causes line number reporting to fail when an unexpected Oracle error is encountered. Furthermore, the line does absolutely no good, because Oracle will automatically raise unhandled errors without that code.
The only thing that code does is cause problems when someone looks for the source of a failure. Without that code, job failures can be located in just a few minutes.
That same code sequence is repeated three times in the _________ package. The problem may also exist in the __abc___... functions that the _______.lookup_xxxl function calls, since no line numbers were reported from there, either. It would be very helpful if you would remove the problem code, and PLEASE instruct everyone on your staff to never use that sequence anywhere.
- - - - - - - - - - - - - - - - - - - - - - end of email - - - - - - - - - - - - - - - - - - - - - -
Now, in addition, you can trap FRM-40735 in your on-error trigger and then display the message found in DBMS_ERROR_TEXT. In fact, you might try the format_error_backtrace from there, too.

Similar Messages

  • I have Acrobat 10 and was getting update error messages so I finally did what Adobe recommended and uninstalled Acrobat.  Now I can;t re-install the program and get a number of different error messages.  Help I need to read pdf docs!

    I have Acrobat 10 (10.1.9) that came in the Creative Suite CS5.  I have received numerous messages about failed updates so finally did what was recommended by Adobe and uninstalled the program.  Now I can't re-install it.  These are the error messages I get.  Help! 
    Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW065, DW066 ...
       -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 2 warning(s)
    WARNING: DW066: OS requirements not met for {AC76BA86-1033-F400-7760-000000000005}
    WARNING: DW065: Display requirements not met for {53CF3920-648B-4F99-8D05-6A6C5298F57B}
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: Error 1328.Error applying patch to file C:\Config.Msi\PTDB05.tmp.  It has probably been updated by other means, and can no longer be modified by this patch.  For more information contact your patch vendor. 
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1328.Error applying patch to file C:\Config.Msi\PTDB05.tmp.  It has probably been updated by other means, and can no longer be modified by this patch.  For more information contact your patch vendor. 
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed

    I did it through CS, I think.  I used the installation disk and selected Acrobat.  It loads and then gives me all kinds of error messages and then uninstalls itself.

  • I took the advice of one of the people in the forum and changed a number in the registry from a 10 to a 20 to give more time for apps to load and now it is too slow. I need to change it back but I do not know how, please can someone help me?

    this advice came from someone in a solved part of the forum, who had a long list of computer solutions.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Retrieving line-number of the last error

    Hello !
    Is it possible to access the line number where the last error in a PL/SQL procedure occured ?
    At example:
    CREATE OR REPLACE PROCEDURE do_stupid
    IS
    tempNum Number;
    BEGIN
         FOR i IN 1..5
         LOOP
              temp := sysdate;
         END LOOP;
         tempNum := 2;
         tempNum := tempNum / 0;
         tempNum := 3;
    EXCEPTION
    WHEN OTHERS THEN
         -- i want to access the line-number of the error "tempnum / 0"
    END do_stupid;
    Thank You
    Florian

    If you are just trying to debug one procedure, eliminating the exception section and running it from sql*plus will cause it to return an error message that includes the line number. But this won't work if you are trying to trap the error and log it in some table or some such thing.
    SQL> CREATE OR REPLACE PROCEDURE do_stupid
      2  IS
      3    tempnum NUMBER;
      4    temp    DATE;
      5  BEGIN
      6    FOR i IN 1..5
      7    LOOP
      8      temp := SYSDATE;
      9    END LOOP;
    10    tempnum := 2;
    11    tempnum := tempnum / 0;
    12    tempnum := 3;
    13  END do_stupid;
    14  /
    Procedure created.
    SQL> EXEC do_stupid
    BEGIN do_stupid; END;
    ERROR at line 1:
    ORA-01476: divisor is equal to zero
    ORA-06512: at "SCOTT.DO_STUPID", line 11
    ORA-06512: at line 1

  • Profit Center population in the Vendor and Customer Line items

    hello
    our client is asking for  getting profit center in the vendor and customer line items  where in the view FBL5n and fbl1n we are not getting the profit center populated - in the new gl i understand that there is a standard report based on the gl account.
    but our business is not satisfied with the report and expecting report at profit center level.
    Can any one suggest any way of doing this.
    regards,
    Vijay

    Dear Vijay,
    Let me provide you my view of solutioning for this. This is an enahcement that needs to be done
    1. You can get the profit center from the given vendor and customer line item at the time of posting, using an enahcement you will be able to capture it.
    2. Existing the profit center field is not populated in the BSIK,BSAK,BSID and BSAD tables
    3. Hence, in the same enhancement once you capture the profit center , you can write the code that profit center is updated in these tables also.
    4. This will help you to do the vendor line item wise selection in the FBL1N,  FBL5N profit center wise.
    Constraints of this solution:
    The only constraint remains where in the for a given document if there are multiple profit center, then the system will do the splitting profit center wise for a vendor line item, which will not populate the profit center in those tables as there is only one field available in the bsid etc.. tables.
    This basically would be the one the soltuion where in as seeen from the end user ther eis no change in the front end interface , the way they are doing always they can do.
    You need to also take care the % of document splitting means cross profit center postings /cross document splitting charactericstics postings and the volume involved in this. so that you can suggest this to your client.
    Regards,
    Bharathi.

  • How do I set up the "Objects and Attachments"

    Hi .... I'm new at WorkFlow (and SAP for that matter) and have inherited a WF that is already built.  In several of the steps I can see "Objects and Attachments" on the work item screen where a User can click to be directed to a transaction. For example, on one screen the User can click on "Incoming Invoice: 5105601690" to be directed to the Invoice Display Screen that is populated with information for that particular invoice (5105601690).
    I am looking at the WF using TCode SWDD and cannot figure our how the original developer set this up.  So my question is ..... for a particular WF step, how do you set up the "Objects and Attachments: area so that the User will be directed to a particular transaction when he/she clicks on it.
    Thanks in advance, and sorry for such a "juvenile" question.
    Dan A

    Thanks for your reply Rajkumar,
    I am looking at the screen you have directed me to.  Business object is BUS2081 (actually it is ZMMWBS2081 which is a customized version BUS2081) Method is "Display" and Attribute is "InvoiceDocNumber".  How do I know by looking at this that "Display" means Display Invoice?  What if I wanted to display the PO instead?
    Thanks for the "spoon feeding".
    Dan A

  • How to read a file and save the line number of  the last line read?

    Hi,
    I am using RandomAccessFile and file as my class. I am trying to read a log file as it gets updated and print it out to a java window. i so far have the framework setup but dont know how to save the last line number so.
    i need this variable so i dont reprint out the same line numbers to the java window. please advise.
    thanks!

    hi,
    i now have the line number of the last line read, but now when i reopen the file, how can i skip that number of lines?
    thanks,

  • How do I get the line number of the sales order and how do I save info?

    I am trying to create a form that is able to be called from a right click on the sales order matrix and will display some of the user defined fields associated with the line.
    I've managed to create a form and add a menu option to the right click but I'm now stuck because of the following:
    1. How to I know which line the user selected? I need the REAL Line Number from the RDR1 table because I need to use it on the data filter of the form.
    2. I hard coded a line to just to see if I can load a form and it appears to load and bind the data to the controls, but how do I save changes made? There are several text fields, combo boxes, and a picture control.

    Hi Coleman,
    1. The pVal returned form a menu event does no provide the LineId, but a pVal from a Item Event does. I suggest you use a DoubleClick or Control + Click on the Line to trigger an event that you can catch and use to launch your form.
    2. Please note that if the Sales Order line is closed you'll not be able to update the values. If it's not, then you need to instantiate a Sales Order document, get the correct document with the GetByKey method and update whatever fields you need.
                    Dim oSalesOrder As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oOrders)
                    If oSalesOrder.GetByKey(docentry) = True Then
                        oSalesOrder.Lines.SetCurrentLine(pVal.Row - 1)
                        oSalesOrder.Lines.UserFields.Fields.Item("U_MyUDF").Value = ""
                        oSalesOrder.Update()
                    End If
    Regards,
    Vítor Vieira

  • How do I let lightroom show the actrual number of files in a map and not a number including the total of all submaps?

    How do I let lightroom show the actrual number of files in a map and not a number including the total of all submaps?

    If by "map" you mean directory or folder, in the Library menu there is a toggle for "show photos in subfolders".

  • My email will only show the sender and subject lines, but no content.  What can I do?m

    My email will only show the sender and subject lines and does not show the content of received emails on my ipad.  How can I fix this?

    I am having the same problem. As recently as this morning, I could read entire hotmail emails on my iPhone 4  now, I can see only the sender &amp; subject. What us up? Any solutions? Thank you.

  • My mac Pro Tower shows some green and reddish lines on the monitor and gives report of unresponsive processor

    My mac Pro Tower shows some green and reddish lines on the monitor and gives report of unresponsive processor

    And never heard of one case of AHT finding or reporting a real GPU related problem.
    It does sound like the graphic card and best way to know is to swap it out, even if you have a PC card around.

  • Get line that contains and then get the second and fourth line after that.

    So I have a text file and I want it to find all the lines in the file that contain an @ symbol and then I want it to get that line and the line second and fourth from that line. Then I would export it like this:
    $linewith@ + ":" + $secondline + ":" + $fourthline
    Finding the lines with an @ symbol is easy, but how would I tell it to get the second and fourth line after the line with an @ symbol?
    So I would get the lines with something like this:
    foreach ($line in [System.IO.File]::ReadLines($filename)) {
    if($line.contains("@")){}

    That worked perfectly thanks man! Here is the entire code. I'm sure it could been cleaned up. I'm still learning powershell. 
    $username = "Username"
    $password = "Password"
    $url = "http://URL"
    $ie = New-Object -com InternetExplorer.Application
    $ie.visible=$false
    $ie.navigate($url)
    while($ie.ReadyState -ne 4) {start-sleep -m 100}
    $ie.document.getElementById("username").value = "$username"
    $ie.document.getElementById("password").value = "$password"
    $ie.document.getElementById("click").click()
    start-sleep 20
    $ie.Document.body.innertext | Out-File -FilePath c:\web.txt
    $links = $ie.Document.getElementsByTagName('A')
    $logout = $links | where {$_.innerText -eq 'logout'}
    $logout.click()
    start-sleep 5
    (gc C:\web.txt) | ? {$_.trim() -ne ""} | set-content C:\web.txt
    ( Get-Content C:\web.txt | Select-Object -Skip 2 | ForEach-Object { $_.TrimStart( " " ) } ) | Set-Content C:\web.txt
    start-sleep 5
    $fileContents = Get-Content C:\web.txt
    foreach ($line in $fileContents) {
    if ($line -like '*@*') {
    $line + ":" + $($fileContents[$line.ReadCount+0]) + ":" + $($fileContents[$line.ReadCount+3]) | Out-File -FilePath c:\finish.txt -Append

  • HT3819 how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    Oops, I forgot a step between 7 and 8 ... before syncing the iPhone I need to explicitly send the document back to iTunes on the iPhone, or the changes won't come over at all ...
    and then one more thing ... Numbers on iOS does NOT recognize a number of key features of the OSX app, such as conditional formatting ... so after editing my document on iOS and syncing it back to OSX on my Mac, all of those settings are lost (no more conditional formatting, have to do it all over again)
    What am I doing wrong ?

  • Is there a way to create a heading with shading behind the text and thin lines above and below?

    I'm working with InDesign CS6, Windows 7.
    Is there a way, using paragraph rules, to create a heading with shading behind the text and thin lines above and below the text?
    I'd like to create headings that look like these:
    Thank you!

    I have a document where I almost do such, but without the fill. I use a Head Style which Spans Columns for this instance; it allows the haeds to flow and fill the width.
    Paragraph Rules above and below are turned on with plenty of offset.
    I tweaked my setting to accomodate your need - It required only one instance, not above and below, and changing the stroke to a double stroke. 
    It may be necessary to create a custom stroke to modify the proportion of stroke vs fill. There is a difference of thin-thin and  thick-thick, neither of which seemed perfect but might be dependent on the Character height.
    Creating custom strokes is accomplished via the Strokes Panel.

  • How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    Use a normal question, and do not add the score to the total score. That will give you a correct score at the end. But the total number of questions, that system variable will still take into account all questions. You'll need a user variable, and calculate its value by subtracting 1 from the system variable cpQuizInfoTotalQuestionsPerProject. Same for the progress indicator if you want to show it?
    Customized Progress Indicator - Captivate blog
    If you want to allow Review, you'll have to tweak as well. You didn't specify the version, and all those questions I now mentioned.
    And my approach, since you talk about only one question: create a custom question, because you'll have total control then.

Maybe you are looking for

  • Updater ipod service error

    we needed an update for our ipod video because it has an a folder with an exclamation mark. we followed the steps below that were found on www.apple.com/support Install the latest iPod Software. After your download is finished, install the iPod Updat

  • Tax calculation (excise duty and purchase tax) issue

    Hi friends, we want to automate MIRO. we are  using BAPI ( BAPI_INCOMINGINVOICE_CREATE ). while posting that does not propose excise duty ( Modvat ) amount and sales tax component is calculated on basic price instead of Basic plus Excise. we are usin

  • TS3700 why does my ipod suddenly stop playing

    Why does my ipod suddenly stop playing?

  • Oracle 9i database and compatible OS

    I have installed oracle 9i database in windows XP. Which is the compatible OS for installing oracle 9i database and how to initiate http server in the local machine. I could not able to start http server for enabling isqlplus to clients. please tell

  • Smtp; 551 5.7.1 relaying denied - new secondary domain does not receive email from internet

    Exchange 2007 smpt error "smtp; 551 5.7.1 relaying denied" Inbound email sender gets this error when trying to send to secondary domain. This is a single server exchange setup. Here is what we have done: #1 We have added a new policy for the new doma