Parition Value of Null Converted to 0
Hello
I have some field values like weight and volume that I want to map to a product table field of type measurement. The problem is the source data contains null null or 0.00 null.
Import manager forces converting the nulls to 0, else can not execute impoart The result is that 0 is written to the product table field when the value is actually a 0. I have tried every option I could find to preserve nulls, but it seems when using the measurement field type, that it does not accept nulls.
Any advice is appreciate.
MDM 5.5SP6
Thanks
Lee Lewis
Add-Dorg.apache.el.parser.COERCE_TO_ZERO=falseto Tomcat VM arguments.
Also see step 3 here [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html#IntegrateTomcatInEclipse] and the links in it.
Similar Messages
-
How to convert a measure value to null when the actual measure value is 0
Hello Gurus,
I have year, products, measure 1, measure 2, measure 3. I am added three products into one category by using bin in the analysis i am getting zeros for some of the measure cells when it should be null values, because the actual measure values are null for indivudual product. How can i convert that 0's to null. Please advise.
Thanks,
RCTo answer your immediate question, you can write this:
CASE WHEN table.column = 0 THEN NULL ELSE table.column END
Remember though, that any aggregations done on a record that is NULL will not yield a sum. That is why the usual case is to convert NULLs to 0s. But that may not be a concern for what you are doing. Good luck! -
Need Help :: Current row attribute value returning null
Hi Frds,
I am facing the problem that
Current row attribute value returning null............ even though value is there..... plz.. he
This is the code in PFR
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("queryBtn")!= null)
String pPersonId = pageContext.getParameter("ctrlPersonId");
String rowReference = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
OptionsVORowImpl curRow = ( OptionsVORowImpl) am.findRowByRef(rowReference);
String dtlsItem = (String)curRow.getFlexValue(); /* this is returning null value */
/* here creating the hashmap and calling the page with the hashmap*/
Thanks & Regards,
jaya
Message was edited by: 9d452cf7-d17f-4d1e-8e0e-b22539ea8810Hi Jaya,
You want to catch Flexfield values?
Try below code for catch value.
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("queryBtn")!= null)
OADescriptiveFlexBean dfb = (OADescriptiveFlexBean)webBean.findChildRecursive("flexDFF"); //get the DFF bean
OAWebBean dffbean = (OAWebBean)dfb.findChildRecursive("flexDFF0"); //get the field that applies to the attribute1 column that is being rendered
OAMessageStyledTextBean Stylebean = (OAMessageStyledTextBean)dffbean;
String dtlsItem = (String)Stylebean.getText(pageContext);
/* here creating the hashmap and calling the page with the hashmap*/
Thanks,
Dilip -
Hi everybody,
I have two Distinct Databases on two distinct servers. (Oracle Ent. Release 10.2.0.3.0 on AIX 5.3). After I install the latest patch last week, One of the APEX installation has some problems on Home>Application Builder Page. The error message is very random and
report error:
ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
When i change the view (details to icons), everything goes to normal. This error message is reflected some of the pages (report region) of some of my applications randomly. When it appears in a report region, i deselect the order method of the region, the result is normal.
But the other APEX application on the other instance has no problem. It is a bug? or Should i re-install the APEX instance?
Thank you for your interest?
Gökhan ÇATALKAYANo, but we have a reproducible test case now so we're working on it. See ORA-06502: PL/SQL: numeric or value error: NULL index table key value
Scott -
Hi all,
I got two query which link to together in order to get the cost, however, now I want to show on my report if there is not found in the link it will return null. What I use if the value is null in the field level however when display it still show as null instead of 0 that what I want ?
Any idea ? or any other way to solve my problem.
please help me URGENT!!! Thanks.Hi John,
Here is my first query :-
SELECT AW.PACKAGELEAD,
SUBSTR(AW.DEVICENO,1,50),
AW.CURR_OPER,
AW.CURQTY,
AW.OPERATION_SEQ_NUM,
AW.CUSTOMERCODE, ARC.ATTRIBUTE2, AW.DEVICENO DEVICE_NO, BSO.OPERATION_DESCRIPTION, AW.INVENTORY_ITEM_ID
FROM AIC_COST_WIP_TEMPB AW, AR_CUSTOMERS ARC, BOM_STANDARD_OPERATIONS BSO
WHERE ARC.ATTRIBUTE1 = AW.CUSTOMERCODE
AND ARC.STATUS = 'A'
AND BSO.OPERATION_CODE(+) = AW.CURR_OPER
ORDER BY AW.DEVICENO, AW.CURR_OPER
and here is the second query :-
SELECT DISTINCT MSIK2.CONCATENATED_SEGMENTS,
BBOM.ASSEMBLY_ITEM_ID,
BIC.OPERATION_SEQ_NUM,
CST.MATERIAL_COST,
BIC.COMPONENT_QUANTITY,
TO_NUMBER(BIC.attribute1) CPY
FROM BOM_BILL_OF_MATERIALS BBOM,
BOM_INVENTORY_COMPONENTS BIC,
MTL_SYSTEM_ITEMS_KFV MSIK2,
CST_ITEM_COST_TYPE_V CST
WHERE BBOM.BILL_SEQUENCE_ID = BIC.BILL_SEQUENCE_ID
AND BIC.component_item_id = MSIK2.inventory_item_id
AND MSIK2.INVENTORY_ITEM_ID = CST.INVENTORY_ITEM_ID
AND CST.ORGANIZATION_ID = 8
AND MSIK2.ORGANIZATION_ID = 8
AND cst.cost_type_id = 1
AND (BIC.disable_date IS NULL OR (BIC.disable_date - SYSDATE) > 0)
the link between two qeuery is the query1->inventory_item_id & operation_seq_num versus query2->assembly_item_id & operation_seq_num.
The both link is working fine. However, I need to show the results of formula and also cumulative of the results. But the result will only be shown if there is a link found between the two query, even I have putting null value as zero if it does not found from the query. So, that's my problem.
Hope u can understand and help me to resolve this problem. Thanks
Rgds
Lim -
Using MISSING FIELD VALUES ARE NULL for external table
I want to place a null for values missing in the sub_account field. Here is my external table:
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
missing field values are null
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1),
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited;
How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?made the change I received this error:
SQL> select * from ext_INCOMING_ORDERS_table;
select * from ext_INCOMING_ORDERS_table
ERROR at line 1:
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 "no": expecting one of: "comma, date_format,
defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
rtrim, terminated"
KUP-01007: at line 7 column 26
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited; -
ORA-01405: fetched column value is NULL
Hi All,
I am using OWB 10gR2 and DB 10gR2. I am getting the following error while executing the mapping,
ORA-01405: fetched column value is NULL.
I have used NVL function for the measure columns, but the problem is not solved.
Can anybody please tell me solution,
Thanks in advance,
SivaHi Siva
It may be that you've taken care of null value in just one place and now, the error is coming
from somewhere further down the line.
Regards
Arif -
Hi,
I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
My Approach is :
a) Create a record type variable ( concists of multiple segments)
b) Create a pl/sql table type of the records type in a)
c) Created a cursor of same structure as pl/sql table type ( collects data)
d) BULK CoLLECT data from cursor into pl/sql table
e) Print the data
But during Bulk Collect i get the below error :
Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindAshish_Apps wrote:
Hi,
I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
My Approach is :
a) Create a record type variable ( concists of multiple segments)
b) Create a pl/sql table type of the records type in a)
c) Created a cursor of same structure as pl/sql table type ( collects data)
d) BULK CoLLECT data from cursor into pl/sql table
e) Print the data
But during Bulk Collect i get the below error :
Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindVerify the rows you are fetching are having the same data types as your Record like Dates should go to date , decimal should not be fetched in type defined as number etc. -
Hi,
Can anyone let me know what is the issue on below code and how can we avoid that? i am getting the error like below
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
v_while_loop := 1;
v_delete_char_id := v_tabtype_result_values.FIRST;
WHILE v_while_loop <> v_tabtype_result_values.COUNT
LOOP
IF check_duplicate_nc_data (v_result_view,
v_tabtype_result_values(v_delete_char_id).value,
v_collection_id,
v_occurrence,
v_plan_id,
v_delete_char_id
THEN
DBMS_OUTPUT.PUT_LINE(v_delete_char_id);
v_tabtype_result_values.DELETE(v_delete_char_id);
ELSE
DBMS_OUTPUT.PUT_LINE(v_delete_char_id||','||v_tabtype_result_values(v_delete_char_id).id||','
||v_tabtype_result_values(v_delete_char_id).value||','
||v_tabtype_result_values(v_delete_char_id).validation_flag
END IF;
v_while_loop := v_while_loop + 1;
v_delete_char_id := v_tabtype_result_values.NEXT(v_delete_char_id);
END LOOP;Change:
WHILE v_while_loop <> v_tabtype_result_values.COUNT to
WHILE v_while_loop <= v_tabtype_result_values.LASTSY. -
ORA-06502: PL/SQL: numeric or value error: NULL index table key value Repor
W've been experiencing the Oracle Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value Report’ [we are currently on apex v3.0.1]. From the forum there was a reference to a bug fix: apex bug (6416829) fixed in 3.1. When we view '6416829' in Metalink we can see the bug title but cannot see any details as it's protected. Can anyone shed some light on why it's protected or provide further details.
We have many LIVE customers reporting this error and we want to be certain it's fixed in v3.1.
(currently we are working around this by flushing the shared pool but this is not ideal).
Any help would be appreciated.Scott,
This error has been thrown several times in the past 24 hours. Yesterday several of my reports threw the error, these reports have done so in the past. This morning APEX has begun throwing the error of which I have seen only once before. This is occuring at Home>Application>My Application. The error appears when I attempt to View the report in Details mode, is OK when I view the report in Icons mode. The error is occuring in my Prodution environment which has not been updated since 2/25/2009.
As before, I edited the SQL on my application's reports and the error then disappeared.
We are running Application Express 3.2.0.00.27 and Oracle Release 10.2.0.1.0. My browser is IE 7.0.
Plan to test later with FireFox provided I can download it to see if this might browser related.
Any inforamtion or guidance is appreciated.
Jeff -
Id column values for null objects
If I have something like the following, where B.id is mapped to an INTEGER
column in A's table, Kodo wants to store a NULL value into the column. This
doesn't work if the column is specified as NOT NULL. Is there a way to
configure Kodo to use some predefined integer value instead, such as 0
or -1?
class A {
int id;
B b;
class B {
int id;
A a = new A();
a.id = 123;
a.b = null;
pm.makePersistent(a);
pm.currentTransaction().commit();I'm not sure what you mean by "value mapping." In my case, I am mapping a
null reference to another object. I am using application identity. Here's a
more complete example (still very abbreviated, but hopefully complete
enough):
class A {
static class Id { int id; }
int id;
B b;
class B {
static class Id { int id; }
int id;
int value;
create table A (ID integer not null, BID integer not null)
create table B (ID integer not null, VALUE integer)
<jdo>
<package name="test">
<class name="A" objectid-class="A$Id">
<extension vendor-name="kodo" key="table" value="A"/>
<field name="id" primary-key="true">
<extension vendor-name="kodo" key="data-column" value="ID"/>
</field>
<field name="b">
<extension vendor-name="kodo" key="id-data-column" value="BID"/>
</field>
</class>
<class name="B" objectid-class="B$Id">
<extension vendor-name="kodo" key="table" value="B"/>
<field name="id" primary-key="true">
<extension vendor-name="kodo" key="data-column" value="ID"/>
</field>
<field name="value">
<extension vendor-name="kodo" key="data-column" value="VALUE"/>
</field>
</class>
</package>
</jdo>
A a1 = new A();
a1.id = 123;
a1.b = new B();
a1.b.id = 456;
a1.b.value = 999;
pm.makePersistent(a1);
A a2 = new A();
a2.id = 789;
a1.b = null;
pm.makePersistent(a2);
pm.currentTransaction().commit();
The inserts for table A look something like this:
insert into A (ID, BID) values (123, 456)
insert into B (ID, VALUE) values (456, 999)
insert into A (ID, BID) values (789, NULL)
The NULL value fails because the column is specified as NOT NULL
(pre-existing schema scenario).
What I need to be able to do is specify what value gets inserted for null
object references. Kodo is inserting NULL. I need to insert -1. -
Some :New values are null in compound trigger
<h4>
Hello everybody,
I use Oracle 11g R2.
My problem is: Why certain :New.values are Null in the before statement only if I have an after statement (that do nothing) ?
My test case:
</h4>
create table TEST
ID Number,
CODE char(10),
SUBJECT varchar2(60)
alter table TEST add constraint TEST_PK primary key (CODE);
insert into TEST (CODE, SUBJECT, ID) values ('AAA ', 'Subject AAA', 1);
insert into TEST (CODE, SUBJECT, ID) values ('BBB ', 'Subject BBB', 2);
commit;
<h4>My problem:</h4>
create or replace trigger Test_Trg
for insert or update on Test
compound trigger
before each row is
begin
dbms_output.put_line( 'Before Each Row, New values= Id: '||:New.Id||', Code: '||:New.Code||', Subject: '||:New.Subject );
dbms_output.put_line( 'Before Each Row, Old values= Id: '||:Old.Id||', Code: '||:Old.Code||', Subject: '||:Old.Subject );
:New.Code := Nvl(:New.Code, 'CODE'||:New.Id);
end before each row;
after statement is
begin
dbms_output.put_line( 'After Statement' );
end after statement;
end Test_Trg;
<h4>Now if I do that:</h4>
update Test set Subject = 'The New Subject' where ID = 1;
commit;
<h4>The dbms_output is :</h4>
Before Each Row, New values= Id: 1, Code: , Subject:
Before Each Row, Old values= Id: 1, Code: USER1 , Subject: The New Subject
After Statement
<h4> (You can see that in the before each row, :New.Code and :New.Subject are Null!)
And the Data are:</h4>
select * from Test where Id = 1;
Id Code Subject
1 CODE1 The New Subject
<h4>Why the column Code is changed?
Now if I change my trigger (just removing the after statement)</h4>
create or replace trigger Test_Trg
for insert or update on Test
compound trigger
before each row is
begin
dbms_output.put_line( 'Before Each Row, New values= Id: '||:New.Id||', Code: '||:New.Code||', Subject: '||:New.Subject );
dbms_output.put_line( 'Before Each Row, Old values= Id: '||:Old.Id||', Code: '||:Old.Code||', Subject: '||:Old.Subject );
:New.Code := Nvl(:New.Code, 'CODE'||:New.Id);
end before each row;
end Test_Trg;
<h4>All work perfect!
My question is: Why certain :New.values are Null in the before statement only if I have an after statement that do nothing ?
Thanks in advance,
</h4>I've got two 11.2.0.2 environments - one where this is reproducible, one where it doesn't seem to be.
I assume it must be a bug and one of these environments is patched.
I had a quick look at metalink and couldn't see an obvious match.
I might see if I can figure out differences between environments later.
There are a number of bugs around compound triggers.
I've been bitten before with a different compound trigger bug.
http://orastory.wordpress.com/2009/01/20/beware-the-compound-trigger/
Shame - nice way to neaten up multiple triggers but too many issues. -
How to cancel rounding value check when convert pr to po use me59n or me59
hello every one,
I have a requisition that,customer want to cancel rounding value check when converting purchase requisition to purchase order use me59n or me59,but they want keep the function of check rounding value when create purchase requisition as mrp run.
does anyone happen to meet samiler question?Is there any way to solve it?
thanks
Edited by: p y on Aug 3, 2010 5:14 AM
Edited by: p y on Aug 3, 2010 10:07 AM
Edited by: p y on Aug 3, 2010 10:56 AM
Edited by: p y on Aug 3, 2010 10:57 AMwhat do you think based on what SAP should know whether it has to do rounding or not?
Why should SAP not round if a rounding rule is entered?
when a human is converting the PR to a PO, then a warning message is issued, if the user then enters the old quantity again, SAP accepts it.
A background program cannot do such decisions, it has to rely on given master data. -
How to cancel rounding value check when convert pr to po use me59n
dear all,
I have a requisition that,customer want to cancel rounding value check when converts pruchase requisition to purchase order use
t-code me59n,but they want keep the rounding value check when create purchase requisition when mrp running.i look up enhancement for this function,but didn't find any.so has any one can tell me a way to solve this question?
thanks a lot!
Edited by: p y on Aug 3, 2010 10:08 AM
Edited by: p y on Aug 3, 2010 10:10 AM
Edited by: p y on Aug 3, 2010 10:57 AMdoes anyone know it?
-
How to make blank value as null in table using DQS
Hi
I am using DQS in SSIS. It makes null value from source table as blank in destination table by DQS_NULL feature.
I want to make that null value as 'Null' in the destination table after applying DQS.
How is it possible.
Thanks
NidhiThanks for the reply.
When I am using (Coulmn) == "" ? NULL(DT_WSTR,225) : Coulmn for making blank as null it is working fine.
But it is making null as string, but I don't want to use null as string. As I am using Null in my stored procedure to load sub region data where "country is null".
If I will use above expression of derived column it will make it as string which is not recommended in my case.
Do you have any solution for it.
Maybe you are looking for
-
Upload data from excel to application server
Hi all, Is there any process to upload data from excel to application server other than reading the data from excel to z program through gui_upload and transferring the data to application server. I want to run background job for a BDC program with t
-
[Solved] Ctrl + Alt + F[1-6] -- no signal on display
02/04/13 I made a full system update. When turned off my PC, I noticed that screen is turned off before the system is actually halted. Well, this didn't made me suspicious. However, today I decided to make a full update with new KDE. I thought that i
-
Please help me. I try to uninstall and reinstall itune many times but it still show the same this sentense.
-
HT201209 i have no credit card and cant log in
i have no credit card and cant log in to my Apple account as i keep getting the message to review my account, when i do go to reveiw it asks for credit card details, but I just want to purchase with gift cards
-
Hi Where can I get the S/W for BOMM 3.1. The software download section within the service.sap.com has only BOMM3.0 and that is not compatabile with BOE 3.1 ( note - "1286747 - "Metadata Management Repository configuration failed with the following er