ORA-00926: missing VALUES keyword | when importing data
Hello,
I get the missing VALUES keyword error when importing data from an Excel spreadsheet. Until yesterday everything worked fine. Today I'm having this problem because OSD does not build the DML correctly. See:
insert into WFT_GROEPEN (CODE,OMSCHRIJVING,NIVEAU,INDIC_LAAGSTE_NIVEAU) VALUES('1.1.1.1','- Value of business acquired',4,'N');
Working with OSD 1.2.1 on Windows XP.
Anyone got a clue?
Kind regards,
Dennis
Hi,
Thanks for your reply. I found the problem myself. I got 2 columns in the Excel sheet with the same name. Then OSD creates an insert statement like following which gives the 'missing VALUES keyword' error.
insert into WFT_GROEPEN (CODE,OMSCHRIJVING,NIVEAU,INDIC_LAAGSTE_NIVEAU)NIVEAU) VALUES('3','Toelichting balans beleggingen',NULL,'N',NULL);
Regards,
Dennis
Similar Messages
-
ORA-00926: missing VALUES keyword
Hello,
when i try to start an insert statement at a remote database I m getting the following error message:
ORA-00926: missing VALUES keyword
the statement is INSERT INTO <TABLE> VALUES(100,12,01-Dec-10,'ENTRY')
the table has the following form: COL1 (NUMC), COL2(NUMC, COL3(DATE) COl4 (VARCHAR255)
i tried to use several formats but i m not getting any solution for inserting. The user i m using has the privileges for inserting.
has anyone a solution what will be the error?
ThanksHi,
Try to use the following format instead:
INSERT INTO <table_name> (<field1>,<field2>,...) VALUES (<value1>,<value2>,...);
Br,
Javier -
Error message: 'ORA-00926:missing VALUES keyword
Hi Friends,
I am trying to update a database table in SAPR3.ORACLE database from CRM via an ABAP program.
I did required BDCON setup. But I get the error message : ORA-00926:missing VALUES keyword.
Looking forward your help to solve this problem. Anyone came across such issue?
below is my code and BDCON setup
DB Connection DB_CONNECT
DBMS ORA
User Name test_db
DB password
Conn. info sapde9db00a
Connection Limit 10
Optimum Conns 5
TABLES: BUT000.
DATA: EXC_REF TYPE REF TO CX_SY_NATIVE_SQL_ERROR,
ERROR_TEXT TYPE STRING.
DATA W_PARTNER TYPE BUT000-PARTNER.
TYPES: BEGIN OF TYP_PARTNER,
MANDT TYPE SY-MANDT,
PARTNER_NUMBER TYPE BU_PARTNER,
END OF TYP_PARTNER.
DATA: ZZ_TEST TYPE STANDARD TABLE OF TYP_PARTNER WITH HEADER LINE.
DATA: DBTYPE TYPE DBCON_DBMS,
DBCUR TYPE CURSOR,
T_BUT000 LIKE BUT000 OCCURS 0 WITH HEADER LINE.
SELECT * INTO CORRESPONDING FIELDS OF TABLE T_BUT000 FROM BUT000 ORDER BY PRIMARY KEY.
LOOP AT T_BUT000.
ZZ_TEST-MANDT = SY-MANDT.
ZZ_TEST-PARTNER_NUMBER = T_BUT000-PARTNER.
APPEND ZZ_TEST.
ENDLOOP.
TRY.
EXEC SQL.
SET CONNECTION 'DB_CONNECT'
ENDEXEC.
EXEC SQL.
CONNECT TO 'DB_CONNECT'
ENDEXEC.
LOOP AT ZZ_TEST.
EXEC SQL.
INSERT INTO SAPR3."ZZTEST_DB":
(mandt, partner_number) VALUES('220', '0000000253');
ENDEXEC.
IF SY-SUBRC <> 0.
ENDIF.
ENDLOOP.
CATCH CX_SY_NATIVE_SQL_ERROR INTO EXC_REF.
ERROR_TEXT = EXC_REF->GET_TEXT( ).
MESSAGE ERROR_TEXT TYPE 'I'.
ENDTRY.
EXEC SQL.
SET CONNECTION DEFAULT
ENDEXEC.
Thanks in advance for you help,
regards
DJHi,
See my complete code to update values using internal table
TABLES: BUT000.
DATA: EXC_REF TYPE REF TO CX_SY_NATIVE_SQL_ERROR,
ERROR_TEXT TYPE STRING.
DATA W_PARTNER TYPE BUT000-PARTNER.
TYPES: BEGIN OF TYP_PARTNER,
MANDT TYPE SY-MANDT,
PARTNER_NUMBER TYPE BU_PARTNER,
END OF TYP_PARTNER.
DATA: ZZ_TEST TYPE STANDARD TABLE OF TYP_PARTNER WITH HEADER LINE.
DATA: DBTYPE TYPE DBCON_DBMS,
DBCUR TYPE CURSOR,
T_BUT000 LIKE BUT000 OCCURS 0 WITH HEADER LINE.
SELECT * INTO CORRESPONDING FIELDS OF TABLE T_BUT000 FROM BUT000 ORDER BY PRIMARY KEY.
LOOP AT T_BUT000.
ZZ_TEST-MANDT = SY-MANDT.
ZZ_TEST-PARTNER_NUMBER = T_BUT000-PARTNER.
APPEND ZZ_TEST.
ENDLOOP.
TRY.
EXEC SQL.
SET CONNECTION 'DB_CONNECT'
ENDEXEC.
EXEC SQL.
CONNECT TO 'DB_CONNECT'
ENDEXEC.
LOOP AT ZZ_TEST.
EXEC SQL.
INSERT INTO SAPR3.ZZTEST_DB (mandt, partner_number) VALUES (ZZ_TEST-MANDT, ZZ_TEST-PARTNER_NUMBER);
ENDEXEC.
IF SY-SUBRC <> 0.
ENDIF.
ENDLOOP.
CATCH CX_SY_NATIVE_SQL_ERROR INTO EXC_REF.
ERROR_TEXT = EXC_REF->GET_TEXT( ).
MESSAGE ERROR_TEXT TYPE 'I'.
ENDTRY.
EXEC SQL.
SET CONNECTION DEFAULT
ENDEXEC.
Edited by: Mourougane DJEARAMANE on Mar 31, 2008 2:11 PM -
Load Utility Fails - ORA-00926: missing VALUES keyword
Hello,
I am unable to successfully use the Data Load Utility. The wizard's "Column Mapping" stage (i.e. just before pressing "Load Data" button) shows a preview of all the data, which appears to be okay.
When I attempt the load, I get the error message shown in the title of this post, for each record (i.e. they all fail). It looks like a syntax error - is the wizard generating incorrect syntax? Can I view the wizard's script somewhere to diagnose this?
Thanks in advanceHi
Could you please tell how you are trying to upload data?
Also confirm if you took care of the following:
1. There are no data type limitations for for loading from XML files. However, when loading from spreadsheets (through copy and paste) or from text files, only the following data types are supported: NUMBER, DATE, VARCHAR2, CLOB, BINARY_FLOAT, and BINARY_DOUBLE.
2. Loading a Text File->For files smaller than 30KB, you can copy and paste tab-delimited data directly into the Load Data Wizard. For files larger than 30KB, you must upload a separate file.
3. Loading an XML Document->Oracle Application Express supports XML documents in Oracle's canonical XML format, where each element represents a column value, each element is named after the column, all elements that are part of the same row are children of a <ROW> element, and all <ROW> elements are children of a <ROWSET> element.
4. Loading Spreadsheet Data->To copy and paste text, the spreadsheet file must be less than 30KB. For files larger than 30KB, you can import the file in a delimited format (such as comma-delimited (.csv) or tab-delimited), upload the file, and then load the data into a new or existing table.
-Priya -
ORA-30648 - missing LOCATION keyword
All,
I am attempting to import via datapump an exported file (2 tables) from our lab to our production database.
The job is submitted and fails within 15 seconds due to the following error:
ORA-31693: Table data object "MYDATA"."TABLE1" failed to load/unload and is being skipped due to error:
ORA-30648: missing LOCATION keyword
This repeats for both tables selected for import.
The tables do NOT exist under the schema where they are being imported. I attempted to use both the "Entire file" option
and the "tables" option, selecting both tables that are in the file. Either option produces the same error.
I granted read and write to the user of the directory so it does not appear to be a missing location relative to the directory on the server.
Ideas?
GerryAll,
The issue IS related to having a dba_directories entry where a lower-case value is used and perhaps with a "-".
I successfully loaded the data by migrating it to a directory that was defined as upper-case (within the data movement options of the GRID).
The value is defined in dba_directories. Though permissions were granted to the user by enclosing double-quotes (") around the value I think there
is a problem when using lower-case values as directory names.
Anyway, dropping and re-creating the dba_directory entry as BACKUP-BACKUPS (formally lower-case) and re-granting resolved the issue.
Thanks
Gerry -
ORA-02000: missing UNUSED keyword
Hi,
I have a table tab_xyz
CREATE TABLE tab_xyz(
col1 number,
col2 varchar2(10)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "MF_DIR" ACCESS PARAMETERS ( records
delimited BY newline badfile MF_DIR:'xyz.csv.bad' logfile MF_DIR:'
xyz.csv.log' discardfile MF_DIR:'xyz.csv.dsc' fields terminated BY
',' ) LOCATION ( 'xyz.csv' )
I'm trying to add reject limit to 100 but getting the below error:
ALTER TABLE tab_xyz SET REJECT_LIMIT 100;
Error starting at line 8 in command:
ALTER TABLE tab_xyz SET REJECT_LIMIT 100
Error report:
SQL Error: ORA-02000: missing UNUSED keyword
02000. 00000 - "missing %s keyword"
I tried to add the UNUSED keyword.. but error again
ALTER TABLE tab_xyz SET UNUSED REJECT_LIMIT 100;
Error starting at line 8 in command:
ALTER TABLE tab_xyz UNUSED SET REJECT_LIMIT 100
Error report:
SQL Error: ORA-01735: invalid ALTER TABLE option
01735. 00000 - "invalid ALTER TABLE option"
*Cause:
*Action:
I have 2 questions:
1. how can I set the reject limit?
2. where can I set when(01) = '"' in the create table
Thanks.Can someone please look into the below issue:
I tried to add the load when in my create table script..
create table tab_xyz
col1 varchar2(10),
col2 varchar2(10)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "MF_DIR" ACCESS PARAMETERS (
records delimited BY newline
load when (01) = '"'
badfile mf_dir:'xyz.csv.bad'
logfile mf_dir:'xzy.csv.log'
discardfile mf_dir:'xyz.csv.dsc'
fields terminated BY ',' optionally enclosed BY '"' MISSING FIELD VALUES ARE NULL
(col1, col2)
LOCATION ('xyz.csv' ))
REJECT LIMIT 100; but got the below error:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found ")": expecting one of: "colon"
KUP-01007: at line 2 column 19
29913. 00000 - "error in executing %s callout"
*Cause: The execution of the specified callout caused an error.
*Action: Examine the error messages take appropriate action.Thanks. -
Sqlldr: ORA-00928: missing SELECT keyword
Hi,
I am not able to make sqlldr work using very simple control file. Any hints appreciated
P..
<pre>
-bash-3.2$ cat /export/oracle/a.ctl
LOAD DATA
INTO TABLE utf8
fields terminated by ","
(char, x)
-bash-3.2$ cat /export/oracle/data.txt
a,b
c,d
-bash-3.2$ bin/sqlldr sysman/11amcoke control=/export/oracle/a.ctl data=/export/oracle/data.txt log=import
SQL*Loader: Release 11.2.0.1.0 - Production on Tue Oct 11 01:02:26 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 2
-bash-3.2$ cat import.log
SQL*Loader: Release 11.2.0.1.0 - Production on Tue Oct 11 01:02:26 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Control File: /export/oracle/a.ctl
Data File: /export/oracle/data.txt
Bad File: /export/oracle/data.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table UTF8, loaded from every logical record.
Insert option in effect for this table: INSERT
Column Name Position Len Term Encl Datatype
CHAR FIRST * , CHARACTER
X NEXT * , CHARACTER
Record 1: Rejected - Error on table UTF8, column CHAR.
ORA-00928: missing SELECT keyword
Record 2: Rejected - Error on table UTF8, column CHAR.
ORA-00928: missing SELECT keyword
Table UTF8:
0 Rows successfully loaded.
2 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 33024 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 2
Total logical records rejected: 2
Total logical records discarded: 0
Run began on Tue Oct 11 01:02:26 2011
Run ended on Tue Oct 11 01:02:26 2011
Elapsed time was: 00:00:00.12
CPU time was: 00:00:00.04
</pre>
Should it matter, this is on Solaris 10u10, amd64 (VirtualBox) with 8GB RAM
Edited by: user13277775 on 10.10.2011 16:10Don't use reserved words (CHAR,which is a format specification) as column names:
http://download.oracle.com/docs/cd/E11882_01/server.112/e22490/ldr_field_list.htm#i1015797 -
ORA-23460: missing value for column column name in resolution method
Hi All,
We have implemented bi-directional replication via oracle streams..Oracle 10g 10.2.0.4
We are getting following error in conflict resolution .ORA-23460: missing value for column "ASSIGNED_APPL_USER_ID" in resolution method "<method>" for
"TMADMIN"."PATIENT_VISITS"."REP_UPDATE" ORA-01403: no data found .
Above column ASSIGNED_APPL_USER_ID is NULL column ,We are using MAXIMUM resolution method for update conflict handler .We tried many times on toad the same scenarios and working fine.
We have set supplemental logging on primay and unique columns.
I found many docs on internet and they all said add supplemental logging on all columns.
We did set up like this ...:
DECLARE
COLS DBMS_UTILITY.NAME_ARRAY;
BEGIN
cols(1) := 'STUDY_ID';
cols(2) := 'KENDLE_STUDY_SUB_ID';
cols(3) := 'SITE_ID';
cols(4) := 'PATIENT_ID';
cols(5) := 'VISIT_NUMBER';
cols(6) := 'VISIT_TYPE';
cols(7) := 'VISIT_DATE';
cols(8) := 'CRF_COLLECTION_DATE';
cols(9) := 'DT_CREATED';
cols(10) := 'DT_MODIFIED';
cols(11) := 'MODIFIED_BY';
cols(12) := 'MONITOR_VISIT_DATE';
cols(13) := 'UNSCHEDULED_VISIT_REASON';
cols(14) := 'LAST_SCHEDULED_VISIT_NUMBER';
cols(15) := 'VISIT_DATE_IN_TRIALBASE';
cols(16) := 'PROJECTED_VISIT_DATE';
cols(17) := 'SEND_CERTIFIED_LETTER_YN';
cols(18) := 'ASSIGNED_APPL_USER_ID';
cols(19) := 'DATE_CERTIFIED_LETTER_SENT';
cols(20) := 'DURATION_OF_CALL_IN_MINUTES';
cols(21) := 'COMPLETED_APPL_USER_ID';
cols(22) := 'CALL_STATUS';
cols(23) := 'VISIT_HYPERLINK';
cols(24) := 'NEXT_CALL_DATE';
cols(25) := 'DT_PMNT_REQUESTED_TO_SPONSOR';
cols(26) := 'VISIT_DATE_NAP_YN';
cols(27) := 'MONITOR_VISIT_DATE_NAP_YN';
cols(28) := 'CRF_COLLECTION_DATE_NAP_YN';
cols(29) := 'IMPORTED_SUBJECT_VISIT_DATE';
cols(30) := 'REMINDER_SENT_DATE';
DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
OBJECT_NAME =>'TMADMIN.PATIENT_VISITS',
METHOD_NAME =>'MAXIMUM',
RESOLUTION_COLUMN =>'DT_MODIFIED',
COLUMN_LIST =>cols);
END;
DT_MODIFIED is our resolution columns......
Any help would be appreciate...
Thanks in advance.
Thanks,
Nick.You should post this question the Oracle Server forums.
Good luck!
Warm regards.
ashok -
Error in MERGE statement - ORA-00969: missing ON keyword
Hi All ,
I am trying to write a Merge statement , but I am getting the below error .
MERGE INTO main_table m
USING tab_1 l, tab_2 u
ON ( l.col1 = m.col1
AND u.col2 = l.col2)
When Matched then
update........
When not mached then
Insert ......
But here I am using 2 tables in the USING clause . and here I am getting this error :-
142/17 PL/SQL: SQL Statement ignored
143/42 PL/SQL: ORA-00969: missing ON keyword
May I know where i am doing wrong ?Hi LuKKa, you are on the Portugues Forum, but we can help you, try the code mentioned below:
MERGE INTO main_table m
USING (select l.col1, l.col2, u.col2 from tab_1 l join tab_2 u on (u.col2 = l.col2)) t
ON (t.col1 = m.col1)
When Matched then
update........
When not mached then
Insert ......
Regards. -
"ORA-00928: missing SELECT keyword" only on one instance in RAC
I am using oracle 9i RAC.When I run a query in one instance it is working fine but in another instance of RAC it is giving "ORA-00928: missing SELECT keyword".
I am wondering why it happening in the same RAC.Please suggest me where is the problem.
ThanksSTAR_TRANSFORMATION_ENABLED=true in both instances
My query lools like
SELECT * FROM
(SELECT coulmn1,col2
FROM tab1 wh full OUTER JOIN tab2 stg on wh.row_id = stg.row_id
WHERE wh.MODIFICATION_NUM IS NULL
OR stg.MODIFICATION_NUM IS NULL
OR wh.MODIFICATION_NUM <> stg.MODIFICATION_NUM) WHERE REC_STA <>'D';
Please suggest
Thanks -
Performance issue with FDM when importing data
In the FDM Web console, a performance issue has been detected when importing data (.txt)
In less than 10 seconds the ".txt" and the ".log" files are created the INBOX folder (the ".txt" file) and in the OUTBOX\Logs (the ".log" file).
At that moment, system shows the message "Processing, please wait” during 10 minutes. Eventually the information is displayed, however if we want to see the second page, we have to wait more than 20 seconds.
It seems a performance issue when system tries to show the imported data in the web page.
It has been also noted that when a user tries to import a txt file directly clicking on the tab "Select File From Inbox", the user has to also wait other 10 minutes before the information is displayed on the web page.
Thx in advance!
Cheers
MatteoHi Matteo
How much data is being imported / displayed when users are interacting with the system.
There is a report that may help you to analyse this but unfortunately I cannot remember what it is called and don't have access to a system to check. I do remember that it breaks down the import process into stages showing how long it takes to process each mapping step and the overall time.
I suspect that what you are seeing is normal behaviour but that isn't to say that performance improvements are not possible.
The copying of files is the first part of the import process before FDM then starts the import so that will be quick. The processing is then the time taken to import the records, process the mapping and write to the tables. If users are clicking 'Select file from Inbox' then they are re-importing so it will take just as long as it would for you to import it, they are not just asking to retrieve previously imported data.
Hope this helps
Stuart -
Error message when importing data using Import and export wizard
Getting below error message when importing data using IMPORT and EXPORT WIZARD
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
<dir>
<dir>
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
- Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information
about the failure.
(SQL Server Import and Export Wizard)
Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
(SQL Server Import and Export Wizard)
</dir>
</dir>
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Smash126Hi Smash126,
Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
The following document about Add Data or Log Files to a Database is for your reference:
http://msdn.microsoft.com/en-us/library/ms189253.aspx
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Error in CMP ORA-00928: missing SELECT keyword
Hi,
I am using WLS 8.1 and with CMP trying to insert records in oracle 8.1.
But I am getting error as below.
I hv not defined and finder method in the home interface except the default findByPrimaryKey().
javax.transaction.TransactionRolledbackException: EJB Exception: : java.sql.SQLE
xception: ORA-00928: missing SELECT keyword
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:579)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1894)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:109
4)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:2132)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:2015)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:2877)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:608)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStateme
nt.java:95)
at weblogic.ejb20.manager.BaseEntityManager.executeInsertStmt(BaseEntity
Manager.java:546)
at weblogic.ejb20.manager.BaseEntityManager.executeDBOperations(BaseEnti
tyManager.java:435)
at weblogic.ejb20.internal.TxManager$TxListener.executeDBOperations(TxMa
nager.java:596)
at weblogic.ejb20.internal.TxManager$TxListener.executeDBOperationsDrive
r(TxManager.java:571)
at weblogic.ejb20.internal.TxManager$TxListener.beforeCompletion(TxManag
er.java:731)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(Serv
erSCInfo.java:1010)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(Se
rverSCInfo.java:115)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAn
dChain(ServerTransactionImpl.java:1142)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(
ServerTransactionImpl.java:1868)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:250)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
sactionImpl.java:221)
at weblogic.ejb20.internal.BaseEJBHome.postHomeInvoke(BaseEJBHome.java:3
93)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:268)
at gateway.GatewayUpdate_f6dwyt_HomeImpl.create(GatewayUpdate_f6dwyt_Hom
eImpl.java:84)
at gateway.LogBean.msg_update(LogBean.java:137)
at gateway.LogBean.onMessage(LogBean.java:57)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
In a nushell I am not using any finder methods in my client program.Still I am
getting this error.
Pl.advise.
Regards,
RamHi,
Please do not post the same question in multiple newsgroups.
Please see my reply in the other group.
thanks -
Error ORA-00928: missing SELECT keyword
Dear All,
I have created package and also create function in it return me error..
ORA-00928: missing SELECT keyword..
Package Specification
CREATE OR REPLACE PACKAGE PERSONLIZATION_NEW AS
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER;
END PERSONLIZATION_NEW;
Package body.
CREATE OR REPLACE PACKAGE BODY PERSONLIZATION_NEW AS
ITEM_ID NUMBER;
BRANCH_CODE NUMBER;
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS RESULT NUMBER;
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS
RESULT NUMBER;
BEGIN
SELECT
count(a.asset_number) into result
FROM
SELECT
c.CATEGORY_ID,
a.ASSET_NUMBER
FROM
FA_ADDITIONS A
,FA_CATEGORIES_VL C
,FA_BOOKS B
,FA_LOCATIONS FL
,FA_DISTRIBUTION_HISTORY DH
,FA_TRANSACTION_HEADERS TH
WHERE
A.ASSET_CATEGORY_ID=C.CATEGORY_ID
AND A.ASSET_ID=B.ASSET_ID
AND A.ASSET_ID=TH.ASSET_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
AND B.TRANSACTION_HEADER_ID_IN=TH.TRANSACTION_HEADER_ID
AND B.ASSET_ID=TH.ASSET_ID
AND A.ASSET_ID=DH.ASSET_ID
AND DH.LOCATION_ID=FL.LOCATION_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
--AND FL.SEGMENT4 = 'Shalimar Campus Lahore'
AND TH.TRANSACTION_TYPE_CODE <> 'FULL RETIREMENT'
-- AND FL.SEGMENT4 = (SELECT flex_value FROM fnd_flex_values WHERE ATTRIBUTE1 = '04010303')
AND A.ASSET_CATEGORY_ID IN (
SELECT
msi.asset_category_id
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.item_id = ITEM_ID
AND FL.SEGMENT4 = (
SELECT
(SELECT FLEX_VALUE FROM fnd_flex_values WHERE ATTRIBUTE1 = B.ATTRIBUTE2) BRANCH
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.ATTRIBUTE2 = BRANCH_CODE
) A
RETURN(RESULT);
END;
--END PERSONLIZATION_NEW;Hi,
user10941925 wrote:
Dear All,
I have created package and also create function in it return me error..
ORA-00928: missing SELECT keyword..Whenever you have a problem concerning an error message, post the complete error message, including line numbers.
Make sure it's clear what causes the error. In this case, is it compiling the package spec, compiling the package body, or calling the function?
Package Specification
CREATE OR REPLACE PACKAGE PERSONLIZATION_NEW AS
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER;
END PERSONLIZATION_NEW;Please format your code to make it readable.
Whenever you post formatted text (including, but not limited to, code) on this site, type these 6 characters:
\(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
Package body.
CREATE OR REPLACE PACKAGE BODY PERSONLIZATION_NEW AS
ITEM_ID NUMBER;
BRANCH_CODE NUMBER;These global variables aren't being used anywhere, but they're not causing the error.
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS RESULT NUMBER;
You've got two copies of the function signature here. Remove one of them.
>
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS
RESULT NUMBER;
BEGIN
SELECT
count(a.asset_number) into result
FROM
SELECT
c.CATEGORY_ID,
a.ASSET_NUMBER
FROM
FA_ADDITIONS A
,FA_CATEGORIES_VL C
,FA_BOOKS B
,FA_LOCATIONS FL
,FA_DISTRIBUTION_HISTORY DH
,FA_TRANSACTION_HEADERS TH
WHERE
A.ASSET_CATEGORY_ID=C.CATEGORY_ID
AND A.ASSET_ID=B.ASSET_ID
AND A.ASSET_ID=TH.ASSET_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
AND B.TRANSACTION_HEADER_ID_IN=TH.TRANSACTION_HEADER_ID
AND B.ASSET_ID=TH.ASSET_ID
AND A.ASSET_ID=DH.ASSET_ID
AND DH.LOCATION_ID=FL.LOCATION_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
--AND FL.SEGMENT4 = 'Shalimar Campus Lahore'
AND TH.TRANSACTION_TYPE_CODE <> 'FULL RETIREMENT'
-- AND FL.SEGMENT4 = (SELECT flex_value FROM fnd_flex_values WHERE ATTRIBUTE1 = '04010303')
AND A.ASSET_CATEGORY_ID IN (
SELECT
msi.asset_category_id
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.item_id = ITEM_ID
AND FL.SEGMENT4 = (
SELECT
(SELECT FLEX_VALUE FROM fnd_flex_values WHERE ATTRIBUTE1 = B.ATTRIBUTE2) BRANCH
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.ATTRIBUTE2 = BRANCH_CODE
) ALooks like you're missing a ; above.
>
RETURN(RESULT);
END;
--END PERSONLIZATION_NEW;The END statement for the package is commented out. -
Error when importing data using DTW template
Dear All gurus/experts,
I have a problem when importing data into SBO system using DTW. The error message is "sort error, pls check the prepared data and delimeter. I use SBO 2004 SP 00 PL 41. I don't understand to cope with this problem, I have no idea anymore. I appreciate your answer. TIA
Rgds,Tks for your reply. I have seen it and the error message relates to delimeter. I have tried to correct the error by recreate the file and save as tab delimeted. Right now I am trying to import the files.
Rgds,
Maybe you are looking for
-
Can I use my Imac (mac os x 10.6.8 2.8 ghz intel core duo) as a second monitor for my mac book pro?
-
Folio builder asking to download
When I open indesign the folio builder panel is asking to download. I have downloaded, uninstalled and reinstalled following several suggestions in this forum. Everything in the folio builder panel is greyed out so I can't click on anything to sign i
-
Load, crop and saving jpg and gif images with JFileChooser
Hello! I wonder is there someone out there who can help me with a applic that load, (crop) and saving images using JFileChooser with a simple GUI as possible. I'm new to programming and i hope someone can show me. Tor
-
When i open Elements 11, I don't get anywhere to log in. Can I save my photos online in my account?
-
Dynamically passing %rowtype
I've built an update row trigger on several tables. The purpose is to capture the old and new values in variables then passing these values to a package containing MANY functions/procedures that validate the data. Each table is structured differently