Note for FAPP column not allowed
Dear All,
We had this error message " Note for FAPP column not allowed " during
execution of appraisal form. Upon debugging, we found out objective
setting entered has been truncated and updated into Final Appraisal
column where this column has been set to "No Note".
Please share with me if anybody has come across with this issue before.
Thanks and best regards,
Khairul
>
Khairul Nizar Rhazak @ Ani wrote:
> Hi Michael,
>
> Thanks for the reply.
>
> I would like to understand further on this as we are not able to replicate this error in our development system. Kindly, please share with us if there is any step we can use to replicate the error and work on permanent solution.
>
> Currently, we are having more than 10000 employees in Asia Pacific affected by this error and we are working on cleaning appraisal form manually.
>
> Thanks in advance for your cooperation.
>
> Khairul
i think to try to replicate you need to have two clients in dev, 1 for config, 1 for testing to replicate the problem
in ur config client take your production template, copy ithe template and make a test template.
transport this new test template into the test client.
generate employee documents for this test template, start processing the employee docs, but don't finish them..
go back to config client with your test template. unrelease the template, remove the notes field, remove a column, release and transport your template. transport now the updated test template to the test client. Test on the previous employees. if you can't replicate, create new employee documents based on that version and repeat the cycle with other changes...
this only a guess as to why you would get a weird error like that. anyways, since it's a production problem you should probably be opening a high ticket with sap.
the bad news if this is your problem, it will be very hard to correct in production...
Similar Messages
-
I am looking for software for creating books. Not text book format.
I didn't notice until later that I had I written I was looking for a publishing software NOT for mac when I meant I do want it for a Mac! I want it for making PAPER books with real pages to hold in my hand turn.... Not an ebook.
I have been looking into microsoft to see if it has a publishing software to be used on my Mac. I really don't want to get my old PC out to do a book on. Please help me...Vickie
I will check into these. Thank you -
Are there release notes for QT 7.3 (not security related)
Are there real release notes for 7.3 , not just the security notes ....looked around but did not see anything that indicates what changes they have done.
We are trying to determine why alert boxes are not modal
The fix states it's for Firefox 2.0 - 3.7a1pre
We are using 3.0.6 not the current version of 3.6.13.
Add-on release notes 2.16.1
https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/versions/
Repeating 2.16 release notes since 2.16 was not made available for more than a couple of hours
Fixed bug whereby some alert boxes weren't properly parented/owned. This led to some alerts not being properly modal
with respect to the window/dialog that issued the alert. -
Cannot generate dynamic alert for initial column in SNP.
Hello,
I have an SNP alert macro with a simple condition running from Initial column for 158 weeks. The alert is generated correctly for all other weeks but not for initial column.
The IF condition works correctly because a CELL_BG() in the same alert macro is correctly changing the color of the Initial column cell.
Is there some setting I need to make to generate alert for initial column?
Regards,
SSHello jejeje,
thanks for your efforts - what you describe is something users have found out on our side too - a problem remains: you can save this setting "Period from last Selection" and it brings you to the INITIAL column but: once you have scrolled forward in the SNP data view (so that the INITIAL column has disappeared) and you leave the SNP data view or select another product ... it "remembers" that you last time left the data view NOT having INITIAL column as a start column.
So, my users say that they scroll back to INITIAL column before selecting another part or using another SelectionID or leaving the SNP data view ... and of course they hate this since they have to do this a few hundred times a day worse case.
We had a call open to SAP on this and I told them that is about productivity and usabaliity issue moving from SCM5.0 to SCM7.0 - but they have nothing more to say than "not supported anymore" - and the ultimate solution is / will be to modifiy SAP SCM standard coding - unless somebody from SAP is reading the discussioons here and is dedicated to help their customers which pay millions every year into SAP support fees.
Thanks for your responses and effort !
Regards
Thomas -
Scripting Error for Calculating Columns
Hello,
I have created a table in which I need to sum the rows and columns. The script is working for each row, but it is not for each column. I've looked through this forum and found several examples that should work for me but I'm still receiving an error; accessor ... is unknown (where... is the path). I would appreciate any assistance.Well,
as I said, the reference is wrong.
In your form, there is no row named "Row", but 4 rows named individually "Row1", "Row2" etc.
The script you use looks for all instances of a object named "Row"m this means Row[0], Row[1], Row[2] and so on..
So just rename all the 4 rows into "Row" and your script will work. -
Wrong XML OraDbType code for database column type CHAR
Hi there!
I have a strange issue with the XML retrieved from an Oracle DB. I'm using OraDB11g and my problem is described next:
When I create a table with a CHAR type columns and get the XML from a query the returns a cursor with the table rows, I get the supposed right OraDbType code 104:
Table creation:
create table AA_Table1
ID number(2,0) not null,
ColumnA char(1) null,
ColumnB char(1) default 'S' not null,
constraint PK_AA_Table1
primary key ( ID )
tablespace "X"
storage
compress for all operations
and the returned XML:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="o_ListaTable" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="o_ListTable" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="o_List" msprop:REFCursorName="REFCursor">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msprop:OraDbType="111" type="xs:short" minOccurs="0" />
*<xs:element name="COLUMNA" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
*<xs:element name="COLUMNB" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
BUT...when I insert another column on the table, changing it, after that, I get a wrong OraDBType code on the returned XML for the new added column...
Added new column:
alter table AA_Table1 add ColumnC char(1) default 'S' not null;
The returned XML is:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="o_ListaTable" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="o_ListTable" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="o_List" msprop:REFCursorName="REFCursor">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" msprop:OraDbType="111" type="xs:short" minOccurs="0" />
<xs:element name="COLUMNA" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
<xs:element name="COLUMNB" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
*<xs:element name="COLUMNC" msprop:OraDbType="126" type="xs:string" minOccurs="0" />*
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
My question is: why is this OraDbType code different? Check that the same column type CHAR(1) NOT NULL DEFAULT 'S' is created on table create and the OraDbType is ok, so I think this can be a bug...Because of this, I cannot do a right XML parser to convert CHAR(1) columns in other type I want, in this case, to convert it to .Net bool type. My parser now is ignoring the OraDbType code 126, because this is also the code used for nvarchar2, and I won't convert nvarchar2 to bool.
How can I solve this problem?
Some additional tests I've done:
Have also inserted new columns nullable/not nullable and with default value:
alter table AA_Table1 add ColumnD char(1);
alter table AA_Table1 add ColumnE char(1) not null;
alter table AA_Table1 add ColumnF char(1) default 'S';
And the returned XML was:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="o_ListTable" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="o_ListTable" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="o_Lista" msprop:REFCursorName="REFCursor">
<xs:complexType>
<xs:sequence>
<xs:element name="COLUMNA" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
<xs:element name="COLUMNB" msprop:OraDbType="104" type="xs:string" minOccurs="0" />
<xs:element name="COLUMNC" msprop:OraDbType="126" type="xs:string" minOccurs="0" />
*<xs:element name="COLUMND" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
*<xs:element name="COLUMNE" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
*<xs:element name="COLUMNF" msprop:OraDbType="104" type="xs:string" minOccurs="0" />*
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
All OraDbTypes are right, except that one for the column not null and with default value. Any solution for this issue?
If I change the type of the column that returns the wrong code (ColumnC) to CHAR(1) null default 'S' and then change it again to the original type CHAR(1) not null default 'S', I get the right ORaDbType code 104 as expcted and not the 126. This behaviour is strange - can this be an Oracle bug?
I am using the following Oracle DLL and respective version:
oci.dll (version 11.2.0.1)
Oracle.DataAccess.dll (version 4.112.3.0)
orannzsbb11.dll (version 11.0.0.1)
oraocci11.dll (version 11.2.0.3)
OraOps11w.dll (version 2.112.3.0)
Edited by: 929091 on 23/Abr/2012 2:44Have you tried using minOccurs="1" ? Since the column is not null, it is guaranteed 1 value, correct?
-
PL/SQL: ORA-00984: column not allowed here
I am Trying to compile this procedure, but i get error, could please anybody help me out.
Thanks.
SQL> create or replace procedure FOF_sport_setup(
2 v_model_cd in varchar2, -- model_cd used in many place
3 v_portfolio_name in varchar2, -- portfolio name
4 v_src_acct_nbr in varchar2, -- source account number for port
5 v_src_fund_nbr in varchar2, -- source fund number
6 v_fmr_fund_nbr in varchar2, -- fidelity fund number
7 v_src_cd in varchar2, -- source code
8 v_last_mod_id in varchar2 -- your corp id
9 )
10 as
11 v_new_portf_id number(12);
12
13 begin
14
15 select max(portf_id) into v_new_portf_id from portfolios;
16
17 insert into portfolios
18 (portf_id,
19 portf_cd,
20 portf_name,
21 portf_typ_cd,
22 inception_date,
23 sub_product_cd,
24 product_cd,
25 product_line_cd,
26 bus_line_cd,
27 dly_perf_restr_ind,
28 portf_mgr_id,
29 seed_acct_nbr,
30 use_epas_ind,
31 epas_drop_perf_ind,
32 src_acct_nbr,
33 src_fund_nbr,
34 fmr_fund_nbr,
35 src_cd,
36 last_mod_id,
37 last_mod_dt)
38 values
39 (new_portf_id,
40 v_model_cd,
41 v_portfolio_name,
42 "RETAIL",
43 v_inception_date,
44 "FREE",
45 "FREE",
46 "FREE",
47 "PAS",
48 "Yes",
49 3,
50 "31635C101",
51 "N",
52 "Y",
53 v_src_acct_nbr,
54 v_src_fund_nbr,
55 v_fmr_fund_nbr,
56 v_src_cd,
57 v_last_mod_id,
58 sysdate);
59
60 end;
61 /
Warning: Procedure created with compilation errors.
SQL> show errors procedure FOF_sport_setup
Errors for PROCEDURE FOF_SPORT_SETUP:
LINE/COL ERROR
17/2 PL/SQL: SQL Statement ignored
51/3 PL/SQL: ORA-00984: column not allowed here
SQL>create or replace procedure FOF_sport_setup(
v_model_cd in varchar2, -- model_cd used in many places for portf_id,
v_portfolio_name in varchar2, -- portfolio name
v_inception_date in varchar2,
v_src_acct_nbr in varchar2, -- source account number for portfolio table in sport db
v_src_fund_nbr in varchar2, -- source fund number
v_fmr_fund_nbr in varchar2, -- fidelity fund number
v_src_cd in varchar2, -- source code
v_last_mod_id in varchar2 -- your corp id
as
v_new_portf_id number(12);
begin
select max(portf_id) into v_new_portf_id from portfolios;
insert into portfolios
(portf_id,
portf_cd,
portf_name,
portf_typ_cd,
inception_date,
sub_product_cd,
product_cd,
product_line_cd,
bus_line_cd,
dly_perf_restr_ind,
portf_mgr_id,
seed_acct_nbr,
use_epas_ind,
epas_drop_perf_ind,
src_acct_nbr,
src_fund_nbr,
fmr_fund_nbr,
src_cd,
last_mod_id,
last_mod_dt)
values
(v_new_portf_id,
v_model_cd,
v_portfolio_name,
'RETAIL',
to_date('v_inception_date'),
'FREE',
'FREE',
'FREE',
'PAS',
'Yes',
3,
'31635C101',
'N',
'Y',
v_src_acct_nbr,
v_src_fund_nbr,
v_fmr_fund_nbr,
v_src_cd,
v_last_mod_id,
sysdate);
end;
=====================
The procedure got created without any errors, when i am trying to execute the procedure i am getting errors.
this is the parameters which i am passing:
exec FOF_sport_setup('01213', 'PAS International Fund of Funds', '2/15/2006', '01213', 'IFOFB', 'IFOFB', 'FPCMS', 'a382077')
SQL> exec FOF_sport_setup('01213', 'PAS International Fund of Funds', '2/15/2006', '01213', 'IFOFB',
'IFOFB', 'FPCMS', 'a382077')
BEGIN FOF_sport_setup('01213', 'PAS International Fund of Funds', '2/15/2006', '01213', 'IFOFB', 'IF
ERROR at line 1:
ORA-01858: a non-numeric character was found where a numeric was expected
ORA-06512: at "SPORT.FOF_SPORT_SETUP", line 15
ORA-06512: at line 1
===============
the description for the table is below
===========
SQL> desc portfolios
Name Null? Type
PORTF_ID NOT NULL NUMBER(25)
PORTF_CD VARCHAR2(10)
PORTF_NAME VARCHAR2(60)
STRATEGY_CD VARCHAR2(10)
CO_STOCK_LEV_CD VARCHAR2(10)
EFF_DATE DATE
PORTF_WEB_NAME VARCHAR2(60)
PORTF_TYP_CD VARCHAR2(10)
INCEPTION_DATE DATE
CLOSE_DATE DATE
SUB_PRODUCT_CD VARCHAR2(10)
PRODUCT_CD VARCHAR2(10)
PRODUCT_LINE_CD VARCHAR2(10)
BUS_LINE_CD VARCHAR2(10)
BUS_GRP_CD VARCHAR2(10)
PLAN_CD VARCHAR2(10)
ADVISOR_CD VARCHAR2(10)
RISK_LEVEL_CD VARCHAR2(10)
DLY_PERF_RESTR_IND VARCHAR2(3)
SUB_PORTF_IND CHAR(1)
PORTF_MGR_ID NUMBER(25)
SEED_ACCT_NBR VARCHAR2(9)
OBJECTIVE VARCHAR2(255)
PORTF_COMPOSITION_DESC VARCHAR2(50)
LGL_GRP VARCHAR2(30)
USE_EPAS_IND VARCHAR2(3)
EPAS_MODEL_NAME VARCHAR2(50)
EPAS_DROP_PERF_IND VARCHAR2(3)
SRC_ACCT_NBR VARCHAR2(15)
SRC_FUND_NBR VARCHAR2(6)
FMR_FUND_NBR VARCHAR2(6)
NET_ASSETS NUMBER(25,8)
SEED_MKT_VAL NUMBER(25,10)
ACCT_MKT_VAL NUMBER(25,10)
TOTAL_ASSETS NUMBER(25,10)
NET_OTHER_ASSETS NUMBER(25,8)
ACCRUED_INCOME NUMBER(25,10)
ACCRUED_INTEREST NUMBER
LIABILITIES NUMBER(25,10)
SHARES_OUTSTANDING NUMBER(25,10)
PRINCIPAL_CASH NUMBER(25,10)
INCOME_CASH NUMBER(25,10)
INVESTIBLE_CASH NUMBER(25,10)
SHIP_DATE DATE
REBALANCE_IND CHAR(1)
OUTBOUND_IND VARCHAR2(5)
LGL_MSG_CD CHAR(1)
LAST_SETTLE_DATE DATE
LAST_TRD_DATE DATE
LAST_ALLOC_DATE DATE
STATUS_CD CHAR(1)
SRC_CD NOT NULL VARCHAR2(5)
LAST_MOD_ID NOT NULL VARCHAR2(10)
LAST_MOD_DT NOT NULL DATE
PORTF_MGD_CD VARCHAR2(10)
========== -
Update error: POL - 4008 null buffer for attribute is not allowed
I am attempting to update a column in my Oracle Lite database through JDBC.
The statement is:
ds = getDataSource();
conn = getConnection(ds);
stmt = getStatement(conn);
int results = stmt.executeUpdate("UPDATE SYSTEM.PM_PASSENGERS SET CURRENT_STATUS_EVENT_ID = 267 WHERE PASSENGER_ID = 1");
System.out.println(results+" rows affected.");
conn.commit();
which results in the message:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 rows affected.
[POL-4008] null buffer for attribute is not allowed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am not sure what that means exactly. Does that mean there is some problem with the commit?
Thanks,
AllenIs it necessary to update the entire record in Oracle Lite, or should it be possible to update select columns only when performing an update query?
Thanks,
Allen -
ORA-01733- virtual column not allowed here - Insert using inline view
Does anyone know why I am getting ORA-01733- virtual column not allowed here
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
---no error without WITH CHECK option
SQL> INSERT INTO
2 (SELECT
3 location_id,
4 city,
5 l.country_id
6 FROM countries c, locations l,regions r
7 where l.country_id = c.country_id
8 and r.region_id=c.region_id
9 and r.region_name = 'Asia')
10 VALUES (5500, 'Wansdworth Common', 'UK');
1 row created.
SQL> rollback;
Rollback complete.
-----error with WITH CHECK OPTION
SQL> INSERT INTO
2 (SELECT
3 location_id,
4 city,
5 l.country_id
6 FROM countries c, locations l,regions r
7 where l.country_id = c.country_id
8 and r.region_id=c.region_id
9 and r.region_name = 'Asia' WITH CHECK OPTION)
10 VALUES (5500, 'Wansdworth Common', 'UK');
INSERT INTO
ERROR at line 1:
ORA-01733: virtual column not allowed here
I was expecting
ORA-01402: view WITH CHECK OPTION where-clause violation
for the second one. Is there anything I am missing here ?Randolf
Thank you very much for the update to this old question
After reading the link I think I should ignore this error and accept it as ORA-01402
The information you asked me to check did not lead me an understanding of different error types.
SQL> ----view for ORA-01733
SQL> create view test_v_1
2 as
3 SELECT
4 location_id,
5 city,
6 l.country_id
7 FROM countries c, locations l,regions r
8 where l.country_id = c.country_id
9 and r.region_id=c.region_id
10 and r.region_name = 'Asia' WITH CHECK OPTION;
View created.
SQL>
SQL>
SQL>
SQL> select * from user_updatable_columns where table_name='TEST_V_1';
OWNER TABLE_NAME COLUMN_NAME UPD INS DEL
HR TEST_V_1 CITY YES YES YES
HR TEST_V_1 COUNTRY_ID NO NO NO
HR TEST_V_1 LOCATION_ID YES YES YES
SQL>
SQL> ----view for ORA-01402
SQL>
SQL> create view test_v_2
2 as
3 SELECT
4 d.department_id,
5 d.department_name,
6 d.location_id
7 FROM hr.departments d,hr.locations l
8 WHERE l.location_id=d.location_id
9 and d.location_id < 2000
10 WITH CHECK OPTION;
View created.
SQL>
SQL> select * from user_updatable_columns where table_name='TEST_V_2';
OWNER TABLE_NAME COLUMN_NAME UPD INS DEL
HR TEST_V_2 DEPARTMENT_ID YES YES YES
HR TEST_V_2 DEPARTMENT_NAME YES YES YES
HR TEST_V_2 LOCATION_ID NO NO NO
SQL>
SQL>
SQL> ----INSERT STILL FAILING WITH DIFFERENT ERROR DESPITE THE SAME UPDATABLE COLUMN STRUCTURE
SQL> insert into test_v_1 values (5500, 'Wansdworth Common', 'UK');
insert into test_v_1 values (5500, 'Wansdworth Common', 'UK')
ERROR at line 1:
ORA-01733: virtual column not allowed here
SQL> insert into test_v_2 values (9999, 'Entertainment', 2500);
insert into test_v_2 values (9999, 'Entertainment', 2500)
ERROR at line 1:
ORA-01402: view WITH CHECK OPTION where-clause violation
SQL>A. Coskan GUNDOGAR
Oracle DBA
http://coskan.wordpress.com
“A man's errors are his portals of discovery.”
James Joyce -
Virtual Column not allowed here Error
Hi All,
I am facing "Virtual Column not allowed here" Error when running a simple select statement. I have identified that if I am removing a primary key constraint and an index on top of month table which is used in the SQL solving this issue. But want to know the exact reason of this error. FYI I am having two indexes on Month_end_date_key (which is also a primary key) and Month_end_date. Could you please let me know the reason for this.
FYI I am not doing any insert,update deletion operations. I am using only the tables in the SQL not using any views.
Regards,
Radhakrishna924486 wrote:
Hi All,
I am facing "Virtual Column not allowed here" Error when running a simple select statement. I have identified that if I am removing a primary key constraint and an index on top of month table which is used in the SQL solving this issue. But want to know the exact reason of this error. FYI I am having two indexes on Month_end_date_key (which is also a primary key) and Month_end_date. Could you please let me know the reason for this.
FYI I am not doing any insert,update deletion operations. I am using only the tables in the SQL not using any views.
Regards,
RadhakrishnaAre you sure none of those is a view?
Cause: An attempt was made to use an INSERT, UPDATE, or DELETE statement on an expression in a view.
Action: INSERT, UPDATE, or DELETE data in the base tables, instead of the view. -
Database trigger - PL/SQL: ORA-00984: column not allowed here
I am trying to create a trigger that will update an employee audit table when a row is changed. Using a sequence number to assign a unique identifier to each row as it is created. Need to capture the user ID, date of the change, and the action (update), plus the before image of the row.
CREATE SEQUENCE emp_audit_seq START WITH 10;
Create table emp (
empno NUMBER(4) Primary Key,
ename VARCHAR2(10),
job VARCHAR2(9),
mgr NUMBER(4),
hiredate DATE,
sal NUMBER(7,2),
comm NUMBER(7,2),
deptno NUMBER(2));
CREATE TABLE emp_audit (
audit_uid NUMBER(15) Primary Key,
change_date DATE,
change_user VARCHAR2(30),
action CHAR(1),
empno NUMBER(4),
ename VARCHAR2(10),
job VARCHAR2(9),
mgr NUMBER(4),
hiredate DATE,
sal NUMBER(7,2),
comm NUMBER(7,2),
deptno NUMBER(2));
CREATE OR REPLACE TRIGGER trig_emp_audit
BEFORE UPDATE ON emp
FOR EACH ROW
BEGIN
INSERT INTO emp_audit
VALUES(emp_audit_seq.nextval, change_date, change_user, action, :old.empno, :old.ename, :old.job, :old.mgr, :old.hiredate, :old.sal, :old.comm, deptno);
END;
Warning: Trigger created with compilation errors.
SQL> show errors
Errors for TRIGGER TRIG_EMP_AUDIT:
LINE/COL ERROR
2/3 PL/SQL: SQL Statement ignored
3/149 PL/SQL: ORA-00984: column not allowed hereCan anyone assist in helping me find what I am doing wrong with the trigger?
Edited by: LostNoob on Aug 25, 2012 2:24 PMFirst, when you write an INSERT statement, it's always good to list the columns that you're inserting into. That makes the code easier to follow-- you don't have to separately pull up the table definition to know what order columns are inserted. And it makes the code more maintainable since the statement won't become invalid if you add a new column to the table in the future.
Second, CHANGE_DATE, CHANGE_USER, and ACTION are not (presumably) functions and they are not local variables so it doesn't make sense to use them in an INSERT statement. You would need to write code or leverage existing functions to populate those columns. I'm guessing, for example, that you want to use SYSDATE to populate the CHANGE_DATE and USER to populate the CHANGE_USER column. My guess is that ACTION should always be a 'U' for UPDATE.
Third, it appears that you left off the :old on the DEPTNO column.
Putting it all together, you'd have something like
CREATE OR REPLACE TRIGGER trig_emp_audit
BEFORE UPDATE ON emp
FOR EACH ROW
BEGIN
INSERT INTO emp_audit(
audit_uid,
change_date,
change_user,
action,
enpno,
ename,
job,
mgr,
hiredate,
sal,
comm,
deptno )
VALUES(
emp_audit_seq.nextval,
sysdate,
user,
'U',
:old.empno,
:old.ename,
:old.job,
:old.mgr,
:old.hiredate,
:old.sal,
:old.comm,
:old.deptno);
END;
/ Justin -
Execute immediate column not allowed here error
Hi,
I have the following procedure
CREATE OR REPLACE PROCEDURE SWF_ICD
IS
SEQSWF NUMBER;
req VARCHAR2(1000):='';
BEGIN
DBMS_OUTPUT.ENABLE( 1000000 ) ;
DBMS_OUTPUT.PUT_LINE('DEBUT');
FOR CUR1 IN (SELECT * FROM ICD WHERE ETAICD=5)
LOOP
SELECT SEQ_SWF.NEXTVAL INTO SEQSWF FROM DUAL;
FOR CUR2 IN (SELECT CODCSWSSW,CODSSW,RUBSSW FROM SSW,OSW
WHERE INSOSW='ICD' AND CODCSWSSW=CODCSWOSW)
LOOP
req:= 'INSERT INTO SWF (SEQESWSWF,CODCSWSWF,CODSSWSWF,VALSWF) '
|| 'VALUES (CUR2.SEQSWF,CUR2.CODCSWSSW,CUR2.CODSSW,CUR1.' || CUR2.RUBSSW || ')';
DBMS_OUTPUT.PUT_LINE('req : ' || req);
EXECUTE IMMEDIATE req;
END LOOP;
END LOOP;
DBMS_OUTPUT.PUT_LINE('FIN');
END;
The procedure is created but when running i have the following error column not allowed here.
pls advise.Hi
Try EXECUTE IMMEDIATE sql USING ... syntax.
EXECUTE IMMEDIATE dynamic_string
[INTO {define_variable[, define_variable]... | record}]
[USING [IN | OUT | IN OUT] bind_argument
[, [IN | OUT | IN OUT] bind_argument]...]
[{RETURNING | RETURN} INTO bind_argument[, bind_argument]...];
Please see the link for more info.
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/11_dynam.htm#13131
Thanks -
Getting the error column not allowed here in jdbc
i have got an error
when using jdbc.
i have inserted the data from taking java textfields.
The error is:column not allowed here.
how to rectify this?
iam eagerly waiting for ur reply.Hi,
This is the forum for the SQL Developer Data Modeler product.
I suggest you try asking your question on the SQL and PL/SQL Forum: PL/SQL
David -
Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all?? Looks like I can set it for one but not others. All, one, or nothing
Hey Eric,
Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
Again, thanks for trying, it is appreciated. -
Does anyone know a finacial proram for iMac that will allow me to reconcile a checkbook from a brokerage account> Quicken Essentials for Mac does not.
For Mac apps check the App Store, MacUpdate, CNET Macdownloads and do a Google search.
Maybe you are looking for
-
I am unable to printe a document I created on my Mac with Pages via a wired Lexmark X2650 printer. Of course, I have already confirmed that it is correctly set up and connected. Why? Thank you. <Email Edited by Host>
-
Hi all, I m the new apps dba. actually I need to have a query through witch I can have a list of the Concurrent request run in a specific day. Info req like. req ID, porgram name, start_date, end_date etc. Please suggest !
-
hi, is there anyway to get what was actually posted to CO for a given payroll period from the HR side using ABAP programming, if not is there a way to get these amounts from the CO side using ABAP programming aswell. thanks.
-
Issues with our SSL connection to the Web dispatcher
HI Alle, I having issues with our SSL connection to the Web dispatcher with SAP Web AS. Below is the error in the log files form dev_webdisp: Started service 80 for protocol HTTP on host "wdpeht1"(on all adapters) (processing timeout=120, keep_alive_
-
Building stubs & Client-side bindings
Hi everyone I have created a simple web service from my EmployeeRecord class. I am using Static Stub to test it. The add(2,3) method works but not the getName() when String getName() invoked Null value is returned. ----------------------- my Sta