REP-2103 Column 'G_LINE_TOTAL' : PL/SQL formula returned invalid value
I'm getting the above error message for printing of certain invoices. Most invoices work/print just fine. What's puzzling to me is that this error message says that COLUMN 'G_LINE_TOTAL' returns an invalid value. However, I don't have a column called G_LINE_TOTAL. I do have a group called G_LINE_TOTAL. I've looked at all functions within that group but can't find anything. I've got exception handling in all of the functions but no exception get's listed. Does anyone have any idea how I can go about troubleshooting/fixing this problem?
thanks
John
I appreciate the feedback. Those are all the things I have looked at already. I think this problem is being masked by another problem. The report works most of the time. The existence of certain transactions is causing the report to fail and to provide a misleading error message. I have never seen a GROUP column ( doesn't really exist!). The datavalues from these other transactions are exceedingly large. I'm going through each funtion now and increasing the return sizes. The error message keeps shifting around to other columns almost as if the report is somewhat corrupt ... still runs thoug for most invoice printing. I'll keep hacking away at this.
Thanks again.
Similar Messages
-
REP-2103: PL/SQL formula returned invalid value or no value
Hi all,
Before clone the report GEPS FA Prepare Mass Addition Report runs fine. But after cloned from production, it shows error:
Enter Password:
REP-0004: Warning: Unable to open user preference file.
REP-2103: Column 'G_MASS_ADDITION_INVOICE' : PL/SQL formula returned invalid value or no value.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-2103: Column 'G_MASS_ADDITION_INVOICE' : PL/SQL formula returned invalid value or no value.
Actually I didn't have such column 'G_MASS_ADDITION_INVOICE'. This is a group name. I tried a lot, such as widden the formula column width or delete the formula column, but it still show this error. I didn't have any trigger or other formula column. Even I create a new report use the same name with a single query( select sysdate from dual), but it still shows the same error.
Is there anyone faced this issue before or can help me ? Thanks
ares
Edited by: 930967 on Jun 13, 2012 12:46 AMHi;
Please see:R12 GL Account Balances Across Ledgers (GLRGCBGT) Report Errors With: REP-0004 MSG-00025 MSG-00104 MSG-01221 REP-2103 REP-0069 REP-57054, Program Exited With Status 1 [ID 1316929.1]
Regard
Helios -
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. -
PL/SQL: Function returned without value in authentication schemes
Hi all,
finally i did the authentication shemes based on my function and my own table ,thank you all for help :-) ,but now when i enter
1-correct user name &wrong password <it is gonna work,the authentication workin fine >
i am gonna get <Invalid Login Credentials> which is right in case of wrong login
2-wrong user name &wrong password <it is not gonna work>
3-wrong user name &correct password <it not gonna work>
in case of not working i am getting the following error:
ORA-06503: PL/SQL: Function returned without value
Error ERR-10460 Unable to run authentication credential check function.
any help to solve this issue so that it will display <Invalid Login Credentials>
in all cases of invalid login
thanks in advance ,
Ahmed,scott,you efforts was useful and i beleive that the error that i am getting it is from the function that i have can you please take a look on :
FUNCTION CHECK_USER
( P_USERNAME IN varchar2,
P_PASSWORD IN varchar2)
RETURN boolean
IS
BEGIN
for c1 in (select user_name, password from vms2_employee_details where user_name = P_USERNAME)
loop
if P_PASSWORD = c1.password then
return true;
------dbms_output.put_line('the return from the function is true');
else
return false;
----dbms_output.put_line('the return from the function is false');
end if;
end loop;
EXCEPTION
WHEN no_data_found THEN
return false;
when others then
return false;
----dbms_output.put_line('the return from the function is false');
END;
and tell me what do you think ,
thanks,
ahmed -
ORA-06503: PL/SQL: Function returned without value
Hello
Having a bit of a problem with piplined functions.
Why does this work :
SET SERVEROUTPUT ON
DECLARE
TYPE SARRAY IS TABLE OF VARCHAR2(4000);
CURSOR CU IS SELECT * FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777 AND BASE_ID = 94;
T_STUD NUMBER(10);
T_BASE NUMBER(10);
T_DATE DATE;
T_MARKS VARCHAR2(1000);
LEN_MARKS NUMBER;
PDATE DATE;
SDATE DATE;
EDATE DATE;
SLEN NUMBER;
WEEKLEN NUMBER;
INIPOS NUMBER;
MARRAY VARCHAR2(1000);
SUBARRAY SARRAY := SARRAY();
SFILL VARCHAR2(14) := '--------------';
EPOS NUMBER;
MY_REC DX_XML_ATTENDANCE%ROWTYPE;
BEGIN
SUBARRAY.EXTEND(17);
DBMS_OUTPUT.ENABLE(100000000);
--FOR MY_REC IN CU
OPEN CU;
LOOP
FETCH CU INTO MY_REC;
EXIT WHEN (CU%NOTFOUND);
T_STUD := MY_REC.STUD_ID;
T_BASE := MY_REC.BASE_ID;
T_DATE := TO_DATE(MY_REC.START_DATE, 'DD/MM/YYYY');
T_MARKS := MY_REC.MARKS;
LEN_MARKS := LENGTH(T_MARKS);
EPOS := LEN_MARKS / 2;
SDATE := ROUND(TO_DATE(T_DATE), 'W') - 1;
INIPOS := TO_NUMBER(TO_CHAR(T_DATE, 'D'));
SLEN := INIPOS + 3;
PDATE := SDATE;
EDATE := SDATE + EPOS;
MARRAY := SUBSTR(T_MARKS, 1, SLEN);
WEEKLEN := LENGTH(MARRAY);
IF WEEKLEN < 14 THEN
MARRAY := SUBSTR(SFILL, 1, 14 - WEEKLEN) || MARRAY;
END IF;
SUBARRAY(1) := T_STUD;
SUBARRAY(2) := T_BASE;
SUBARRAY(3) := PDATE;
FOR i IN 4 .. 17 LOOP
SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
END LOOP;
DBMS_OUTPUT.PUT_LINE(SUBARRAY(1)||' '||SUBARRAY(2)||' '||SUBARRAY(3)||' '||SUBARRAY(4)||' '||
SUBARRAY(5)||' '||SUBARRAY(6)||' '||SUBARRAY(7)||' '||SUBARRAY(8)||' '||SUBARRAY(9)||' '||
SUBARRAY(10)||' '||SUBARRAY(11)||' '||SUBARRAY(12)||' '||SUBARRAY(13)||' '||SUBARRAY(14)||' '||
SUBARRAY(15)||' '||SUBARRAY(16)||' '||SUBARRAY(17));
WHILE PDATE < EDATE LOOP
PDATE := PDATE + 7;
MARRAY := SUBSTR(T_MARKS, SLEN + 1, 14);
WEEKLEN := LENGTH(MARRAY);
IF WEEKLEN < 14 THEN
MARRAY := MARRAY || SUBSTR(SFILL, 1, 14 - WEEKLEN);
END IF;
FOR i IN 4 .. 17 LOOP
SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
END LOOP;
SUBARRAY(3) := PDATE;
DBMS_OUTPUT.PUT_LINE(SUBARRAY(1)||' '||SUBARRAY(2)||' '||SUBARRAY(3)||' '||SUBARRAY(4)||' '||
SUBARRAY(5)||' '||SUBARRAY(6)||' '||SUBARRAY(7)||' '||SUBARRAY(8)||' '||SUBARRAY(9)||' '||
SUBARRAY(10)||' '||SUBARRAY(11)||' '||SUBARRAY(12)||' '||SUBARRAY(13)||' '||SUBARRAY(14)||' '||
SUBARRAY(15)||' '||SUBARRAY(16)||' '||SUBARRAY(17));
PDATE := PDATE + 7;
SLEN := SLEN + 14;
END LOOP;
END LOOP;
END;
and this does not :
CREATE OR REPLACE PACKAGE BODY PARSE_ATTENDANCE AS
FUNCTION ENUM_MARKS(SEL_SQL IN VARCHAR2)
RETURN TMP_ATT_DATA_TBL PIPELINED
IS
V_SQL VARCHAR(1000):= SEL_SQL;
V_CURSOR SYS_REFCURSOR;
V_ROW TMP_ATT_HOLDING:=TMP_ATT_HOLDING(NULL, NULL, NULL, NULL);
T_STUD NUMBER(10);
T_BASE NUMBER(10);
T_DATE DATE;
T_MARKS VARCHAR2(1000);
LEN_MARKS NUMBER;
PDATE DATE;
SDATE DATE;
EDATE DATE;
SLEN NUMBER;
WEEKLEN NUMBER;
INIPOS NUMBER;
MARRAY VARCHAR2(1000);
SUBARRAY SARRAY := SARRAY();
SFILL VARCHAR2(14) := '--------------';
EPOS NUMBER;
BEGIN
SUBARRAY.EXTEND(17);
OPEN V_CURSOR FOR V_SQL;
LOOP
FETCH V_CURSOR INTO V_ROW.STUD_ID, V_ROW.BASE_ID, V_ROW.START_DATE, V_ROW.MARKS;
EXIT WHEN V_CURSOR%NOTFOUND;
T_STUD := V_ROW.STUD_ID;
T_BASE := V_ROW.BASE_ID;
T_DATE := TO_DATE(V_ROW.START_DATE, 'DD/MM/YYYY');
T_MARKS := V_ROW.MARKS;
LEN_MARKS := LENGTH(T_MARKS);
EPOS := LEN_MARKS / 2;
SDATE := ROUND(TO_DATE(T_DATE), 'W') - 1;
INIPOS := TO_NUMBER(TO_CHAR(T_DATE, 'D'));
SLEN := INIPOS + 3;
PDATE := SDATE;
EDATE := SDATE + EPOS;
MARRAY := SUBSTR(T_MARKS, 1, SLEN);
WEEKLEN := LENGTH(MARRAY);
IF WEEKLEN < 14 THEN
MARRAY := SUBSTR(SFILL, 1, 14 - WEEKLEN) || MARRAY;
END IF;
SUBARRAY(1) := T_STUD;
SUBARRAY(2) := T_BASE;
SUBARRAY(3) := PDATE;
FOR i IN 4 .. 17 LOOP
SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
END LOOP;
PIPE ROW(TMP_ATT_DATA_OBJ(SUBARRAY(1),SUBARRAY(2),SUBARRAY(3),SUBARRAY(4),
SUBARRAY(5),SUBARRAY(6),SUBARRAY(7),SUBARRAY(8),SUBARRAY(9),
SUBARRAY(10),SUBARRAY(11),SUBARRAY(12),SUBARRAY(13),SUBARRAY(14),
SUBARRAY(15),SUBARRAY(16),SUBARRAY(17)));
WHILE PDATE < EDATE LOOP
PDATE := PDATE + 7;
MARRAY := SUBSTR(T_MARKS, SLEN + 1, 14);
WEEKLEN := LENGTH(MARRAY);
IF WEEKLEN < 14 THEN
MARRAY := MARRAY || SUBSTR(SFILL, 1, 14 - WEEKLEN);
END IF;
FOR i IN 4 .. 17 LOOP
SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
END LOOP;
SUBARRAY(3) := PDATE;
PIPE ROW(TMP_ATT_DATA_OBJ(SUBARRAY(1),SUBARRAY(2),SUBARRAY(3),SUBARRAY(4),
SUBARRAY(5),SUBARRAY(6),SUBARRAY(7),SUBARRAY(8),SUBARRAY(9),
SUBARRAY(10),SUBARRAY(11),SUBARRAY(12),SUBARRAY(13),SUBARRAY(14),
SUBARRAY(15),SUBARRAY(16),SUBARRAY(17)));
PDATE := PDATE + 7;
SLEN := SLEN + 14;
END LOOP;
END LOOP;
END ENUM_MARKS;
END PARSE_ATTENDANCE;
(This is then called like SELECT * FROM
TABLE(
PARSE_ATTENDANCE.ENUM_MARKS(
'SELECT STUD_ID, BASE_ID, START_DATE, MARKS
FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777
AND BASE_ID = 94'))
I get the same error, around this section near the bottom :
PDATE := PDATE + 7;
SLEN := SLEN + 14;
Can any one help?Here is an example. you are missing an return statement.
SQL> create or replace type varchar2_table is table of varchar2(10) ;
2 /
Type created.
SQL> show errors
No errors.
SQL> create or replace function get_data return varchar2_table pipelined is
2 begin
3 pipe row(('Test')) ;
4 end ;
5 /
Function created.
SQL> show errors
No errors.
SQL> select * from table(get_data) ;
ERROR:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "KKISHORE.GET_DATA", line 3
no rows selected
SQL> create or replace function get_data return varchar2_table pipelined is
2 begin
3 pipe row(('Test')) ;
4 return ;
5 end ;
6 /
Function created.
SQL> show errors
No errors.
SQL> select * from table(get_data) ;
COLUMN_VAL
Test
SQL> -
Help with an SQL Expression - Return field value where Datetime is Min or First datetime
Hello,
I'm extracting results for a patient population.
I have 6 SQL expressions that pull back the first date for specific procedures or Medications being ordered.
These Expressions work perfect - One of the expressions return the first time a lab was ordered.
I'm using SQL that return
Min(OrderDatetime)
From OrderTable
Where
LABCode = XXX
I've now been ask to return the value of this lab result.
Question: How do I write an SQL expression that return the Lab value of the Min(OrderDatetime)
Example Data
PATID* LABID * OrderDatetime * ResultValue
Pat1*133 * 12/12/2013 11:00:pm * 77
Pat1*145 * 12/12/2013 11:45:pm * 45
Pat1*147 * 12/13/2013 12:10:AM * 78
I was to return 77
Thanks
SteveHere is what I came up with but I'm getting an error -
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <,>,>= or when the subquery is used as an expression.
Any thoughts on what I'm doing wrong?
SELECT LABRESULTS.ORDER_VALUE as LabResult
FROM LABRESULTS, ORDERS_PROD, PATIENT_HSP
WHERE
"ORDERS_PROD"."CSN_ID" = "LABRESULTS"."CSN_ID" AND
"ORDERS_PROD"."ORDER_PROC_ID" = "LABRESULTS"."ORDER_PROC_ID" AND
ORDERS_PROD.ORDER_INST IN (
SELECT Min(ORDERS_PROD.ORDER_INST)
FROM ORDERS_PROD
WHERE "PATIENT_HSP"."CSN_ID" = "ORDER_PROD"."CSN_ID" AND
("ORDERS_PROD"."ORDER_STATUS_C"<>4 OR
"ORDERS_PROD"."ORDER_STATUS_C"<>9) AND
"ORDERS_PROD"."FUTURE_OR_STAND" IS NULL AND
"ORDERS_PROD"."REASON_FOR_CANC_C" IS NULL AND
("ORDERS_PROD"."PROC_CODE" = 'LAB7764' OR
"ORDERS_PROD"."PROC_CODE" = 'LAB7765' OR
"ORDERS_PROD"."PROC_CODE" = 'LAB7766' OR
"ORDERS_PROD"."PROC_CODE" = 'LAB7767') -
Multiple column heading for sql that returns single column
Hi All,
I have just started using APEX and my apex version is 3.2.0.00.27.
We have a report that displays the output from a query similar to the below one. We are using borderless template and removed the "before each row" and "after each row" values to allow the output displayed in table format.
Now we wanted to include heading for each column displayed in table. We wanted to include headings from a derived value, Example for column1 , heading need to display the sysdate and column2 heading should be sysdate-1 and so on. But the column attribute tab is having only one column My_rep. Not sure how to se pl/sql type column heading in this case. Could someone please help me to achieve this?
Please let me know if I have missed to provide any other details. Thanks in advance.
select '<tr>
<td>' || column1 || '</td>' ||
<td>' || column2 || '</td>' ||
<td>' || column3 || '</td>' ||
<td>' || column4 || '</td>' ||
|| '</tr>' My_rep
from mytable22335813-cfb0-46c4-9bef-b61a46f0de67 wrote:
Please update your forum profile with a real handle instead of "22335813-cfb0-46c4-9bef-b61a46f0de67"
I have just started using APEX and my apex version is 3.2.0.00.27.
Upgrading from this unsupported version to the current 4.2 release is recommended.
When you post a question, always include the following information in addition to the full APEX version number:
Full database version, edition and host OS
Web server architecture (EPG, OHS or APEX listener), server platform, and host OS
Browser(s)/version(s) used
UI/Theme
Templates
Region type (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. To get a detailed answer then it's appropriate for the questioner to take on a significant part of the effort by reproducing the problem on apex.oracle.com before asking for assistance with specific issues, which can then be seen at first hand in a real APEX environment.
we wanted to get a report in Apex with the below format. and we wanted to change background color of each cell depends on the combination of code||status
Heading sysdate sysdate-1 sysdate-2 ...(sysdate-30
====== ====== ======== =======
name code||status code||status
name code||status
we are using the below query to get this table format. But heading is the issue we are facing now
select '<tr>
<td>' || name || '</td>' ||
'<td style=background-color:' || case when sysdate0='0C' then 'Green' when sysdate0='0I' then 'Red' when (substr(sysdate0,1,1)!='0' and substr(sysdate0,1,1)='I') then 'Orange' else 'Yellow' end || '>  ' || sysdate0 || '  </td>' ||
|| '</tr>' repcolumn
from
(select
a.name,
max(decode(trunc(a.ardate),trunc(sysdate), a.code||a.STATUS , '' )) sysdate0,
max(decode(trunc(a.ardate),trunc(sysdate-30), a.code||a.STATUS , '' )) sysdate30
from
mytab a
where
a.ardate>=sysdate-30
group by a.name)
See Re: Matrix report for a custom report template-based solution to a similar problem, with dynamically generated column headings. -
REP-2103 error in report summary column
Hi ,
I am getting the below error while running the report
REP-2103 Column 'CS_Achived_tot' : PL/SQL formula returned invalid value or no value
Could you please help me ...
Thanks in Advance
Regards,
SandeepHi,
I have used the below code in the formula column
function CF_Achived_totFormula return Number is
v_achived_tot number;
begin
begin
select nvl(:attribute4,0)
into v_achived_tot
from dual;
exception when others
then
--v_achived_tot :=0;
srw.message(130,'CF_Achived_tot');
return null;
end;
return (v_achived_tot);
end;
no data was there in the attribute4 feild and it was varchar2 data type
Regards,
sandeep -
Rep=2103 error message in oracle 10g
Hi After migrating from 6i to 10g I am getting the following msg when I try to generate a report:
rep-2103: column 'cf_street_address' : pl/sql formula returned invalid value or no value
I have the following code in my function:
function CF_street_addressFormula return VARCHAR2 is
begin
return(:address_line_1||' '||:address_line_2||' '||:address_line_3||' '||:address_line_4);
end;
Please help.I'm using Reports 9.0.4.0.19 and I recreated the scenario without any issues. I'm just wondering what would happen if you wrapped the :address_lines in nvl's in case 10g cares.
return(nvl(:address_line_1,' ')||' '||nvl(:address_line_2,' ')||' '||nvl(:address_line_3,' ')||' '||nvl(:address_line_4,' '));
Sorry, I could reproduce the problem.
-mike -
I have written a formula column in a matrix report. I want to display a zero instead of a blank field where there are not recordd. When I run the report I get the error REP-2103: Column 'Zero_disp' PL/SQL formula returned invalid or no value. How do I trap this error. I have tried the no_data_found and SRW.DO_SQL_FAILURE and others. All these failed. Any Ideas.
nullcan u plz send me the script for ur formula column ?
-
Hi after migrating to 10g from 6i. when I want to generate a report I am getting the following err:
rep-2103: column 'cf street_address' : pl/sql formula returned invalid value or no value below is my code:
function CF_street_addressFormula return VARCHAR2 is
begin
return(:address_line_1||' '||:address_line_2||' '||:address_line_3||' '||:address_line_4);
end;
Please help I am stuck with this problem for days now
Thanks in advance...Since your function worked with the constant value, its not the issue related to migration, otherwise it will not have worked. So it must be related to data. What is the precision for your formula column ? Is it wide enough to accept the output?
Still if you want to know how you can delete and create the formula, then go to the property pallete of the formula column , click button in front of PL/SL Formula and then delete that function.
To create the formula, follow the same steps, when you click the PL/SL Formula button, you will be able to create
the function. -
How do I return a value from a column based on info from neighboring columns?
I have a table of data that looks similar to this:
Weight
Name
School
Division
106
Name1
School1
1
106
Name2
School2
2
106
Name3
School3
3
106
Name4
School4
4
113
Name5
School5
1
113
Name6
School6
2
113
Name7
School1
3
113
Name8
School3
4
It's a very large table, so there will be multiple matches for Schools, and occasionally a few matches for Names, but there will always be only one match for a given Weight and Division.
In a separate table, how can I get the name of the person associated with the unique weight and division?
In my head, the formula goes" "Look in the Weight column to find 106, then look in the Division column to find 4, then return the value from the Name column." But I can't figure out the formula that will do that.
Any thoughts?Hi momogabi,
This can be easily done with an index column.
The formula I used in your original table for the index column is:
=A2&"-"&D2. This was filled down. The column can be hidden.
You can see the formula in the search table. If I wanted to eliminate the index column in that table the formula would look something like:
=INDEX('Table 1-1'::B,MATCH(A2&"-"&B2,'Table 1-1'::E,0),1)
Hope this helps.
quinn -
How to search two columns and return a value in the same row to a cell?
Identification
Diameter
Soak
3" Tank (inches/kft)
AWG
mils
Code
Strands
Shield
Conductor
Insulation
Semi-Con
Days
SD
Injection
Soak
Total
2
175
00
7
External
0.288
0.692
0.752
60
0.4
3.6
20.0
23.6
2
220
00
7
External
0.284
0.764
0.864
75
0.4
3.6
20.0
23.6
2
260
00
7
External
0.284
0.844
0.944
90
0.4
3.6
21.8
25.4
2
320
00
7
External
0.288
0.964
1.064
110
0.4
3.6
24.3
27.0
2
345
00
7
External
0.288
1.014
1.114
115
0.4
3.6
25.6
29.2
Length
3"
4"
AWG
mils
Soak
SD
Injection (3")
Injection (4")
650
2
320
I want to input two values, AWG and mils and return the value in the Days column.
In the instance of what I am showing .... AWG=2 AND mils=320 so Soak=110 ....
I want to search the columns (AWG) AND (mils) to return a value in the column (Days) for that row into cell H10 (Soak) ...
So far I have toyed with LOOKUP, INDEX and MATCH ....SCW,
I'm sure there is a clever way to cascade functions to avoid adding an auxiliary column in your practice table, but to me it wouldn't be worth the aggravation. I would add a column that concatenates Columns A & B, AWG & mils. This column can be anywhere and would be Hidden. Let's say your new column is Column N.
In Column N, fill the body rows with:
=A&"-"&B
As good Numbers programming form would indicate, let's name the Practice Table Practices and only put the practices in that table. In another table where you do the lookup, let's call it Program, we will have the calculation/lookup.
Based on your example, I'd guess that AWG may be in Column D and mils in Column E of your Program table, and the Soak lookup in Column F. If I'm wrong, adjust the column id.
In Column F, write:
=OFFSET(Practices::I$1,MATCH(D&"-"&E, Practices::N,0)−1, 0)
The hyphen in the concatenated representation of the combination of AWG and mils is just tp make it more readable.
As I'm sure you know, you could use other approaches, but since I had you put your aux column at the end of your Practices table, OFFSET with MATCH is a clean approach. INDEX could be used too.
Here's an illustration:
Regards,
Jerry -
ORA-06503: Function returned without value at WWV_FLOW_WEBSERVICES_API
Hi, I use APEX_WEB_SERVICE.MAKE_REQUEST function to call web service however stuck with ORA-06503 exception. It would be nice to hear comment from someone who knows APEX_WEB_SERVICE from inside.
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "APEX_040000.WWV_FLOW_WEBSERVICES_API", line 125
ORA-06512: at "NEC_VLD.NEC_DVS_WS", line 77
The error occurs about 60% of my test case calls and always with the same parameter values. I thought something bad on web service side however I've tested it with the same parameter values on SoapUI tool and it works just fine. The parameter itself is fixed length varchar2 variable (e.g. 636BB6EFF19941420F00010000007B00000000000000).
My environments
APEX
4.0.1 - no luck
upgrade to 4.0.2 - no luck
plain 4.0.2 install - no luck
Databases
10.0.2
11.0.2
Procedure to call web service:
procedure getDocumentByID(
p_xhdoc in varchar2) is
l_envelope clob;
l_resp_msg XMLType;
begin
l_envelope := '<?xml version="1.0" encoding="UTF-8"?>';
l_envelope := l_envelope||'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sap="http://saperion.dvs.affecto.lt/">
<soapenv:Header/>
<soapenv:Body>
<sap:getDocumentByID>
<id>'||p_xhdoc||'</id>
</sap:getDocumentByID>
</soapenv:Body>
</soapenv:Envelope>';
l_resp_msg := apex_web_service.make_request(
p_url => get_ref_value('DVS_DOC_WS_URL'),
p_action => get_ref_value('DVS_DOC_WS_ACTION'),
p_envelope => l_envelope,
p_username => null,
p_password => null);
end;
Regards,
TomasNever mind sorry! I've just tried granting APEX_040000 permissions for this particular Network ACL and now it works! Can I suggest that apex_web_service.make_request needs some better error handling however.
Here's the fix...
BEGIN
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(
acl => 'mywebservice.xml'
, principal => 'APEX_040000'
, is_grant => TRUE
, privilege => 'connect'
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(
acl => 'mywebservice.xml'
, principal => 'APEX_040000'
, is_grant => TRUE
, privilege => 'resolve'
COMMIT;
END; -
ORA-06503 Function returned without value
Hi All,
I'm getting ORA-06503: PL/SQL: Function returned without value error on this function..... can u guide me where Im going wrong?
Cheers!
I
FUNCTION XX(P_Trial_No IN PATIENT_VISITS.TRIAL_NO%TYPE,
P_PATIENT_VISIT_NO IN PATIENT_VISITS.PATIENT_VISIT_NO%TYPE) RETURN NUMBER IS
L_Sequence_No Patient_Visit_Designs.Sequence_No%TYPE;
BEGIN
-- Retrieves and returns sequence Number from patient visit designs
IF p_patient_visit_no IS NOT NULL THEN
SELECT Sequence_No
INTO L_Sequence_No
FROM Patient_Visit_Designs pvd
WHERE pvd.Trial_No = P_Trial_No AND
pvd.Patient_Visit_No = P_Patient_Visit_No;
RETURN L_Sequence_No;
ELSE
RETURN NULL;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
END XX;CREATE OR REPLACE FUNCTION xx (
p_trial_no IN patient_visits.trial_no%TYPE,
p_patient_visit_no IN patient_visits.patient_visit_no%TYPE
RETURN NUMBER
IS
l_sequence_no patient_visit_designs.sequence_no%TYPE;
BEGIN
l_sequence_no := NULL;
-- Retrieves and returns sequence Number from patient visit designs
BEGIN
IF p_patient_visit_no IS NOT NULL
THEN
SELECT sequence_no
INTO l_sequence_no
FROM patient_visit_designs pvd
WHERE pvd.trial_no = p_trial_no
AND pvd.patient_visit_no = p_patient_visit_no;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
l_sequence_no := NULL;
END;
RETURN l_sequence_no;
END xx;
Maybe you are looking for
-
I just got a MSI 4200Ti 64 meg. card today. I followed the install instructions and the driver seemed to install normally. When it stopped installing I got a message that said. An error occurred during the installation of this device. The data is inv
-
Regarding cl_gui_alv_grid
Hi Experts, Iam displaying ALV list using method set_table_for_first_display of class cl_gui_alv_grid. Iam using container to display ALV list.Now my problem is that in contanier Iam getting whole toolbar, to access this toolbar i have to use mouse k
-
Hello. I'm posting in these forums because I really don't know where else to go. I have been trying for the past several days to figure out how to go about writing my program but to no avail. The project requires reading many lines each containing se
-
User Exit for ko01 ( Creation of Internal Order )
Hi, My requirement is to validate the Business Area & Profit Center based on the Responsible Cost Center entered. EVEN if the Business Area & Profit Center are valid entries as per the data, they should be replaced by the Business Area, Profit Center
-
Hi, I'm creating an ad hoc query to retrieve data from table PPDIT by filtering the transaction key. This is to get a list of amounts posted to the technical accounts(Transaction key HRA). However, the query output and the output from table PPDIT thr