ORA-06550 for a process in the Page that discusses

Hello
I'm trying to create a process to update some data, but I know very well the syntax of the APEX for the procedures.
I write the code in a process of 'Treatment of the Page' section.
The code is:

DECLARE w_TPS NUMBER (9.7);
DECLARE w_TVQ NUMBER (9.7);
DECLARE w_val_tot_lignes NUMBER (15.2);
Start
-Lire % GST
SELECT NUM_PARAMETRE FROM w_TPS
OF TBL_PARAMETRES
WHERE COD_PARAMETRE = 'GST ';
-Lire % QST
SELECT NUM_PARAMETRE FROM w_TVQ
OF TBL_PARAMETRES
WHERE COD_PARAMETRE = 'QST;
-Calculate total invoice
SELECT SUM(NUM_HEURES * VAL_TAUX) FROM w_val_tot_lignes
OF TBL_FACTURES_DETAIL
WHERE ID_FACTURE_MASTER =: p225_id_facture_master;

UPDATE tbl_factures_master
SET VAL_FACTURE_NET = w_val_tot_lignes,
POU_TPS = w_TPS,
VAL_TPS = w_val_tot_lignes * w_TPS;
POU_TVQ = w_TVQ,
VAL_TVQ = w_val_tot_lignes * w_TPS;
VAL_FACTURE_TOTAL = (w_val_tot_lignes * w_TPS) + (w_val_tot_lignes * w_TVQ) + w_val_tot_lignes
WHERE id_facture_master =: p225_id_facture_master;

end;

The error:
ORA-06550: line 3, column 1: PLS-00103: encountered the symbol "DECLARE" when expecting one of the following values: start type of the subtype of the function pragma < an ID > < a double quote delimited identifier > removal of current cursor exists before the symbol 'start' is substituted for 'SAID' continue. ORA-06550: line 4, column 1: PLS-00103: encountered the symbol "DECLARE" when expecting one of the following values: function < an ID > pragma procedure subtype type < to start a double-quotes

I ran across this myself but I forgot the real reason.

idea 1: hidden character
solution: retype everything by hand.
Make sure you do a 'ctrl-a' to 'select all' before clicking on 'delete' so that it picks up this hidden character.

idea 2: bad SQL
If I remember correctly, there was a typing error in my table name or column

idea 2 b: bad SQL
I don't see the name of schema for tables in one of your SELECT or UPDATE instructions.
Try to add them.

Run each of the SELECT/UPDATE with SQL Developer instructions to see if you notice a bug in the SQL code.

Tags: Database

Similar Questions

  • Bug? -Validations in the processing of the Page

    I think I found a bug in the Validations for the processing of the Page.

    If I create a validation of type "Point in 1 Expression contains only characters of the Expression 2", it's as it should be and catches any invalid character.

    But, if I create a new liquidation of type 'Error of function return text', this validation works and another one does not.

    It is the expression of validation 1 for type validation "function return error text:

    BEGIN
    IF: P42_LLP_DECIMAL_DEG_LAT IS NOT NULL
    THEN

    IF: P42_LLP_DECIMAL_DEG_LAT <-90
    THEN
    RETURN "decimal latiitude must be between - 90.0000000 to 90.0000000';
    ON THE OTHER
    NULL;
    END IF;

    END IF;
    end;

    But, how to integrate the validation of character?

    To be honest, I don't think you should! "Point in 1 Expression contains only characters of the Expression 2" does not guarantee that you have a number, which I think is the intent? (Try something like "5-0"...) There is a built-in "..." is digital""validation"but I have had problems with it. I would use a single validation "function return a Boolean:

    begin
    
      return nvl(to_number(:P42_LLP_DECIMAL_DEG_LAT), 0) between -90 and 90;
    
    exception
    
      when value_error or invalid_number
      then
        return false;
    
    end;
    

    [With ' decimal latiitude must be \[a number\]-90.0000000 to 90.0000000' as the error message in the validation, using the "..." a number...' bit if you want to insist on this.

  • print all of the pages that have highlights

    My apologies if this isn't apparent. I've searched and searched. Acrobat X Pro running. At 1150 pages in pdf format. Want to search for and highlight several different words and phrases - then print ONLY the pages that have a word or phrase. Trying to figure out how to use bookmarks to do this - or something. Seems that this is a common need. Is it possible - without scripting something (that I have no time to learn how to make this project). Thank you.

    Hi swtrader2,

    I found this older article which may be just what you're looking for. You can use the tools of Protection of Document (drafting).

    The key is to not do the second part of the drafting process in two steps. The first step is just words; the second removes them from the document.

    The research and marking of multiple words in a PDF document

    You will notice that some option names are slightly different in your version of Acrobat (for example, you select text search & delete in the Protection component in the Toolbox). But I think you get the basic information you need of this clever workaround.

    Eager to learn how it works for you.

    Best,

    Sara

  • all the pages that load do not match the screen have to scroll on the side to side to read

    all the pages that load do not match the screen have to scroll on the side to side to read

    all the pages that load do not match the screen have to scroll on the side to side to read

    =================================
    Try the following...

    View / Zoom... reduce the percentage

    The Zoom option can also be accessed from
    your at the bottom status bar.

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - to proceed at your own risk

  • "Since this update, everytime I open a window in a window, I get a box at the bottom of the page that comes up and asks me if I want to: open or save. Why this page open and not let me do my work?

    This box I cannot do what I want on the pages that I am. For example, I can't print... HELP :)

    Hello

    try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    ________________________________________________________

    and change how to get updates for you to choose what you install to stop it happening again

    You may need to install one at a time to find the problem, we

    and make sure that you do not use Windows Update to install the drivers of 3rd material part

    Find them directly in the hardware manufacturer

    and when you see the problem update right click on it - UAC prompt - then hide it

    http://www.bleepingcomputer.com/tutorials/tutorial140.html

    Download updates but let me choose whether to install them - if you select this option, Windows will download the updates on your computer, but not install them automatically. If you want to install updates, then you must install them manually. You should only select this option if you have a reason to not install updates automatically. Only advanced users should use this option.

    Check for updates but let me choose whether to download and install them - if you select this option, you'll be alerted when there are new updates available for download and install. You can then choose to download and install the updates that you want. This option should really be reserved for people who know exactly which updates they need, or those who have little access to the Internet.

    _________________________________________________________

  • How to find the page that contains the downloads?

    I am connected to my account valid creative cloud. All I want to do is go to the page that allows me to make downloads of Acrobat, Photoshop, etc..  For the life of me I can't find the page!  Help, please.

    Log on to https://creative.adobe.com/apps

  • I would like to change the page that appears automatically when I open a new tab - this isn't my normal homepage, and I would do google

    My homepage is on facebook, but when I open a new tab, I wish that the page that opens on this tab to be Google. Inadvertently, I changed the default page to Pogo.games during a game download. How can I change to Google?

    You can use NewTabURL extensions to accomplish the same thing.

  • Should I open the pages that have been delivered safely?

    Original title: CANCEL = Popup = I want TO OPEN the PAGES THAT HAVE BEEN DELIVERED safely, ABOUT

    CANCEL = POPUP = I WANT TO OPEN THE PAGES THAT HAVE BEEN DELIVERED SAFELY, ABOUT

    Hello


    1. which browser is installed on the computer?
    2. were there any changes (hardware or software) to the computer before the show?
    3. What is the exact error message?

    Perform the steps mentioned below, if you have Internet Explorer installed on the computer.
    a: Click on Tools > options Internet .
    b
    : click on the Security tab > custom level button
    c
    : Navigate to and Select the option to display mixed content.
    d:
    click apply , then ok.

    Hope this information helps.
  • I get a warning at the bottom of the page that warns against programming cross-how can I turn off this label

    Original title: cross stitching
    I get a warning at the bottom of the page that warns of a volleyball how the hell this label

    montanacowgirl,

    Do you mean the scripts? If so, please see the following:

    http://Windows.Microsoft.com/en-us/Windows7/how-does-Internet-Explorer-help-protect-me-from-cross-site-scripting-attacks

  • How to count the page that is provided on page element

    How to count the page that is provided on page element

    Hi durgeshj41842015,

    the kDocBoss has an IPageList interface with GetPageCount() function.

    Markus

  • The page that merges two 300 PDFs in order

    The page that merges two 300 PDFs in order... I have two 300 (of a book) PDF files I have scanned the page. These documents were two-sided. My scanner scans only one side. So, they have analyzed as page 1, 3, 5, etc. and page 2, 4 and 6. I need to merge them into the order. Y at - it an easy way to do in addition to reorganize each page individually, which would take forever? !!! Help! (Acrobat Pro XI)

    Read this:

    http://www.PlanetPDF.com/developer/article.asp?contentid=collating_pdfs_using_javascrip&RH % 20s_fa

  • My swf needs to know the url of the page that it is integrated into

    Hey all,.

    I want to know the page that is embedded in the url, but I don't want to use FlashVars to pass into it manually. I would like to than the swf file to detect itself without additional external code. Is this possible?

    Thank you!

    You can check the url of the swf file using this.loaderInfo.url.

    to check the html url integration, you will need to use javascript in the html code and can then externalinterface to use actionscript to retrieve this value in your swf file.

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • Error in the processing of the page management

    Hello

    I have two text field 1. : P1_User_id and 2. : p1_User_Name.

    I wrote a page processing small anonymous block to remove the user from the database if the user id does not exist else it should display the user message is not output id.

    Declare

    number of v_cnt;

    Begin

    Select count (*) in the v_cnt of user_table where user_id =: p1_user_id;

    IF V_CNT > 0 THEN

    Remove from user_table where user_id =: p1_user_id;

    end if;

    end;


    If dones userid does not close, I want to display the message that this user id does not close how.


    Thanks in advance

    Ravi

    Hi Bhushan10,

    Bhushan10 wrote:

    I have two text field 1. : P1_User_id and 2. : p1_User_Name.

    I wrote a page processing small anonymous block to remove the user from the database if the user id does not exist else it should display the user message is not output id.

    If dones userid does not close, I want to display the message that this user id does not close how.

    "After presenting before treatment" validation to create or modify your code to:

    declare
    
      v_cnt number;
    
    begin
    
      select count(*)
        into v_cnt
        from user_table
      where user_id=:P1_USER_ID;
    
      if v_cnt >0 then
        delete from user_table where user_id = : P1_USER_ID;
      else
        apex_error.add_error (
            p_message          => 'The user id does not exist!',
            p_display_location => apex_error.c_inline_in_notification );
      end if;
    
    end;
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • How can I eliminate the scroll for different elements of the page bar?

    I downloaded DreamWeaver CC 2015. I had worked through a tutorial on DreamWeaver CS3, which included a cap, a sidebar, and a main display area. The main display area was scrollable, but the other sections were not. Unfortunately, I lost this tutorial, and I don't know how the non-defilement sections have been fixed. Now, I'm trying to find out how remove (turn off) the scroll bar on some areas of the page. And since I'm on bootstrap.css, the style settings may prevent my being able to eliminate scrolling. I don't seem to be able to substitute the bootstrap.css styles, and I guess that's the way that DreamWeaver is designed. What is the magic trick to do this?

    Ben Pleysier wrote:

    engineerbob wrote:

    The section that I wanted the scroll bar is the one with the H2 heading + paragraph.

    Bob,

    I see that you use for your development, which is a good thing because it also allows delicate design Bootstrap. Problem is that - scroll bars are not useful in RWD, especially when it comes down to the smaller size of the screen.

    I don't particularly like the scroll bars myself, but the 'Tweet' is popular and use it. On small areas and within the limits I didn't see no problem in smaller screens.

Maybe you are looking for