DataExport problem-ODBC Layer Error: [21S01]-ORA-00947
Hi,
I have one planning application from which I want to transfer data to Oracle DB in the table "t". I have 11 dimension in the planning application, so I have created 12 columns in the table "t"(11 for dimension-members and 1 col for value) with the following script---
create table t (
a varchar2(100),
b varchar2(100),
c varchar2(100),
d varchar2(100),
e varchar2(100),
f varchar2(100),
g varchar2(100),
h varchar2(100),
i varchar2(100),
j varchar2(100),
k varchar2(100),
l number)
I have created a wire protocol dsn. But when I execute the following calcscript ---
fix (jan,budget,fy08)
DATAEXPORT "DSN" "xz" "t" "tstschma" "password" ;
ENDFIX
then it is showing error below---
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021000)
Connection With SQL Database Server is Established
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1012695)
DataExport can not do batch insert to relational table. The ODBC driver and/or RDBMS doesn't support batch insert. Using record by record SQL export
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021013)
ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-00947: not enough values]
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021014)
ODBC Layer Error: Native Error code [947]
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Error(1012085)
Unable to export data to SQL table [t]. Check the Essbase server log and the system console to determine the cause of the problem.
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1021002)
SQL Connection is Freed
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Warning(1080014)
Transaction [ 0x920001( 0x4a5a097a.0x7918 ) ] aborted due to status [1012085].
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1012579)
Total Calc Elapsed Time for [datexprt.csc] : [0.062] seconds
[Mon Jul 13 00:04:10 2009]Local/essdb/Plan1/admin/Info(1013274)
Calculation executed
Please guide me if I am doing anything wrong...
Thanks & Regards.
Hi,
It all depends on you dense dimension being used in your export, it will use a column for each member.
For example if the dense dimension on the export was period and you were doing a level 0 export (level0 members of time are Jan:Dec)
Then there would need to be a column for each dimension and 12 columns for each of the periods (Jan:Dec)
The best way to work it out is to export to a file first in column format and you will see how the table needs to look.
The columns have to exactly match the data being exported.
Take a look at this post, it something you may experience as well :- Re: DATAEXPORT command- Periods in the columns when sparse
Cheers
John
http://john-goodwin.blogspot.com/
Similar Messages
-
Persistent Layer Error Message: ORA-01729 database link name expected
Hi,
I've done a series of loads from DB2 into Oracle, initially importing the database objects from DB2 and Oracle, then creating the mappings, deploying and executing. It all worked and I had no problems. For some reason now whenever I tried to import a new Database Object (table) from the DB2 I enter the password, test it and it successfully connects but then I get the error message on a popup box:
SQL Exception
Persistent Layer Error: SQL Exception
Class Name: CacheMediator
Method Name: getSQLResult
Persistent Layer Error Message: ORA-01729 database link name expected
If I create a new location for the same database it works and I can import new objects. The only difference I can think from the initial imports is that I’ve moved the repository from one server to another. Might be the case where some information got corrupted in the metadata.
Has anyone seen this kind of problem before? Can you please help me out with this issue?
Thanks in advance for your help.
Regards,
LeoI found it.When I look at the db links there is something missing.When I correct it everything works fine.
-
Using Essbase 7.0.1 I have several load rules calling SQL data I copied from one server to another.
On the new server some rule files work fine but some dont .
I am getting the following error message in the log file.
ODBC Layer Error: 01004 ==> [[microsoft] [ODBC Sql server Driver]String data, right truncation]
ODBC Layer Error: Native Error code [0] Info (1021014)
can anyone help me in solving this issue
and where I have to make necessary changes....
ThanksI always kind of work backwards on these sorts of issues until I can isolate where the problem is.
1. Is it a view or a table you are trying to load from?
2. Using Query Analyzer or the current SQL Server admin tool, can you query the same table/view that your load rule is trying to load data from?
3. Can you still query it when you login as the same user that the load rule is running as?
4. Is there some sort of "weird" data type in the view/table that might be tripping things up?
5. If you omit that particular column from the load rule, does it start working again?
6. Does it work if you use CAST or something similar in the SQL query or in the construction of the View itself, in order to make it a more "basic" data type?
These are all probably different things I would try to see if I can isolate where the problem is. Good luck --
Jason
[jasons hyperioni blog|http://www.jasonwjones.com] -
Problem with TSPITR - error message ORA-1152
I have tried, in vain, to use the TSPITR procedure, exactly as outlined in the Oracle documentation - on Oracle 8i under Windows NT and Oracle 9i under Linux. After following the exact procedure detailed in the Oracle Backup and Recovery Guide to try and recover a tablespace to a given point in time, I keep getting the ORA-01152 error message (datafile not restored from a sufficiently old backup). Yet this is not true - the datafile in question (SYSTEM.DBF) was restored from a backup much older than the backup control file which I generated and placed in the clone database used for the recovery. I have not, so far, succeded in recovering any tablespaces to a prior point in time.
Has anyone encountered the same problem ? Is it a known bug ?That's a glitch on the website and HP is currently working on how to get rid of it.
-
Hello specialists!
I have a question regarding an error i'm getting when trying to use the DataExport command to copy data form essbase to SQL.
[Wed Jun 20 10:35:19 2012]Local/RealApp/Plan2/admin/1744/Info(1021013)
ODBC Layer Error: [21S01] ==> [[Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.]
Now, my question was regarding the number of columns and their names. The table in the SQL side has the exact name of the dimensions i'm passing.
Any has any idea of what might be happening? How about the order? I don't have any idea how to place the order of the dimensions in the command.
SET DATAEXPORTOPTIONS
DataExportLevel "Level0";
DataExportDynamicCalc "OFF";
DataExportrelationalFile "ON";
FIX( "Real","Base","NA","MRXMRH","BRVASS","OCSPROJREC","FY11")
FIX("INDPAGSD", @RELATIVE (YearTotal,0))
DATAEXPORT "DSN" "ODBC_NAME" "TABLE_NAME" "username" "password";
ENDFIX
ENDFIXHi,
You will have to define the correct number of columns on the destination table. If each member belongs to a separate dimension than you will have 8 columns + 12 with the value for each month. -
Copy Express - ODBC-2028 Error
Hai to All,
I am using SAP B1 2005B . I want to Transfer Data From One Data Base To Another Data Base . I am using to Copy Express to Transfer. I am using Replace All Method in Copy Express. While I am Copying the Users from One DB to Another DB , i got the Error "No Matching Records Found(ODBC-2028) " for Some user ..
Thanks & Regards
MadhuHey ,
I just transfer the User Master Only. I am not able to transfer , same problem ODBC-2028 Error is comming.
Please help me out from this issue.
thanks & regards
Madhu -
ORA-19511: Error received from media manager layer, error text:
Dear Concern,
When I am restoring the oracle 9i database by brtools for SAP ECC 5.0 the following error message appeared. Mention that, this is second time restoration. First time restoration was successfull. After that one of us change some permission in differerent folders and files in the hp-ux server. Now we facing the following problem. Please help me...
BR0449I Restore mode: ALL
BR0419I Files will be restored from backup: bechtawc.fnr 2010-01-08 20.00.06
BR0416I 100 files found to restore, total size 520901.781 MB
BR0424I Files will not be decompressed
BR0421I Restore device type: rman_util
BR0280I BRRESTORE time stamp: 2010-01-19 16.19.21
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRRESTORE:
BR0280I BRRESTORE time stamp: 2010-01-19 16.19.23
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRRESTORE time stamp: 2010-01-19 16.19.23
BR0554I Starting restore from full database backup using RMAN...
BR0278E Command output of 'SHELL=/bin/sh /oracle/PRD/920_64/bin/rman nocatalog':
Recovery Manager: Release 9.2.0.1.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN>
RMAN> connect target /;
connected to target database: PRD (DBID=1654880374)
using target database controlfile instead of recovery catalog
RMAN> *end-of-file*
RMAN>
host command complete
RMAN> 2> 3> 4> 5> 6> 7> 8>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on sbt_1 channel at 01/19/2010 16:19:24
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
HP-UX Error: 8324: Unknown system error
Additional information: 7110
ORA-19511: Error received from media manager layer, error text:
SBT error = 7110, errno = 8324, sbtinit: internal error - invalid argument(s)
RMAN>
Recovery Manager complete.
BR0280I BRRESTORE time stamp: 2010-01-19 16.19.24
BR0279E Return code from 'SHELL=/bin/sh /oracle/PRD/920_64/bin/rman nocatalog': 1
BR0536E RMAN call for database instance PRD failed
BR0280I BRRESTORE time stamp: 2010-01-19 16.19.24
BR0556E Restore from full database backup using RMAN failed
Best Regards
WahidHi,
It is mentioned that I already have done a restoration and recovery first time. But when I tried to do the same job I mean restoration in second time for a specific requiremnt I am getting the above error.
Our syestem info is:
DB: Oracle 9i
OS: HP-UX
Storage: EMC storage
Backup tools: Data protector 5.5
Please help me.
Regards
Wahid -
ORA-00947 Error on straight SELECT with INNER JOINs
I have a REAL bizarre situation. I have a SQL SELECT Statement that is joining a few tables. I actually have a WHERE clause where I am filtering by a coulmn within one of the joins. However, if I try to SELECT that coulmn, I am getting an Oracle error ORA-00947. I can even SELECT * and get ALL the columns back form ALL the tables I'm joing on, including the one that is not allowing me just to select it.
Has anyone ever seen anything like this before???
I appreciate your review and am hopeful for a reply.
Thanks.
PSULionRPJez....Not sure if I need to worry about proprietary stuff here...Here's the SQL and the column I'm trying to select is CDM_SUPPLIER_UTILITY.SUPPLIER_CD.
When I do that is when I get the ORA-00947 error. And our version is...
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
SELECT CDM_CALENDAR.CALENDAR_DT,
CDM_OFFER.SUPPLIER_NAME,
CDM_SUPPLIER_UTILITY.SUPPLIER_CD,
ABS(SUM(CDM_MONEY.TRANSACTION_AMT))
FROM CDEDM.CDM_TRANSACTIONS CDM_TRANSACTIONS
INNER JOIN CDEDM.CDM_MONEY CDM_MONEY
ON CDM_MONEY.TRANSACTION_FK = CDM_TRANSACTIONS.TRANSACTION_GK_PK
INNER JOIN CDEDM.CDM_OFFER CDM_OFFER
ON CDM_OFFER.OFFER_GK_PK = CDM_MONEY.OFFER_FK
INNER JOIN CDEDM.CDM_CALENDAR CDM_CALENDAR
ON CDM_CALENDAR.CALENDAR_DT_PK = CDM_MONEY.TRANSACTION_DT_FK
INNER JOIN CDEDM.CDM_BILL_ACCOUNTS CDM_BILL_ACCOUNTS
ON CDM_BILL_ACCOUNTS.BILL_ACCT_GK_PK = CDM_MONEY.BILL_ACCOUNTS_FK
INNER JOIN CDEDM.CDM_SUPPLIER_UTILITY CDM_SUPPLIER_UTILITY
ON CDM_SUPPLIER_UTILITY.SUPPLIER_UTILITY_GK_PK = CDM_BILL_ACCOUNTS.SUPPLIER_FK
WHERE CDM_SUPPLIER_UTILITY.SUPPLIER_CD = 'MC2'
AND CDM_CALENDAR.CALENDAR_DT BETWEEN NEXT_DAY(trunc(SYSDATE-12),'Saturday')
AND NEXT_DAY(trunc(SYSDATE-5),'Saturday')
AND CDM_TRANSACTIONS.TRAN_DECODE IN
'Debit/Bill Installment Billing',
'Debit/Bill Electric Service',
'Debit by Transfer of Payment TO Uncollec',
'Debit Miscellaneous Electric',
'Credit for Transfer TO Uncollectible',
'Credit for Tranfer FROM Uncollectible',
'Credit Miscellaneous Electric',
'Credit Alteration',
'Credit Allowance',
'Bill Consumption On An Inactive Meter'
AND CDM_MONEY.TRANSACTION_LEVEL_CD IN
'A',
GROUP BY CDM_CALENDAR.CALENDAR_DT,
CDM_OFFER.SUPPLIER_NAME,
CDM_SUPPLIER_UTILITY.SUPPLIER_CD -
ERROR in PROCEDURE PL/SQL: ORA-00947: not enough values
Hi all i am creating a Procedure in which i am getting very strange ERROR
h4. i am using Oralce 11g, SQL Developer 3
my scenario is :
CREATE SEQUENCE tt_TMPMEASURESOURCE_ID
START WITH 1
INCREMENT BY 1;
CREATE TABLE tt_TMPMEASURESOURCE
ID NUMBER(10,0) ,
OBJNAME VARCHAR2(200) ,
PRSP NUMBER(10,0) ,
SOURCEID NUMBER(10,0) ,
SOURCENAME VARCHAR2(100) ,
FIX NUMBER(3,0) ,
MNAME VARCHAR2(1000) ,
MDESC VARCHAR2(1000)
CREATE OR REPLACE TRIGGER tt_TMPMEASURESOURCE_ID_TRG
BEFORE INSERT
ON tt_TMPMEASURESOURCE
FOR EACH ROW
BEGIN
SELECT tt_TMPMEASURESOURCE_ID.NEXTVAL INTO :NEW.ID
FROM DUAL;
END;
INSERT INTO TT_TMPMEASURESOURCE
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*
values ('rajnish',43,54,'anish',4,'apple','kumar');
output :
+1 row inserted+
h4. select * from TT_TMPMEASURESOURCE;
h3. 1 rajnish 43 54 anish 4 apple kumar
creating and compiling Procedure
create or replace procedure tem_test
as
begin
INSERT INTO tt_TmpMeasureSource
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*
VALUES ( v_ObjName, v_PrespectiveID, v_SourceID, v_SourceName, v_FIX, v_MName, v_MDesc );
when compiling
Error(63,16): PL/SQL: SQL Statement ignored
Error(63,28): PL/SQL: ORA-00947: not enough values
i am do not understand that when Trigger A trigger is allready there for 1st column
then why its giving me this error?
please help me out
thanksi got my solutions
creating and compiling Procedure
create or replace procedure tem_test
as
begin
INSERT INTO tt_TmpMeasureSource
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*
VALUES ( v_ObjName, v_PrespectiveID, v_SourceID, v_SourceName, v_FIX, v_MName, v_MDesc );
it was a typography mistake
this line was missing in Original procedure
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*thanks -
Problem with APEX 4.0 - "ORA-20001: Error with: GRANT CREATE CLUSTER "
I have a workspace which I've succesfully created with schema A.
However when i try to assign an additional schema to it, schema B, I get the following error message :-
"ORA-20001: Error with: GRANT CREATE CLUSTER TO "BI_SOURCES" ORA-01031: insufficient privileges"
i've tried granting "create cluster with admin option' to users A,B,anonymous AND APEX_040000. FLOWS_030000 already has these privileges.
Anybody any ideas ?
regs
johnnie
Edited by: johnnie d on 31-Aug-2011 10:58I have experience the similiar problem. The error message: Invalid exist/not exist condition: ORA 2001 Query must begin with Select or With.
I have home page and concept review report page below home page. And Concept review form under the report page. The error is display in all of the three pages. I checked carefully and still not able to find where the error come from. Can you please help? All the report region and form region have the select statement, is it from the LOVs? Home
Concept review report
Concept reveiw Form(for detail info)
Thank you! -
Hello all!
I need urgent help!!
I'm trying to start Oracle 8.1.6 i on Solaris 8. But there are lot of error:
1. During initialising the database with dbassist, the error Code Error Codes: ORA 01034-"ORACLE not available" and ORA-01012-"not logged on" were shown.
2. I'm trying to start Oracle 8i on Sun Solaris 8 by typing svrmgrl-connect interal-startup. But the following was shown on by screen:
passau% svrmgrl
Oracle Server Manager Release 3.1.6.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
SVRMGR> connect internal
Connected.
SVRMGR> startup
LRM-00109: could not open parameter file '?/dbs/[email protected]'
ORA-01078: failure in processing system parameters
Please help me!!
My e-mail Adress: [email protected]I am pretty sure this has to do with the SGA..
what you may have to do is adjust you
system file
Here the values for /etc/system file: for more info look under
Oracle specific parameters (documetation) set shmsys:shminfo_shmmax=122496729 set semsys:seminfo_semmap=150 set semsys:seminfo_semopm=100 set semsys:seminfo_semvmx=12767 set semsys:seminfo_semmni=200 set semsys:seminfo_semmns=200 set semsys:seminfo_semmsl=200 set semsys:seminfo_semmnu=200 set semsys:seminfo_semume=100 set shmsys:shminfo_shmmin=100 set shmsys:shminfo_shmmni=100 set shmsys:shminfo_shmseg=100
good luck
[email protected]
null -
Hi,
I have a package body as given below
CREATE OR REPLACE PACKAGE BODY DF AS
FUNCTION T24_GetCOPYBatchKeyAndDate(RECKEY VARCHAR2)
RETURN RTNVAL
IS
RTNVAL1 RTNVAL;
DELPOS INTEGER;
LISTSTRING VARCHAR2(4000);
BEGIN
SELECT XMLRECORD INTO LISTSTRING FROM V_F_RO_COPY_KEYLIST WHERE RECID = RECKEY;
LISTSTRING := TRIM(LISTSTRING);
WHILE LENGTH(LISTSTRING) <> 0
LOOP
DELPOS := INSTR(LISTSTRING, ' ');
IF DELPOS = 0 THEN
DELPOS := LENGTH(LISTSTRING) + 1;
END IF;
--SELECT SUBSTR(LISTSTRING, 9, DELPOS - 9) INTO RTNVAL FROM DUAL;
SELECT TO_DATE(SUBSTR(LISTSTRING, 1, 8),'YYYYMMDD'), SUBSTR(LISTSTRING, 9, DELPOS - 9) INTO RTNVAL1 FROM DUAL;
LISTSTRING := SUBSTR(LISTSTRING, DELPOS+1, LENGTH(LISTSTRING)-DELPOS);
END LOOP;
RETURN(RTNVAL1);
END T24_GetCOPYBatchKeyAndDate;
END DF;
but i get compilation errors below is the error can anyone let me know whats the exact problem here and earlier i used this fucntion as PIPILINED and PIPE_ROW(RTNVAL).
It was working fine now i wanted to test this without pipeline fucntion.
SQL> SHOW ERRORS;
LINE/COL ERROR
19/5 PL/SQL: SQL Statement ignored
19/105 PL/SQL: ORA-00947: not enough values
SQL>Now...if you do a BULK inside the loop, then the collection get's overwritten every loop iteration.
So going back to the original post
replacing
WHILE LENGTH(LISTSTRING) <> 0
LOOP
DELPOS := INSTR(LISTSTRING, ' ');
IF DELPOS = 0 THEN
DELPOS := LENGTH(LISTSTRING) + 1;
END IF;
SELECT TO_DATE(SUBSTR(LISTSTRING, 1, 8),'YYYYMMDD'), SUBSTR(LISTSTRING, 9, DELPOS - 9)) INTO RTNVAL1 FROM DUAL;
LISTSTRING := SUBSTR(LISTSTRING, DELPOS+1, LENGTH(LISTSTRING)-DELPOS);
END LOOP;
with
WHILE LENGTH(LISTSTRING) <> 0
LOOP
DELPOS := INSTR(LISTSTRING, ' ');
IF DELPOS = 0 THEN
DELPOS := LENGTH(LISTSTRING) + 1;
END IF;
RTNVAL1.EXTEND();
RTNVAL1(RTNVAL1.COUNT()) := DATEKEYPAIR(TO_DATE(SUBSTR(LISTSTRING, 1, 8),'YYYYMMDD')
, SUBSTR(LISTSTRING, 9, DELPOS - 9));
LISTSTRING := SUBSTR(LISTSTRING, DELPOS+1, LENGTH(LISTSTRING)-DELPOS);
END LOOP;
should help
hth -
Hi friends,
When i tried to connect user and test for ODBC connection for the succesful connection , it is failing and throwing the below error like
ORA-12154:TNS could not resolve the connect identifier specified
But i can connect the user that im trying to connect via ODBC through toad or sql developer. But i dont know what was the problem, that it is not connecting via ODBC source.
Is there any reason's behind it
Thanks
Regards,
MiniHi mini,
It is clearly says Tns could not connected.
ORA-12154:TNS could not resolve the connect identifier specified
Please check below steps.
1. Are try to connecting client system? If yes--> Check tns entry in tnsname.ora file.
2. In Obiee --> Connection pool--> check data source name--> username and password.
3. Are you try to connect windows client system then please install obiee Admintool client software and try to connect it.
4. Please recheck Dsn connection steps.
Hope this help's
Thanks
Satya -
hi,
my report is giving error REP-1401:'cf_1formula': Fatal PL/SQL error occured,
ORA-01403: no data found
There are two table emp1 and emp2 created from employees table from HR schema
I have deleted some records from table emp2 where department id is 110
main query is
select employee_id, first_name, department_id from emp1
now i created a foumula column
function CF_1Formula return Number is
dept number;
begin
select department_id into dept from emp2 where employee_id = :employee_id;
return(dept);
end;
the above error is given when report is run. i tried
exception
when_no_data_found then
dept:=000
but problem is not solved
i want to disply any number in this foumula column if the record is not foundM. Khurram Khurshid wrote:
exception
when_no_data_found then
dept:=000try this code in formula
function CF_1Formula return Number is
dept number;
begin
select department_id into dept from emp2 where employee_id = :employee_id;
if dept is not null then
return(dept);
else
return 0;
end if;
end; Hope this will help you...
If someone response is helpful or correct please, mark is accordingly. -
Hi everyone.
Can anyone tell me what is wrong in this code below?
Code:
function NO_DAYSFormula return Number is
begin
IF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT<:MATURITY_DATE
AND :ACCT_OPN_DT>:P_FR_DT
THEN RETURN (:P_TO_DT-:ACCT_OPN_DT+1);
ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT<:MATURITY_DATE
AND :ACCT_OPN_DT<:P_FR_DT
THEN RETURN (:P_FR_DT-:P_TO_DT+1);
ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
AND :P_TO_DT>:MATURITY_DATE
AND :ACCT_OPN_DT<:P_FR_DT
THEN RETURN (:P_FR_DT-:MATURITY_DATE+1);
END IF;
END;
It gets compiled successfully but when i run the report, i get 2 errors.
Error 1:
REP-1401: 'no_daysformula':Fatal PL/SQL error occurred.
ora-06503: PL/SQL : Function returned without value.
Error 2:
REP-0619: You cannot run without a layout.
Should i use only 1 return statement?
Can i use as many return statements as i want?
What is the exact mistake? Please let me know.
Thank You.Let me clear you the first thing...
If you get any fatal errors while running the report (e.g., function returned without value,no value etc.,) the report will show
REP-0619: You cannot run without a layout.
So you just correct the function 'no_daysformula' .
First of all you run the report without that formula column.
If it works fine then , Check the return value of your formula column (Your formula column properties --> Return value --> value (It will be DATE as i think so).
As function will always return a single value, Check your formula 'no_daysformula' returns the same.
declare a return variable say for example..
DECLARE
V_DATE DATE;
BEGIN
--YOUR CODE---
RETURN V_DATE := (RETURN VALUE)
END;
Last but not least ... use Else condition to return (NULL or any value ) in your code and check..
If any Problem persists let me know
Regards,
Soofi.
Maybe you are looking for
-
Dear All, What is the TCode to find the Field linked to its Table (not vice versa) or/and To how many Tables it is being linked? Best regards Niranjan
-
Cant get my my ipod shuffle to load on to my imac computer
i cant seem to get my daughters ipod shuffle to be reconized to my imac computer. im not sure if its because the thing is dead. i alos didnt get a disc with the ipod i bought it off ebay about a year ago.im kinda stumped on this. please help. thanks!
-
How to erase apps from launch pad on Mac air?
Can anyone help? I have 2 skype apps, dupicate icons for other stuff...
-
Fireworks to Dreamweaver not centering
I have made a website in fireworks and exported the html to dreamweaver. When I opened dreamweaver to center the webpage, it would not allow me to do so. I think it is because I have drop down menus. Anyone have any advice? Thanks, Chris Van Pelt
-
I have requirement that when I create PO in ME21N, The Purchasing group should come automatically from Z table based on User ID in the ORG.Data Tab of header. Next is when I enter Material in Item,It should Check whether that material exists in that