Controlling entity, validation of order to avoid constraint Violations
Hi allI use Jdeveloper 11.1.1.2.
I want to create a line in a primary table, and then when I commit, I want to automatically create a line in the detail table.
I'm following the instructions of paragraph 38.8 entity control post in order to avoid the manual constraint Violations.
I have a problem when I write:
myTable.setNumberField (NumberField);
compilation, I have this error: myTable.setNumberField (Number) cannot be called myTable.setNumberField (oracle.jbo.domain.Number) in myTableEOImpl
I created myTableEOImpl.java automatically, using the java tab in myTableEO
How can I solve it?
Andrea
Hello
You must make sure that the data types passed to a numeric field Oracle ADF BC are pf type oracle.jbo.domain.Number. Often developers forget to import this class and use Java lang number rather
Frank
Tags: Java
Similar Questions
-
control array element changing order
I have observed several times where some of my paintings of controls have their items change order between debugging sessions.
It's unpredictable when it happens. But the symptoms amounted to my controls bad secondary control (for example, LED #2 gets turned on when the #0 SWITCH is pushed).
When I inspect control arrays, I can find that one or more items are now out of use. When I their difficulty in IUR again, then all is well again.
Any thoughts on how to lock them to the UIR?
ElectroLund,
One thing I noticed on your code, you call the GetCtrlArrayFromResourceID function at the top of each callback. Because the control panel should not change while the program is running, I might suggest you make all these function calls in the main function as soon as the program starts and just store it for use in the recalls. Which probably isn't helping the problem here, but it would make things a little more efficient.
Nothing is coming out for me right now as being a possible cause of the problem. I know you said you've been changing the code in an external IDE; to be clear, have edited the UIR file in any external editor?
One thing that was suggested by one of my colleagues was to create control arrays in source code, instead of using the GetCtrlArrayFromResourceID function. This would ensure that the controls are in the order that you want them to be, even if it would take a little more code to implement.
-
How to put the names of programs in the control panel in the order of the alphabet
How to put the names of programs in the control panel in the order of the alphabet
Hi maguma,.
Please use the Microsoft Windows Forum.
When you go to Control Panel , click on "view by" at the top right of the screen and select 'large icons or small icons' , she will change in alphabetical order.
If you are referring to the programs and features in Control Panel, you can right-click in the empty space of the programs and features page > click on 'View' and click on 'Name' , IT ' l be alphabetical.
Kind regards
Aziz Nadeem - Microsoft Support -
How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?
For example the 'wrong' text in all the legend of failure
You can set the default text that appears in all the legends of failure for the quiz via the parameters for the Quiz questions. However, after you have made changes here that will affect quiz slides that you add AFTER that, change. There is no way to change the text in all the legends of defect EXISTING at the same time. You will have to select each one and replace the current text manually. If you firmly believe that you will need to do this more than once, you might consider using a user Variable that displays as the value in the legends of the failure. Then you can edit them while changing just the value of the user variable.
-
How to debug and find the exact constraint violation error
{14:22:36:ErrorCode 122712 - 1 with ErrorMessage as ORA-00001: unique constraint (OPS$ CMS.)} {PK_TB_ML_EXER_UPLOAD) violated appeared [SSO16063259009], pk_xop_subsales.pr_process_exer [CMSCOST_USER]}
{Pr_process_exer (PROCEDURE)
p_voucher_num tb_xop_order_manager_t.voucher_num%TYPE,
p_status_type tb_xop_order_manager_t.status_type%type,
p_dest tb_xop_order_manager_t.dest%type,
p_reference_key tb_xop_order_manager_t.reference_key%type,
p_seq_num tb_xop_order_manager_t.seq_num%type,
p_return_code tb_xop_order_manager_t.return_code%type,
p_reason_desc tb_xop_order_manager_t.reason_desc%type,
p_activity_qty tb_xop_order_manager_t.activity_qty%type,
p_leaves_qty tb_xop_order_manager_t.leaves_qty%type,
p_exec_price tb_xop_order_manager_t.exec_price%type,
p_current_status tb_xop_order_manager_t.current_status%type,
p_err_cur ON ref_cursor)
IS
CURSOR get_order_dtls (v_voucher_num tb_xop_order_manager_t.voucher_num%type)
IS
SELECT *.
OF tb_xop_order_manager_t
WHERE voucher_num = v_voucher_num;
CURSOR get_mail_cd (v_opt_num OPTIONEE.opt_num%TYPE) IS
SELECT mail_cd, sp_mail_cd
OF XOP_OPTIONEE
WHERE opt_num = v_opt_num;
cursor get_opt_dtls (v_opt_num OPTIONEE.opt_num%TYPE) IS
Select
SUBSTR (Trim (O.name_first) |) ' ' || Trim (O.name_mi) | ' ' ||
Trim (O.name_last), 1: 35) p_name,.
SUBSTR (O.address1, 1, 35) opt_addr1,.
SUBSTR (O.address2, 1, 35) opt_addr2,.
SUBSTR (O.address3, 1, 35) opt_addr3,.
SUBSTR (O.address4, 1, 35) opt_addr4,.
SUBSTR (O.address5, 1, 35) opt_addr5,.
SUBSTR (O.address6, 1, 35) opt_addr6,.
SUBSTR (Trim (O.City) |) ' ' || Trim (O.State) | ' ' ||
Trim (O.zip) | ' ' || Trim (O.Country), 1: 35) city_state_zip_country,.
Trim town (O.City),
Trim (O.State) State,
Trim (O.zip) zip,
Trim (O.Country) countries
of the option o holder
where o.opt_num = v_opt_num;
-CQ: PCTUP00210726 - added wire instructions audit for info thread deleted.
CURSOR (c_wire_instruction)
in_wire_seq_no TB_XOP_WIRE_INSTRUCTIONS.wire_seq_no%TYPE) IS
SELECT ml_brok_acct_num,
SSN,
plan_num,
instr_type,
aba_routing_num,
swift_routing_code,
bank_name,
bank_acct_num,
name_on_account,
bank_addr_1,
bank_addr_2,
bank_addr_3,
City,
State,
countries,
zip,
bank_ident_num,
addtl_info
OF TB_XOP_WIRE_INSTRUCTIONS
WHERE wire_seq_no = in_wire_seq_no
UNION
SELECT ml_brok_acct_num,
SSN,
plan_num,
instr_type,
aba_routing_num,
swift_routing_code,
bank_name,
bank_acct_num,
name_on_account,
bank_addr_1,
bank_addr_2,
bank_addr_3,
City,
State,
countries,
zip,
bank_ident_num,
addtl_info
OF TB_XOP_WIRE_INSTRUCTIONS_AUDIT
WHERE wire_seq_no = in_wire_seq_no;
CURSOR c_order_qty IS
SELECT order_qty
OF tb_xop_order_manager
WHERE voucher_num = p_voucher_num;
v_order_qty tb_xop_order_manager.order_qty%TYPE;
v_wire_instruction c_wire_instruction % ROWTYPE;
v_order_dtls get_order_dtls % rowtype;
v_opt_dtls get_opt_dtls % rowtype;
v_settle_dt tb_ml_exer_upload.settle_dt%type;
v_cusip_num corp.cusip_num%type;
number of v_err_cd (12): = 0;
v_err_msg varchar2 (4000);
v_compy_nme tb_fc_Compy.compy_nme%type;
v_ml_sec_num tb_fc_compy.ml_sec_num%type;
v_mail_cd xop_optionee.mail_cd%type;
v_count1 PLS_INTEGER: = 0;
v_sum_activity_qty tb_xop_order_manager_t.activity_qty%TYPE;
v_transact_no PLS_INTEGER;
v_ivr_plan_num tb_fc_compy.ivr_plan_num%TYPE;
wait_for_more EXCEPTION;
exceeds_order_qty EXCEPTION;
-Added CQ # PCTUP00481233
number of v_sub_totfee;
number of v_sub_fixedfee1;
number of v_sub_fixedfee2;
number of v_sub_fixedfee3;
number of v_sub_secfee;
number of v_sub_feenum;
-Added CQ # PCTUP00481233
v_fixedfee1 tb_xop_order_manager_t.fixed_fee1%TYPE; -SPIF # 43161 - variable to contain the fixed mensuels1
BEGIN
OPEN c_order_qty.
SEEK c_order_qty INTO v_order_qty;
CLOSE C_order_qty;
DBMS.output.put_line ('completed1');
IF v_order_qty <>p_activity_qty THEN
DBMS.output.put_line ('completed2');
IF p_status_type = "EO" AND v_order_qty < p_activity_qty THEN
RAISE exceeds_order_qty;
DBMS.output.put_line ('completed3');
ELSIF p_status_type = 'EO' AND v_order_qty > p_activity_qty THEN
-Partial enforcement
INSERT INTO tb_xop_hold_multi_orders
(voucher_num
reference_key
seq_num
return_code
reason_desc
status_type
activity_qty
leaves_qty
exec_price
current_status
waiting
activ_dt)
VALUES
(p_voucher_num
p_reference_key
p_seq_num
p_return_code
p_reason_desc
p_status_type
p_activity_qty
p_leaves_qty
p_exec_price
p_current_status
, 'Y'
SYSTIMESTAMP);
DBMS.output.put_line ('completed4');
ON THE OTHER
IF p_status_type = "BE" THEN
SELECT COUNT (1) IN v_count1
OF tb_xop_hold_multi_orders
WHERE voucher_num = p_voucher_num;
DBMS.output.put_line ('completed5');
IF v_count1 > 0 THEN
INSERT INTO tb_xop_hold_multi_orders
(voucher_num
reference_key
seq_num
return_code
reason_desc
status_type
activity_qty
leaves_qty
exec_price
current_status
waiting
activ_dt)
VALUES
(p_voucher_num
p_reference_key
p_seq_num
p_return_code
p_reason_desc
p_status_type
, (-1) * p_activity_qty
p_leaves_qty
p_exec_price
p_current_status
, 'Y'
SYSTIMESTAMP);
UPDATE tb_xop_hold_multi_orders
QUEUE = 'Y '.
WHERE voucher_num = p_voucher_num;
DBMS.output.put_line ('completed6');
END IF;
END IF;
END IF;
DBMS.output.put_line ('completed7');
SELECT SUM (NVL(activity_qty,0)) IN the v_sum_activity_qty
OF tb_xop_hold_multi_orders
When pending = 'Y '.
AND voucher_num = p_voucher_num;
IF v_sum_activity_qty > 0 THEN
IF v_sum_activity_qty <>v_order_qty THEN
RAISE wait_for_more;
ON THE OTHER
-final order in the case of partial performance; complete the process
UPDATE tb_xop_hold_multi_orders
PUT on hold = ' don't
process_dt = SYSDATE
WHERE voucher_num = p_voucher_num;
END IF;
END IF;
END IF;
UPDATE tb_xop_order_manager_t
SET activ_dt = TO_CHAR (SYSDATE, "YYYY-MM-DD HH24:MI:SS") | '. 000'
dest = p_dest
reference_key = p_reference_key,
seq_num = p_seq_num
return_code = p_return_code
reason_desc = p_reason_desc,
status_type = p_status_type
, activity_qty = v_order_qty - p_activity_qty
, leaves_qty = 0 - p_leaves_qty
exec_price = p_exec_price,
WHERE voucher_num = p_voucher_num;
DBMS.output.put_line ('completed8');
/*
* SPIF # 43161 - update of the current situation to the PO moved to the end, even in works of the PROD.
*/
IF (p_status_type = "EO") THEN
BEGIN
Select cusip_num
in v_cusip_num
Corp;
EXCEPTION
WHEN NO_DATA_FOUND THEN
SELECT cusip_num
IN v_cusip_num
OF tb_xop_espp_compy
WHERE compy_acronym = replace (replace(user,'CMS'), '_USER');
WHILE OTHERS THEN
NULL;
END;
Select compy_nme, ml_sec_num, ivr_plan_num
in v_compy_nme, v_ml_sec_num, v_ivr_plan_num
of tb_fc_compy
where compy_acronym = replace (replace(user,'CMS'), '_USER')
UNION ALL
Select compy_nme, je_ml_security_number, ivr_plan_num
of tb_xop_espp_compy
where compy_acronym = replace (replace(user,'CMS'), '_USER');
-where ivr_plan_num = replace (substr(p_voucher_num,1,7), 'NORTH', 'XOP');
Open get_order_dtls (p_voucher_num);
SEEK get_order_dtls INTO v_order_dtls;
v_settle_dt: = fn_xop_bankopen_bizday (TRUNC (v_order_dtls.exer_date + 1));
v_settle_dt: = fn_xop_bankopen_bizday (TRUNC (v_settle_dt + 1));
v_settle_dt: = fn_xop_bankopen_bizday (TRUNC (v_settle_dt + 1));
FOR c_mail_cd IN get_mail_cd (v_order_dtls.opt_num)
LOOP
v_mail_cd: = c_mail_cd.mail_cd;
-We need get sp_mail_cd and overlay with the sp_mail_cd in order_manager_t?
END LOOP;
OPEN get_opt_dtls (v_order_dtls.opt_num);
SEEK get_opt_dtls INTO v_opt_dtls;
CLOSE Get_opt_dtls;
v_fixedfee1: = nvl (v_order_dtls.fixed_fee1, 0);
/*
* SPIF # 43161 - at least one transaction per day fees
*/
v_fixedfee1: = pk_xop_enh_exerupdate.chrg_tranxfixed_fee (v_fixedfee1,
v_order_dtls. Symbol,
v_order_dtls.corp_acronym,
v_order_dtls.opt_num);
-Insert in tb_ml_exer_upload
-Added CQ # PCTUP00481233
Pk_Xop_Transactmodel.GET_FEE (v_order_dtls. GROUP_ID, v_order_dtls. SVC_ID, 'SQ', v_order_dtls.opts_exer,
round (v_order_dtls.exec_price, 4), v_sub_totfee, v_sub_fixedfee2, v_sub_fixedfee1,.
v_sub_fixedfee3, v_sub_secfee, v_sub_feenum, LPAD (v_order_dtls. SSN, 9, 0));
v_order_dtls.sec_fee: = v_sub_secfee;
UPDATE tb_xop_order_manager_t
SET sec_fee = v_sub_secfee
WHERE voucher_num = p_voucher_num;
DBMS.output.put_line ('completed8');
-End CQ # PCTUP00481233
INSERT INTO tb_ml_exer_upload
(exer_num, exer_seq,
exer_dt, written_flag, backout_flag, output_line,
je_flag, opts_exer,
tot_tax, shrs_sold, comm_value, tot_fee,
mkt_prc, exer_type, soc_sec,
name_first, name_mi,
name_last, check_addr_1, check_addr_2, check_addr_3,
check_addr_4, check_addr_5, city, state, zip, country,.
city_state_zip_country,
p_name, opt_addr1, opt_addr2, opt_addr3, opt_addr4,
opt_addr5, opt_addr6,
settle_dt, send_to_citibank_flag,
dom_chek_distr, foreign_currency_code,
distribution_method, wire_seq_no,
cusip_num, ml_retail_account, multi_curr_handling_fee,
ml_sec_num, corp_name, upd_optionee_addr,
outbound_flag,-there are N
corp_symbol, taxwire_approve,-not make applicaplabe
exersource,
mail_cd, sp_mail_cd,
backup_withholding,
user_id,
acct_num_othr)
VALUES (v_order_dtls.exer_num, 0, v_order_dtls.exer_date, 'No', not, NULL,)
-Would be PG 12/12/05 Changed to fill the resulting je_flag of dom_chek_distr',.
-PG 16/12/05 I should not be generated for international controls... If 'Y' always
'Y',-je_flag
v_order_dtls.opts_exer, 0,-total tax will be 0.
v_order_dtls.opts_exer, shrs_sold,
v_order_dtls.comm_value,
-SPIF # 43161 - replaced nvl (v_order_dtls.fixed_fee1, 0), with v_fixedfee1
v_fixedfee1 + nvl(v_order_dtls.fixed_fee3,0) + nvl(v_order_dtls.sec_fee,0), - v_order_dtls.fees_amt,
round (v_order_dtls.exec_price, 4), v_order_dtls.exer_type.
LPAD (v_order_dtls. SSN, 9, '0'),-v_order_dtls.ssn, modified by Suresh on 08/02/07 for SPIF # 37210
v_order_dtls.name_first, v_order_dtls.name_mi, v_order_dtls.name_last,
v_order_dtls.check_addr_1, v_order_dtls.check_addr_2, v_order_dtls.check_addr_3,
v_order_dtls.check_addr_4, v_order_dtls.check_addr_5, NVL (v_order_dtls. City, v_opt_dtls. (City),
NVL (v_order_dtls. State, v_opt_dtls. State), NVL (v_order_dtls.zip, v_opt_dtls.zip).
NVL (v_order_dtls. Country, v_opt_dtls. (Country),
SUBSTR (nvl (v_order_dtls.city | v_order_dtls.)) State | v_order_dtls.zip | v_order_dtls. Country,
v_opt_dtls.city_state_zip_country), 1: 34),-COLUMN LENGTH MAX IS 35
v_opt_dtls.p_name, v_opt_dtls.opt_addr1, v_opt_dtls.opt_addr2, v_opt_dtls.opt_addr3,
v_opt_dtls.opt_addr4, v_opt_dtls.opt_addr5, v_opt_dtls.opt_addr6,
v_settle_dt, Decode(v_order_dtls.distribution_method,'W','Y','D','Y','C','Y','D'),
v_order_dtls.dom_chek_distr, v_order_dtls.foreign_currency_code,
v_order_dtls.distribution_method, v_order_dtls.wire_seq_no,
v_cusip_num, v_order_dtls.acct_num, v_order_dtls.multi_curr_handling_fee,
-nvl (fn_get_sec_num (replace (substr (p_voucher_num, 1, 7), 'NORTH', 'XOP'), v_order_dtls.symbol), v_ml_sec_num).
NVL (fn_get_sec_num (v_ivr_plan_num, v_order_dtls.symbol), v_ml_sec_num).
v_compy_nme, v_order_dtls.upd_optionee_addr,
'N'-' is for outgoing flag.
v_order_dtls. Symbol, 'd', --a ' for disabled taxwires
The of ', - the of ' source being a subsequent sale.
v_mail_cd, need to get mail_Cd?
v_order_dtls.sp_mail_cd, v_order_dtls.backup_withholding,
(User, v_order_dtls.acct_num_othr);
IF (NVL(v_order_dtls.wire_seq_no,0) > 0) THEN
OPEN c_wire_instruction (v_order_dtls.wire_seq_no);
SEEK c_wire_instruction INTO v_wire_instruction;
CLOSE C_wire_instruction;
INSERT INTO TB_XOP_TRANSACT_WIRE_INSTR
(user_id, exer_num, wire_seq_no, ml_brok_acct_num, ssn,
plan_num, instr_type, aba_routing_num,
swift_routing_code, bank_name, bank_acct_num,
name_on_account, bank_addr_1, bank_addr_2, bank_addr_3,
City, State, country, zip, bank_ident_num, addtl_info)
VALUES
(USER, v_order_dtls.exer_num, v_order_dtls.wire_seq_no,
v_wire_instruction.ml_brok_acct_num, v_wire_instruction.ssn,
v_wire_instruction.plan_num, v_wire_instruction.instr_type, v_wire_instruction.aba_routing_num,
v_wire_instruction.swift_routing_code, v_wire_instruction.bank_name, v_wire_instruction.bank_acct_num,
v_wire_instruction.name_on_account, v_wire_instruction.bank_addr_1, v_wire_instruction.bank_addr_2,
v_wire_instruction.bank_addr_3, v_wire_instruction.city, v_wire_instruction.state, v_wire_instruction.country, v_wire_instruction.zip,
(v_wire_instruction.bank_ident_num, v_wire_instruction.addtl_info);
DBMS.output.put_line ('completed10');
END IF;
/ * PG 05/01/06 call conversion check only for international controls and son * /.
IF = v_order_dtls.dom_chek_distr ' n AND v_order_dtls.distribution_method IN ('W' ' d ","C"" ") THEN
/ * PG 20/12/05 to treat the subsequent sales with the wire or the distribution of currency * /.
v_transact_no: = 88;
pk_xop_citibank_forex.pr_cashconversion_ins_request (v_order_dtls.acct_num
LPAD(v_order_dtls.ssn,9,'0') - v_order_dtls.ssn, modified by Suresh on 15/02/07 for SPIF # 37210
v_order_dtls.distribution_method
v_order_dtls.foreign_currency_code
v_order_dtls.wire_seq_no
, TOWER ((v_order_dtls.opts_exer * ronds (v_order_dtls.exec_price, 4)), 2)
-ROUND(v_order_dtls.comm_value,2)
-ROUND (nvl(v_order_dtls.fixed_fee1,0) + nvl(v_order_dtls.fixed_fee3,0) + nvl(v_order_dtls.sec_fee,0), 2)
-nvl(v_order_dtls.multi_curr_handling_fee,0)
-product net nvl(v_order_dtls.backup_withholding,0)-
, v_order_dtls.multi_curr_handling_fee - handling fee
-Modified by Billon/Suresh on 03/02/2006-, v_order_dtls.login_name
, CASE v_order_dtls.login_name WHEN ' CUSTOMER /' THEN v_order_dtls.login_name |' SSO' ELSE v_order_dtls.login_name |' / SSO' END
, v_transact_no - transact_no as a placeholder for the 88 exer_type
v_order_dtls.check_addr_1
v_order_dtls.check_addr_2
v_order_dtls.check_addr_3
v_order_dtls.check_addr_4
v_order_dtls.upd_optionee_addr
v_order_dtls.city
v_order_dtls.state
v_order_dtls.zip
v_order_dtls.country
v_order_dtls.login_ipaddress
v_order_dtls.fcnum
v_order_dtls.opt_num
v_settle_dt,
p_exer_num = > v_order_dtls.exer_num
);
END IF;
COMMIT;
close get_order_dtls;
END IF;
/*
* SPIF # 43161 - update of current status in IN. is moved to this part, even PROD.
*/
UPDATE tb_xop_order_manager_t
SET exec_dttime = decode (p_status_type, "EO", to_char (sysdate, 'DD-MON-YYYY HH24:mi:ss'), null)
exer_date = trunc (sysdate)
, cancel_dttime = decode (p_status_type, 'CX', to_char (sysdate, 'DD-MON-YYYY HH24:mi:ss'), 'UR', to_char (sysdate, "MON-DD-YYYY HH24:mi:ss), null)
, current_status = "PO."
sum_status = decode(p_status_type,'EO','X','C'),
sum_stat_dttime = SYSDATE
WHERE voucher_num = p_voucher_num;
v_err_cd: = sqlcode;
v_err_msg: = sqlerrm;
Open the p_err_cur for v_err_cd select err_code, v_err_msg err_msg double;
EXCEPTION
DBMS.output.put_line ('completed200');
/ * PG 02/10 managed 'order of partial fill' exception * /.
When wait_for_more then
v_err_cd: = 0;
v_err_msg: = ' ORA-0000: normal completion, successfully ';
pr_xop_log_errors (' partially filled;) Pending-activity qty:' | TO_CHAR (v_sum_activity_qty) | "pk_xop_subsales.pr_process_exer");
Open the p_err_cur for v_err_cd select err_code, v_err_msg err_msg double;
When exceeds_order_qty then
v_err_cd: = sqlcode;
v_err_msg: = sqlerrm;
Open the p_err_cur for v_err_cd select err_code, v_err_msg err_msg double;
pr_xop_log_errors ("exceeded the amount of activity Order_qty - activity qty: ' | ') TO_CHAR (p_activity_qty) | "pk_xop_subsales.pr_process_exer");
while others then
v_err_cd: = sqlcode;
v_err_msg: = sqlerrm;
Open the p_err_cur for v_err_cd select err_code, v_err_msg err_msg double;
pr_xop_log_errors (' error code ' | ') SQLCODE |' with ErrorMessage like ' | SQLERRM |' occurred '. the user | (' pk_xop_subsales.pr_process_exer');
DBMS.output.put_line ('completed125');
END pr_process_exer;
}
Hi friends, any1 help me how set ref-cursor in the declaration section and how to find the constraint error situation has occurred...956684 wrote:
Hello.Friends please help... How to debug and find the exact position of the constraint violation... Thank you for the help...
It's not a way to track it unless you have taken the exception raised.
As a way to start debugging, you will need to monitor
1. all DML against the Table on which you have constraint. Specifically, the DML that Act on the column you will be forced.
2. use the exception handling, to record the error and the data that causes the constraint to fail.
3. don't forget to monitor triggers, if used, could write data in the column you have forced on.Or
Another track is to:
select * from user_source where lower(text) like '%your_table_name%'; order by type, name, line;
Look at the lines, exclude that are in the statement or in the SELECT statements and targets of the DML.
Looking at the unformatted code, that you have published, this statement looks like a culprit.
INSERT INTO tb_ml_exer_upload (exer_num,exer_seq, exer_dt, written_flag, backout_flag, output_line, je_flag, opts_exer, tot_tax,shrs_sold,comm_value,tot_fee, mkt_prc,exer_type, soc_sec, name_first, name_mi, name_last,check_addr_1,check_addr_2,check_addr_3, check_addr_4,check_addr_5,city,state,zip,country, city_state_zip_country, p_name,opt_addr1,opt_addr2,opt_addr3,opt_addr4, opt_addr5,opt_addr6, settle_dt,send_to_citibank_flag, dom_chek_distr,foreign_currency_code, distribution_method,wire_seq_no, cusip_num, ml_retail_account,multi_curr_handling_fee, ml_sec_num, corp_name,upd_optionee_addr, outbound_flag, -- make it N corp_symbol,taxwire_approve, -- make it not applicaplabe exersource, mail_cd, sp_mail_cd, backup_withholding, user_id, acct_num_othr) VALUES(v_order_dtls.exer_num,0,v_order_dtls.exer_date,'N','N',NULL, -- PG 12/12/05 Changed to populate the je_flag based on dom_chek_distr 'D', -- PG 12/16/05 JE should not be generated for international checks.. So 'Y' always 'Y', --je_flag v_order_dtls.opts_exer,0,--total tax will be 0. v_order_dtls.opts_exer, --shrs_sold, v_order_dtls.comm_value, --SPIF# 43161- replaced nvl(v_order_dtls.fixed_fee1, 0) with v_fixedfee1 v_fixedfee1 + nvl(v_order_dtls.fixed_fee3,0) + nvl(v_order_dtls.sec_fee,0), --v_order_dtls.fees_amt, round(v_order_dtls.exec_price, 4),v_order_dtls.exer_type, LPAD(v_order_dtls.ssn,9,'0'), --v_order_dtls.ssn, Modified by Suresh on 02/08/07 for SPIF # 37210 v_order_dtls.name_first,v_order_dtls.name_mi,v_order_dtls.name_last, v_order_dtls.check_addr_1,v_order_dtls.check_addr_2,v_order_dtls.check_addr_3, v_order_dtls.check_addr_4,v_order_dtls.check_addr_5,nvl(v_order_dtls.city,v_opt_dtls.city), nvl(v_order_dtls.state,v_opt_dtls.state),nvl(v_order_dtls.zip,v_opt_dtls.zip), nvl(v_order_dtls.country,v_opt_dtls.country), SUBSTR(nvl(v_order_dtls.city||v_order_dtls.state||v_order_dtls.zip||v_order_dtls.country, v_opt_dtls.city_state_zip_country),1,34), -- COLUMN LENGTH MAX IS 35 v_opt_dtls.p_name,v_opt_dtls.opt_addr1,v_opt_dtls.opt_addr2,v_opt_dtls.opt_addr3, v_opt_dtls.opt_addr4,v_opt_dtls.opt_addr5,v_opt_dtls.opt_addr6, v_settle_dt,decode(v_order_dtls.distribution_method,'W','Y','D','Y','C','Y','D'), v_order_dtls.dom_chek_distr,v_order_dtls.foreign_currency_code, v_order_dtls.distribution_method,v_order_dtls.wire_seq_no, v_cusip_num,v_order_dtls.acct_num,v_order_dtls.multi_curr_handling_fee, -- nvl(fn_get_sec_num(replace(substr(p_voucher_num,1,7),'SSO','XOP'),v_order_dtls.symbol),v_ml_sec_num), nvl(fn_get_sec_num(v_ivr_plan_num, v_order_dtls.symbol),v_ml_sec_num), v_compy_nme,v_order_dtls.upd_optionee_addr, 'N', --'N' is for outbound flag. v_order_dtls.symbol,'D', --'D' for taxwires disabled 'S', -- 'S' for source being subsequent sale. v_mail_cd, --need to get mail_Cd?? v_order_dtls.sp_mail_cd,v_order_dtls.backup_withholding, user,v_order_dtls.acct_num_othr);
What is the structure of the tb_ml_exer_upload Table and the columns do you have constraints?
Which column of the tb_ml_exer_upload table is your primary key (because the constraint name mentions pk_tb_ml_exer_upload)?Published by: Jen K on January 4, 2013 12:57
-
Unique constraint violation error
Hi all
I have a procedure called - FHM_DASHBOARD_PROC which inserts data into a table called FHM_DASHBOARD_F retrieve records in multiple tables. However, for a particular type of record, these data are not inserted because of the Unique constraint violation
the procedure is:
and the table where data integration iscreate or replace PROCEDURE FHM_DASHBOARD_PROC AS DB_METRICS_CNT1Z number; --V_PODNAME varchar2(10); V_KI_CODE_DB_STATSZ varchar2(50); V_ERRORSTRING varchar2(100); --CURSOR PODNAME_CUR IS SELECT PODNAME,SHORTNAME FROM CRMODDEV.POD_DATA WHERE PODSTATUS_ID=1 AND PODTYPE_ID=1 ORDER BY PODNAME; -- DB STATS BEGIN -- OPEN PODNAME_CUR; -- LOOP -- FETCH PODNAME_CUR INTO V_PODNAME,V_POD_SHORTNAME ; -- EXIT WHEN PODNAME_CUR%NOTFOUND; BEGIN SELECT COUNT(*) INTO DB_METRICS_CNT1Z FROM FHM_DB_METRICS_F A, FHM_DB_D B where A.DBNAME=B.DBNAME and PODNAME=V_PODNAME AND DB_DATE=TRUNC(SYSDATE-1); DBMS_OUTPUT.PUT_LINE('DB_METRICS_CNT1Z :'|| DB_METRICS_CNT1Z); IF DB_METRICS_CNT1Z >0 THEN DBMS_OUTPUT.PUT_LINE('DB STATS'); INSERT INTO FHM_DASHBOARD_F(PODNAME,DASH_DATE,KI_CODE,KI_VALUE,KI_STATUS) (SELECT PODNAME, DASH_DATE AS CU_DATE, KI.KI_CODE, NVL(PF.KI_VALUE,0), CASE WHEN PF.KI_VALUE = ki.warning_threshold then 2 when PF.KI_VALUE=0 then 0 ELSE 1 END AS ALERT_STATUS FROM (SELECT PODNAME,DB_DATE AS DASH_DATE,decode(a.stats_last_status,'SUCCEEDED',1,'FAILED',2,'STOPPED',2,NULL,0) KI_VALUE from FHM_DB_METRICS_F a,fhm_db_d b where a.dbname=b.dbname and podname='XYZ' and db_date=TRUNC(SYSDATE-1) and dbtype='OLTP')PF, FHM_KEY_INDICATOR_D KI where PF.PODNAME=KI.POD_NAME AND KI.TIER_CODE=3 AND KI.KI_NAME='DB_STATS' AND (PF.PODNAME,TRUNC(PF.DASH_DATE),KI.KI_CODE) NOT IN (SELECT PODNAME,DASH_DATE,KI_CODE FROM FHM_DASHBOARD_F)); COMMIT; ELSE SELECT KI_CODE INTO V_KI_CODE_DB_STATSZ FROM FHM_KEY_INDICATOR_D WHERE POD_NAME=V_PODNAME AND KI_NAME='DB_STATS'; DBMS_OUTPUT.PUT_LINE('V_KI_CODE_DB_STATSZ :'||V_KI_CODE_DB_STATSZ); INSERT INTO FHM_DASHBOARD_F(PODNAME,DASH_DATE,KI_CODE,KI_VALUE,KI_STATUS) VALUES(V_PODNAME,TRUNC(SYSDATE-1),V_KI_CODE_DB_STATSZ,0,0); COMMIT; END IF; EXCEPTION WHEN OTHERS THEN V_ERRORSTRING :='INSERT INTO FHM_DASHBOARD_F_ERROR_LOG(POD_NAME,KI_NAME,ERRORNO,ERRORMESSAGE,DATETIME) VALUES ('''||V_PODNAME||''',''DB_STATS'','''||SQLCODE||''','''||SQLERRM||''',SYSDATE)'; EXECUTE IMMEDIATE V_ERRORSTRING; COMMIT; END; --END LOOP; --CLOSE PODNAME_CUR; END; END FHM_DASHBOARD_PROC;
the constraint primary key is FHM_DASHBOARD_F_DATE_PK and is on 3 columns of the table, DASH_DATE, PODNAME, KI_CODECREATE TABLE "CRMODDEV"."FHM_DASHBOARD_F" ( "PODNAME" VARCHAR2(25 BYTE) NOT NULL ENABLE, "DASH_DATE" DATE, "KI_CODE" NUMBER NOT NULL ENABLE, "KI_VALUE" NUMBER, "KI_STATUS" NUMBER, CONSTRAINT "FHM_DASHBOARD_F_DATE_PK" PRIMARY KEY ("DASH_DATE", "PODNAME", "KI_CODE") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 NOLOGGING COMPUTE STATISTICS STORAGE(INITIAL 4194304 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CRMODDEV_IDX" ENABLE, CONSTRAINT "FHM_DASHBOARD_F_KI_CODE_FK" FOREIGN KEY ("KI_CODE") REFERENCES "CRMODDEV"."FHM_KEY_INDICATOR_D" ("KI_CODE") ENABLE ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING STORAGE ( INITIAL 3145728 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT ) TABLESPACE "CRMODDEV_TBL" ENABLE ROW MOVEMENT ;
And it's the query used in the procedure to insert the data into the table
It gives * record * 2 suite(SELECT PODNAME, DASH_DATE AS CU_DATE, KI.KI_CODE, NVL(PF.KI_VALUE,0), CASE WHEN PF.KI_VALUE = ki.warning_threshold then 2 when PF.KI_VALUE=0 then 0 ELSE 1 END AS ALERT_STATUS From (Select Podname,Db_Date As Dash_Date,Decode(A.Stats_Last_Status,'SUCCEEDED',1,'FAILED',2,'STOPPED',2,Null,0) Ki_Value From -- Added Distinct FHM_DB_METRICS_F a,fhm_db_d b where a.dbname=b.dbname and podname in ('XYZ') and db_date = TRUNC(SYSDATE-2) and dbtype='OLTP')PF, Fhm_Key_Indicator_D Ki Where Pf.Podname=Ki.Pod_Name And Ki.Tier_Code=3 And Ki.Ki_Name='DB_STATS' And (Pf.Podname,Trunc(Pf.Dash_Date),Ki.Ki_Code) Not In (Select Podname,Dash_Date,Ki_Code From Fhm_Dashboard_F));
---------------------------------------
XYZ JANUARY 20 12 2521 1 1
XYZ JANUARY 20 12 2521 1 1
It gives the Unique constraint violation error when inserting. Then, I changed in the above insertion code by adding a distinct clause. Once the query gives only a SINGLE record accordingly. However, this record is not be inserted into the table and give the same error.
Now the question is how should I insert that record into the table with success?
If the message is too long, however, I gave you the real structure of the object or procedure and error.
Thank you in advance.When you have 5 columns in the game adding THAT SEPARATE is n ot solution that you can still get the same error once.
Check the target table if the data exists before inserting... If this is not the case, check the structure of the table for a unique constraint created on other columns.
select *from
where DASH_DATE=date '2012-01-20' and PODNAME='XYZ' and KI_CODE=2521; -
Entity Association depends on foreign key constraint?
Hello
I use JDeveloper 10.1.3.4 and have a question, as shown in the subject of this announcement. By a design flaw, I added a foreign key on a table constraint at the level of the database for any purpose other than to achieve a relationship between master/detail your. Now the foreign key constraint fell to remedy the irregularity, but I don't know if the application is not a problem on the road.
The application in question has a table named BILL and another table called VALIDATIONS, both with the same primary key composite (LDAP_UID, TERM), where we hear per semester.
BILL is on students, the balance they have, etc. VALIDATION records the commitment, students make:
The foreign key constraint has been added on the table of VALIDATION, validations (LDAP_UID, TERM) reference (LDAP_UID, TERM) BILL. When the data model is accumulated in the application, an entity association was created automatically for this foreign key constraint, and then a link has been created on the association of the entity to achieve the effect mater-detail of the application:BILL ------------------------------------------------ LDAP_UID TERM BALANCE ------------- -------- -------- john.miller 200902 1500 VALIDATIONS ------------------------------------------------ LDAP_UID TERM CONFIRM_NUMBER ------------- -------- -------------- john.miller 200902 0901100005
This foreign key is now asking problem and should be deleted: Bill table contains the data from more than three semesters, whereas student commitments cumulatively saved in the table of VALIDATIONS must be maintained permanently. When data from older semesters are unloaded from the table of BILL, the lines stored in the table of VALIDATION are orphaned.Table: BILL Table: VALIDATIONS Foreign Key: VALIDATIONS(LDAP_UID, TERM) references BILL(LDAP_UID, TERM) Entity object: Bill Entity object: Vallidations Entity Association: ValidationsBillFkAssoc (based on the foreign key) View object: LoggedInStudent (from Bill) View object: OneValidation (from Validations) View link: ValidationByOneStudent (based on ValidationsBillFkAssoc. This achieves master/detail between LoggedInStudent and OneValidation)
I thought that the link of the view and the association of the entity dependent on the foreign key, so I removed before dropping the foreign key in the order listed here:
The master/detail relationship between the two your is still necessary. I added the link display, which now is based on common attributes (LdapUid, term) between the two, rather than based on the association of the entity. The modified application works very well with the database has changed and now the rows in the table of VALIDATION will not be an orphan.Removed usage of of the VO (OneValidation) from the application module Deleted the view link (ValidationByOneStudent) Deleted the entity association (ValidationsBillFkAssoc) Dropped the foreign key in the database
What is interesting and also troubling is that when I run a copy of the application which has been registered before these amendments, on the basis of data which dropped the foreign key constraint, the application still works, with the master-detail and everything. And the dependencies do not seem to matter. But isn't it?
My question is: an entity association requires a corresponding foreign key in the database? If I use the copy of the application before the changes, it will be OK or it will cause unforeseen problems on the road?
Thank you!
Newman
Edited by: J. Newman, October 6, 2009 10:31Hello
If you've proven yourself that in fact there is no dependency between the association and the foreign key constraint. in fact you can create everything that (the primary keys, foreign keys, other constraints) only for your same features if you have nothing
defined in database tables, which is obviously not right approach. and JDeveloper tells you only about the dependence of its use (if you want to delete something that is used some part... e. g VL in AM, EO in VO, VO in AM...)
just to note - it is important to synchronize your OA if you change the definition of the data table. for example if you remove the foreign key of the table then right-click on EO and chose to sync - JDeveloper should acknowledge and ask you
If you want to remove this constraint of EO.Kind regards
Branislav
-
REF. order. give the constraint when built in table
I have a front face with (IMO) too many controls. To help cope with all of them, I build an arrary of references I can index or move to submarines. However, I noticed that each Ref control produces a point constraint when building them in a table. Two questions:
(1) is there a way to avoid this? and
(2) otherwise, it will cause problems later if I will try to find a specific comparing to the other refs of control?
(1) none
(2) Yes (maybe)
All the elements in an array can differ only by their value. The point of constraint tells you that these references are cast from a generic type. If you rely on the ref is a specific type, then you can run in question.
Rather than building a table, I suggest the creation of a cluster (def of type a) with the appropriate Ref types. This makes my development because I can't count to find a ref, I can just take in a list (ungroup by name).
Just trying to help,
Ben
-
Rich Table: entity validation fails, but the user can change the record! : O
Hello
I develop with JDeveloper 11.1.2.1.0 and I have the following problem. I have a rich table editable according to entity/view with a line entity level validator method that checks the consistency of rank according to custom rules.
I noticed that if the validator fails, the error message is displayed correctly, but it is possible to move to a different folder and this causes a lot of problems. I need avoid recording of variation when this validator fails. I know there is a way to block navigation on an element using clientListener and javascript, but it's a different need because I don't want the user to change the recording while the validator fails.
How can I do?
Thank you
RobertoRoberto R SCC wrote:
I noticed that if the validator fails, the error message is displayed correctly, but it is possible to move to a different folder and this causes a lot of problems. I need avoid recording of variation when this validator fails. I > know there is a way to block navigation on an element using clientListener and javascript, but it's a different need because I don't want the user to change the recording while the validator fails.
How can I do?When you change a line, it is the currentRow on the iterator. You do not want any line to become the currentRow.
I would go to this topic, in this way: substitute the selectionListener table and the listener to custom selection, check if the current currentRow (the one you are editing) isValid (EntityImpl::isValid).
Proceed with the treatment of the selection event only if it is validated... You could even show an error or a warning message asking the user to provide valid data and even commit the line before choosing another.
(Sorry, don't have an example of a code of practice now) -
The boring latest Firefox update separated the menu bar and address two bar and moved the address bar below my tabs, nor what is logical or useful and wastes space. How can I combine them?
Christopher,
Sorry, there is nothing for Mozilla to 'fix', the new UI Australis works as expected. I'm not satisfied with these changes, as a number of talented developers who have spent a lot of time creating extensions to correct that some of us don't like the new UI.
This door extension on most of the changes in the new user interface, and what it does not there can be an extension separated for that, too.
https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/To meet these specific issues that you mentioned in your first posting, the menu bar is not really necessary to have on the screen all the time. If you hid it, you can press Alt to only show. In addition, many of the main menus on the menu bar are available from the button Menu to open '3-bar "; something new for the user is to become familiar with.
It is always possible to personalize then move buttons to toolbar on the Menu bar, if you want to display the Menu Bar all the time.The menu bar and address bar have always been distinct by default, but unfortunately the ability to "Customize" the address bar (on which the address bar is a part of) has been considerably limited compared to previous versions of Firefox.
Regarding the location of the 'tabs band', he called "The tabs at the top" and was already the default for some versions of Firefox. This Museum is the hidden preference (browser.tabs.onTop) , which allowed the user to turn off this preference.
These two extensions add this pref in versions of Firefox 29 +:
https://addons.Mozilla.org/en-us/Firefox/addon/tabs-on-bottom/
https://addons.Mozilla.org/en-us/Firefox/addon/fdgueux-tabs-on-bottom/
Just as the Restorer of classic theme, but without the other proposed changes to the CTR.In closing, Mozilla has made studies on how Firefox users using Firefox, and how they have changed the Firefox; the results showed that a minority of users changed anything about Firefox. And a super minority of users of Firefox went as far to change the user interface, like the poster in this thread we're talking.
I am part of this "great minority", I tend to 'customize the hell' of Firefox. And I'm working on a solution to many changes, while avoiding the use of extensions when possible; Although my solutions do not involve change "Tabs at the top", which is a change, I welcomed in Firefox 4.0.
-
I kept getting annoying "authentication failure. Please check your user name and password of the account '... xyz. "" error every 30 seconds. "
I tried to restore my system and antivirus running - even to reinstall my anti-virus. I deleted the accounts in question and kept still getting the error message. Note, receive emails has never been a problem.
I finally disabled the element of the system of "Windows Error Reporting Service" MS configuration and now the error pop ups have disappeared. Is it correct to keep this function disabled?
Thank you.
To check the event logs, go to start / Control Panel / administrative tools / event handler.
To achieve the reliability and performance monitor, go to start / search and type in reliability, and then double-click the program icon that appears.
I hope this helps. You can always check these sites periodically and do not need WER to warn you of a problem (even if it is perhaps faster) - you can check manually. WER serves a purpose and he gives notification of a problem (which is good), but not in the circumstances that you knew. This is a "nice to have" feature - not absolutely necessary. We can try testing again to see if we can find the problem with WER if you're at it - or you can simply leave it off and make periodic checks of manual (decision is yours).
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
Hallo,
I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.
I need to fill programmatically after you click on the search button.
Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?
Thank you
Federico
I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.
I need to fill programmatically after you click on the search button.
Use VO.executeEmptyRowSet () Andrejus Baranovskis Blog: Oracle ADF Tuning: prevention of the execution of the SQL query on the loading of the Page
Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?
Bind "disabled" property #{bindings.yourIterator.estimatedRowCount == 0}
Dario
-
'secret order' to avoid typing all cases in a business structure to manage a real table
The question is simple. I don't know if there is a command (similar to "..") to represent a group of a real table in a structure of 'case '.
I have attached an example in LV2011 in the zip (it was impossible to download the vi!)
Vicen
LabVIEW 2010/2011 with WinXP/10
For the situation where we have only a handful of Boolean I like to throw as an enum to make esy to decode the combinations.
Ben
-
I need to create a document library in descending (from most recent to oldest) for the customer's Web site. Similar to a blog that the message the most recent appears at the top, but without all the photos - it will be just links to documents. I would like to be able to see ten of these documents on a single page and have an archive of older documents with a sorting function without having to duplicate or retyping content. I can't find a widget that allows this functionality.
Can you suggest a 3rd party widget or a workaround?
Here are some examples that are similar to what I'm trying to achieve. Any help would be greatly appreciated!
The Chamber of Commerce of Grand"events
Town of Grand Island, Nebraska: City Council meetings
I have no suggestions, but all the widgets associated with Muse are listed on this page. You can filter by their type and chooose widgets one that best fits your needs.
-
How to transition in all the clips onece in order to avoid a
Please help I hate take ting put one through a transition on clips. How can I take a single transition to apper on all clips in mi? pls help
inactiveforumnotifier Zoheir Newsgroup_User Debbie Amy_Wong Premiere Pro
Edit > Preferences > General and set the default transition. Then:
Add quickly melted simple transition to several cuts: Adobe Premiere Pro
Maybe you are looking for
-
T450 activate the second DIMM location
Hello Just got a new T450. I swapped the RAM out stock for 8 gb and noticed that there is an another DIMM slot next to him. I tried to paste in the stock 4 GB DIMMs, but Windows can not see, showing only 8 GB. Do I need to enable somehwere? Thank you
-
I use NO-Software, we want to implement the 6259 NOR in our own software. To do this, I need to know how to change the meaning of the DI/O at the start. What is an initial message that defines the properties of inputs and outputs?
-
Security updates fail (KB2655992 KB2691442 KB2698365 KB2719985)
I received four security updates this week and all fail to install: KB2655992 KB2691442 KB2698365 KB2719985 I am running Windows XP SP3
-
How to copy and paste it into another file to send by email?
HOW TO COPY OR CUT AND PASTE, SEND AND EMAIL?
-
So I recently bought a new desktop computer HP it came with Windows Vista but I almost immediately upgraded to Windows 7. Is there a way to transfer the Windows Vista, the computer came with my laptop which currently runs on Windows XP and is compati