Trigger showing as invalid

hey guys,
trying to create a trigger which should insert values into a table when another table gets updated, as well as trigger of a sequence of increasing an ID column by 1.
my trigger however shows as invalid and aqua data studio shows following error message:
"2     30     PL/SQL: ORA-00928: missing SELECT keyword"
trigger:
CREATE OR REPLACE TRIGGER "NIKUO"."z_nxpFTEtoCost_T1"
BEFORE INSERT OR UPDATE ON ODF_CA_COSTPLAN
FOR EACH ROW
WHEN (
old.ms_nxp_convert = 1 AND old.ms_nxp_put = 'ms_fte'
BEGIN
INSERT INTO z_nxpFTEtoCost (:new.id, cp_id, date_stamp)
VALUES ((select z_nxpFTEtoCost_S1.nextval into id from dual), :new.ID, SYSDATE());
END;
any ideas?
thanks,
mike

I think this should work:
create or replace trigger "NIKUO"."z_nxpFTEtoCost_T1"
  before insert or update
  on odf_ca_costplan
  for each row
  when(old.ms_nxp_convert = 1 and old.ms_nxp_put = 'ms_fte' )
begin
  insert into z_nxpftetocost
                id, cp_id, date_stamp )
       values (
                z_nxpftetocost_s1.nextval, :new.id, sysdate );
end;
/:new.id in column-list should be id
Message was edited by:
RemcoGoris
null

Similar Messages

  • I would like to know how to get my iphone on if it goes into a no service mode and shows as invalid sim, I would like to know how to get my iphone on if it goes into a no service mode and shows as invalid sim

    I would like to know how to get my iphone on if it goes into a no service mode and shows as invalid sim, I would like to know how to get my iphone on if it goes into a no service mode and shows as invalid sim

    actually I found the solution :
    http://www.igeneration.fr/itunes/astuce-votre-historique-d-achats-itunes-12056
    it's in french, but the images and google translate will be enough
    hope that helps for the others having the same kinda problem

  • How to purchase apps in App Store? When I am trying to buy those apps, it is asking for my card details. I have entered my debit card number and then it asked for 3 digit security code. I have entered cvv secure code but it is showing an invalid security

    How to purchase apps in App Store? When I am trying to buy those apps, it is asking for my card details. I have entered my debit card number and then it asked for 3 digit security code. I have entered cvv secure code but it is showing an invalid security

    Debit cards are no longer accepted in the iTunes Store, it seems. The current valid payment methods are listed here:
    http://support.apple.com/kb/HT5552
    You can try contacting the iTunes Store and asking if there is any way to use your card, but they probably will tell you that it's not possible.
    http://www.apple.com/emea/support/itunes/contact.html
    Using a debit card in any online service where it stores your card is a bad idea in any case since if someone gains access to your account in the service, they can quickly drain your bank account. Credit cards limit your liability, as do prepaid iTunes cards.
    Regards.

  • I have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    i have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    Who was your original carrier; did you call them to ask them to unlock your phone, and are you aware of what their unlock policy is (THey may only unlock for international sims and not US sims

  • My Registration Key shows as invalid.

    I just purchase Quicktime Pro and the registration key provided on my reciept shows as invalid. I know that I entered it properly because I copied and pasted it into the registration window. I have tried typing it in and resarting the computer. It is impossible to find a phone number to talk to a human being regarding this problem. Any ideas out there?

    Any ideas out there?
    Usual reasons:
    1) Wrong NAME entry
    2) Wrong NUMBER entry
    3) Purchase for wrong PLATFORM

  • ORA-04098 trigger"BANKTRAN_BEF_DEL" is invalid and and failed re-validation

    Hey Experts,
    I created follwoing trigger successfully...
    create or replace trigger BANKTRAN_BEF_DEL
    before delete on BANKTRAN
    declare
    weekend_error EXCEPTION;
    not_authentocated_user EXCEPTION;
    begin
    if TO_CHAR(SysDate,'DY') = 'SAT' or TO_CHAR(SysDate,'DY') = 'SUN' THEN
    RAISE weekend_error;
    end if;
    if SUBSTR(User,1,3) <> 'ATN' THEN
    RAISE not_authentocated_user ;
    end if;
    EXCEPTION
    WHEN weekend_error THEN
    RAISE_APPLICATION_ERROR (-20001,
    'Deletions not allowed on weekends');
    WHEN not_authentocated_user THEN
    RAISE_APPLICATION_ERROR (-20002,
    'Deletions only allowed by authentocated users');
    end;
    but when deleting the records using query delete from BANKTRAN
    getting the below error
    ORA-04098 trigger"BANKTRAN_BEF_DEL" is invalid and and failed re-validation
    Edited by: SShubhangi on Jan 7, 2013 4:21 PM

    Alright.
    Now Try the DML that causes the Trigger to fire.
    And post the details.
    PS:- Please use {noformat}{noformat} before and after the SQL statements/results or code samples.
    It makes post more readable and you get better help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Trigger position is invalid??? pxi-5102 digitizer

    Im currently trying to set up 2 channels to read at 8MS/s a peice for 1 second. Im getting the error " Trigger position is invalid." altho.. I dont even see a trigger position option from where I am gettin the error. Im getting the error at the Scope Horz Config VI. I have a picture of the setup Im useing, please le me know if im doing somthing wrong, thank you veyr much, im very puzzled over this.
    -Mark

    The 5102 cannot have more pretrigger points than it has onboard buffer memory - 663,000 bytes. By default, the trigger position is 50%, or halfway through the buffer. Taking 8 million points/channel on both channels allows you 331,500 points/channel or a maximum trigger position of about 4%.
    Set the trigger position using the reference position input of niScope Configure Horizontal Timing.vi. If you want to always be safe, use zero.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • TS1544 I forgot my Keychain Password. As I follow the steps, after clicking ""Reset to my default Keychain""a new window showing ""UNIX[Invalid argument]"". Give me a solution to reset my Keychain Password.

    I forgot my Keychain Password. As I follow the steps, after clicking ""Reset to my default Keychain""a new window showing ""UNIX[Invalid argument]"". Give me a solution to reset my Keychain Password.

    DO A BACKUP FIRST
    Use your recovery partition so you can reset everything.(power up up holding the COMMAND R keys and restore OS X You can do a restoration and start from square one.
    Your profile does not disclose the version of OSX but from the forum you posted in I assume your are running 10.7 Lion, which is wnat a Mac uses.You have listed in your profile iOS and a iPhone, iOS is used for iPhones, iPads, iPods...mobile devices, and is quite different from OSX which is used by Mac computers.
    As well as the year and model ID of your mac. (You can find this info by clicking on the Apple logo in the menu bar>About this Mac>more info/system profile (depending on which OSX you are using) then posting it, so that we can eliminate the "guessing" of of how to possibly provide help/advice/suggestions to you
    Without this info it is difficult to help someone reading this post to offer advice/suggestions.

  • Why its showing error : Invalid Object Name 'table name' when we try to insert data ?

    Hi,
        When i try to insert data in the database with the following query
                    con.Open();
                    cmd = new SqlCommand("insert into good(ID,Name) values('" + textBox1.Text + "','" + textBox2.Text + "')", con);
                    cmd.ExecuteNonQuery();
                    MessageBox.Show("Insert success");
                    con.Close();
        its showing following error Invalid Object Name 'good'

    Use 3-part naming like: MyDatabase.dbo.good(ID,Name) .
    Also consider using stored procedure for database INSERTs.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • SQLServer migration: trigger 'MD_PROJECTS_TRG' is invalid

    Did anybody else come across this? I'm trying to migrate some objects from SQL Server, but cannot capture the data base. I did everything as the help says:
    -Created a user to migrate (MIGRACAO) and a user to be the destiny of the migration (INFOAC) in the oracle database.
    -Created and connected both users previously created in SQLDeveloper.
    -Created and connect a user to sqlserver (MS_INFOAC) in SQLDeveloper.
    When trying to capture the database, a window pops up, I wait a long time, but nothing heappens, just the close button is enabled, with no objects in the grid. So I supose that the capture failed, or somthing like it.
    When I close it, I have the folling error in the migration log:
    oracle.dbtools.metadata.persistence.PersistenceException: ORA-04098: trigger 'MIGRACAO.MD_PROJECTS_TRG' is invalid and failed re-validation
    I inspected the MD_PROJECTS_TRG trigger from the user MIGRACAO, and it is just this:
    create or replace TRIGGER "MD_PROJECTS_TRG" BEFORE INSERT OR UPDATE ON MD_PROJECTS
    FOR EACH ROW
    BEGIN
    if inserting and :new.id is null then
    :new.id := MD_META.get_next_id;
    end if;
    END;
    Trying to compile it I got this compiler message:
    Error(7,20): PLS-00905: object M_SQLSERVER.MD_META is invalid
    Alright, then I inspected the MD_META object, and I have notice that its an unsual PL/SQL Package, as you can see:
    create or replace
    PACKAGE BODY "MD_META" wrapped
    a000000
    1
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    b
    59a 327
    yKgUGt13cb4L+
    Trying to compile this I got these two errors:
    Error(1): PLS-00908: The stored format of MD_META is not supported by this release
    Error(22,2): PLS-00707: unsupported construct or internal error [2702]
    And not only this package, but another 2 have the same errors. I'm afraid I cannot use the migration tool because any kind of incompatiblity.
    SQLDeveloper: 1.1.2.25
    Oracle: 9.0.2.4

    Why would you want to migrate to 9.0.2? It is well beyond its support period. Surely any new project should be using 10g?
    As it happens, you don't have to migrate to 10g - you just have to use 10g as the repository.
    You could also try the older Migration Workbench.

  • How to trigger DSP cache invalidation and reload?

    We have a scheduled job to update the database nightly. I used DSP caching to increase performance since the data only changes during the nightly updates.
    Does anyone know how can I trigger the DSP cache invalidation and reload the updated data to DSP cache once the data loading is completed on the database server? (The database is hosted on a different server than DSP.)
    Thanks in advance!
    Nav

    On this page
    http://e-docs.bea.com/aldsp/docs25/appdev/ejbclt.html
    Bypassing the Data Cache When Using the Mediator API
    Data retrieved by data service functions can be cached for quick access. This is known as a data caching. (See Configuring the Query Results Cache, in the DSP Administration Guide for details.) Assuming the data changes infrequently, it's likely that you'll want to use the cache capability.
    You can bypass the data cache by passing the GET_CURRENT_DATA attribute within a function call, as shown in Listing 3-7. GET_CURRENT_DATA returns a Boolean value. As a by-product, the cache is also refreshed.
    Listing 3-7 Cache Bypass Example When Using Mediator API
    dataServices.customermanagement.CustomerProfile customerProfileDS =
    customerDS=dataServices.customermanagement.CustomerProfile.getInstance(ctx,appName);RequestConfig
    config = new
    RequestConfig();attr.enableFeature(RequestConfig.GET_CURRENT_DATA);CustomerProfileDocument
    customerProfileDoc customerPlofileDS.CustomerProfile(params,config);

  • My appe id is not using for downloading any applications and after logining in it just asking me to review while reviewing i am giving everything which required but it asking and showing that invalid code.how can i get that code it given that by itunes ?

    my iphone is not supporting to dowlaod anything after giving id and passwrd it just showing to review while i am review i am giving complete information which it requires but it just saying that it given a invalid code what is that mean and how to give a correct code please reply me fast

    Hi there vinod467,
    You may find the troubleshooting steps in the article below helpful.
    iTunes Store: Invalid, inactive, or illegible codes
    http://support.apple.com/kb/ts1292
    -Griff W. 

  • When i update BIOS message show me invalid flashint.bin

    hi , I have Lenovo v570 and try update by Dos , becouse no windows on my device , 
    I download my ROM and files from downloader here , when i try from dos this message showed :
    invalid flashint.bin  , what I should to do ?

    I already did all that before u can check my link for more deatils . 
    http://forums.lenovo.com/t5/Lenovo-3000-and-Essential/my-laptop-v570-hang-loading-when-installing-wi...
    Also , want update something , I installed windows xp , and work well on safe mode only , need to update my biso by safe mode , when I try do that i get message say " u cant open on safe mode " and sometimes another message show says " filed to open file " any way to update my bios by safe mode xp ?

  • Call log entry deleting shows error "invalid selec...

    there are three entries in my nokia c3 call log when i delet them the error comes "invalid selection". i had cleared all logs but they still exists. i had reset my phone but still these entries exists in my call log. how can i delet these entries from my call log. and these contact entries are now not in my contact list. but there name exist in my call log without their number and date and call duration.

    I get the same message with various JRE versions (1.3.1 Blackdown, 1.3.1 Oracle, 1.1.8 Oracle).
    DBCA seems to die in line 124 (with the progress bar at 19%) where it uses oracle.sysman.assistants.dbca -> maybe this one is corrupt or wrong/outdated. Maybe it would be possible to save the database generation script (like in 8.x) as a batch and then run it manually without using Java-based tools. But: where do I generate this batchfile - dbca only seems to save a XML configuration file.
    Thanks for any hints. Michael At least for the lat part of my question I found an answer: the option for writing a script with the DB geneation statements is not available for the 'General Purpose' DB. When selecting 'New database' it seems to work fine.
    Michael

  • Upgrading to PSE12, serial number showing as invalid - still an issue?

    Have purchased upgrade to PSE12 and entered my PSE6 serial number but Install indicates that this is invalid. MAC user.  No response on the one-to-one Adobe Chat, which is disappointing.

    You may have to check the online reseller directly and ask about this matter.
    And note they have a different policy of returns and exchanges than Apple
    itself. A retail Apple Store or the Apple online (company) store is different
    than an authorized independent retailer who resells product. So you should
    check with them about a return or replacement. They may also be able to
    figure out why they sent you a product that cannot be officially verified.
    Good luck in this matter...!

Maybe you are looking for

  • How to make tasks in iCal repeat?

    This might be a stupid question, but I'm trying to make tasks in iCal repeat on a regular basis. For instance, instead of having to set a task to repeat every Monday at 10am, I just want to set a task for Monday at 10am and then have it repeat every

  • Technical Question - ITS (SRM - EBP)

    Hello, <b>               `if (gt_scr_itmovr_i-deliv_date[j].visible)`                 'end'</b> I dont know bhtml or java; but do you know what is meant by the above lines; These lines I have taken from one HTML template EBP - SC gt_scr_itmovt_i-deli

  • OALL8 is in an inconsitent state

    I am having a problem with a sql query, that i execute through JDBC. I get a SQLJ exception with the message "OALL8 is in an inconsitent state" It only happens when I execute this particular query. All the other queries i execute, return normally. Ca

  • file save... delay before dialog appears

    Hello, Since I upgrade to 10.4.5, the first time I choose "save" in every application , it takes a very long time (5 a 10 sec) before the saving dialog appears. Later in the same session for the same application it seems to work correctly, but the sa

  • OWB ODI Deployment Error

    Hi, Does anyone know what the following Error message means and how to fix it? oracle.wh.jrt.sdk.JRTException: CCA-1507: Error occurred while trying to retrieve the Managed Bean Retrieval. Caused by: oracle.wh.jrt.sdk.JRTException CCA-1508: Error occ