URG: ORACLE ERROR 6502 IN FDPSTP IN PICK SELECTION LIST GENERATION
Dear All,
I'm on 11.5.7 on Linux.
My problem is with WSHPSGL: Pick Selection List Generation that ends with error when launched from transactions form.
The program end with the following error:
Oracle Shipping: Version : 11.5.0 - Development
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
WSHPSGL module: Pick Selection List Generation
Current system time is 14-NOV-2002 11:26:13
**Starts**14-NOV-2002 11:26:14
ORACLE error 6502 in FDPSTP
Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error:
character to number conversion error
ORA-06512: at line 1
If we launch the report trough OM Superuser - Shipping - Release Sales Orders -
Release Sales Orders, there's no error.
Has anyone have this kind of error? How can we solve it?
Any help would be greatly appreciated.
Thanks in advance
FG
EBS is 11.5.10.2
OS is OEL 5.3.
It was running fine until yesterday.But its giving error today.
error log shows exception in Release_Batch_SRS procedure.
exact code is ---
++++++++++++++++++++++++
IF G_CONC_REQ = FND_API.G_TRUE THEN
l_ret_code := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR','');
errbuf := 'Exception occurred in Release_Batch_SRS';
retcode := '2';
END IF;
++++++++++++++++++++++
Thanks,
Rakesh
Similar Messages
-
Pick selection list generation - srs
EBS R12
OS Linux
I am submitted the program "pick selection list generation - srs", by using the fnd_submit API, this is supposed to pick the Sales Order and Release the Sales Order.
Program is getting completed successfully, but is not picking the Sales Order.
Can any body tell me the required setups for using this program.
Regards,
PKHi PK,
Try the following..I think for some last options.
1. Subinventory specified as release criteria, and the order lines do not have a subinventory specified.
2. A specific sales order is entered, and the scheduled ship date or request date ranges are outside the dates specified in the order. For example, order 12345 was entered and booked with scheduled ship date of Nov 1, 2009; and when pick releasing this order, a scheduled ship date range of Oct 1 2009 through October 31 2009 was specified.
3. Shipping warehouse specified on the Pick Release form is not the same as the shipping warehouse specified on the order.
Thanks
-Arif. -
Error in running request: ORACLE error 20100 in FDPSTP
Got following error when running a concurrent manager job:
ORACLE error 20100 in FDPSTP
Cause: FDPSTP failed due to ORA-20100: File o0002562.tmp creation for FND_FILE failed.
You will find more information on the cause of the error in request log.
ORA-06512: at "APPS.FND_FILE", line 410
ORA-06512
From the request logfile:
APPPRSPR module: Payment Process Manager
ORACLE error 20100 in FDPSTP
Cause: FDPSTP failed due to ORA-20100: File o0002562.tmp creation for FND_FILE failed.
You will find more information on the cause of the error in request log.
ORA-06512: at "APPS.FND_FILE", line 410
ORA-06512: at "APPS.FND_
Any idea?
ThanksWe discussed this issue many times in the forum before; please go through old threads and it should be helpful in fixing this issue -- https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-20100&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
AutoConfig is exiting with status 1 And ORACLE error 6502 in afpodbinit
Hi Experts,
Excuse me for trying to brief the Issue in such manner which may not be apt. or appear stupid to many Experts. But I am newbie to Oracle Apps !
After registering the EBS R12.1 Vision, DB version 11.2.0.3.0 with OID 11.1.1.6 successfully with $FND_TOP/bin/txkrun.pl Before that Registered EBS Instance with OID
as part of Integrating EBS R12 with OAM-OID 11g according to (ID :1309013.1)
Once i updated these profile options i.e "Applications SSO Type" profile option to “SSWA w/SSO” and“Applications SSO Login Types” profile option to BOTH , AND
Applications SSO Auto Link User profile option to “Enabled” And “Applications SSO Enable OID Identity Add Event” profile option to “Enabled”.
And than it requyire the EBS tier to be restarted Once i restarted it Than the following Issues Occured.
1. As i specified the provisiontype value to 1 which means that the user that's got created in OID should be populated in fnd_user table in EBS But this is not happening
as the User that i 've created with the ODSM is not propagated to fnd_user table when i verified it with the following query
select USER_NAME, CREATION_DATE from fnd_user where creation_date > (SYSDATE - 1);
The Output : no rows selected
2. The EBS Login page become inaccessible that is the Login Page goes blank
3. opmn managed are running fine But when i checked the status of adcmctl got the following error,
You are running adcmctl.sh version 120.17.12010000.5
ORACLE error 6502 in afpodbinit
Cause: afpodbinit failed due to ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "APPS.FND_GLOBAL", line 1939
ORA-06512: at "APPS.FND_GLOBAL", line 2309
ORA-06512: at "APPS.FND_GLOBAL", line 2447
ORA-06512: at line 1.
The SQL statement being executed at the time of the error was: begin fnd_global.bless_next_init('FND_PERMIT_0000'); fnd_global.initialize(:session_id, :user_id, :resp_id, :resp_appl_id, :security_group_id, :site_id, :login_id, :conc_login_id, :prog_appl_id, :conc_program_id, :conc_request_id, :conc_priority_request, :form_id, :form_application_id, :conc_process_id, :conc_queue_id, :queue_appl_id, :server_id); fnd_profile.put('ORG_ID', :org_id); fnd_profile.put('MFG_ORGANIZATION_ID', :mfg_org_id); fnd_profile.put('MFG_CHART_OF_ACCOUNTS_ID', :coa); fnd_profile.put('APPS_MAINTENANCE_MODE', :amm); end; and was executed from the file &ERRFILE.
Internal Concurrent Manager status could not be determined.
adcmctl.sh: exiting with status 0
even though
adopmnctl.sh status give the following output.
You are running adopmnctl.sh version 120.6.12010000.5
Checking status of OPMN managed processes...
Processes in Instance: VIS_ebs.ebs.oracle.com
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 100242 | Alive
OC4JGroup:default_group | OC4J:forms | 100173 | Alive
OC4JGroup:default_group | OC4J:oacore | 100021 | Alive
HTTP_Server | HTTP_Server | 99964 | Alive
4. when i run the autoconfig it got Failed with these error
AutoConfig is exiting with status 1
also the following i observed in the adconfig log file.
[PROFILE PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /oracle/VIS/apps/tech_st/10.1.3/perl/bin/perl -I /oracle/VIS/apps/tech_st/10.1.3/perl/lib/5.8.3 -I /oracle/VIS/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3 -I /oracle/VIS/apps/apps_st/appl/au/12.0.0/perl -I /oracle/VIS/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /oracle/VIS/inst/apps/VIS_ebs/admin/scripts/adexecsql.pl sqlfile=/oracle/VIS/inst/apps/VIS_ebs/admin/install
afwebprf.sql INSTE8_PRF
Could you please suggest whats could be Issue here. Also posting the contents of /etc/hosts file Although these is no Issue with the Apps & DB listener.
[root@l]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.12.6 iam.oracle.com iam (WHICH IS THE EBS node)
192.168.12.13 OAM.oracle.com OAM (which is the OAM node)
Thanks & Regards
PriyaHi Hussein,
Thanks for the suggested Docs
I 've gone through the Docs that you 've suggested And based on that made a Comprehensive analysis of the Issues and comes up with these findings even though still short of the resolution
Kindly see the following and suggest.
1. The Docs [ID 1109247.1] suggested to Remove the value of profile option ' Initialization SQL Statement .
Please see the current Value of it and if you could give your thoughts
SHORT_NAME
NAME
LEVEL_SET
CONTEXT
VALUE
FND_APPS_INIT_SQL
Initialization SQL Statement - Oracle
Application
OFA
BOTH
FND_APPS_INIT_SQL
Initialization SQL Statement - Oracle
Application
SQLGL
BOTH
FND_APPS_INIT_SQL
Initialization SQL Statement - Oracle
Responsibility
BIS_FIN
BOTH
FND_APPS_INIT_SQL
Initialization SQL Statement - Oracle
Responsibility
BIS_FIN-19121522
BOTH
Also when i query the home_url from icx_sessions The home_url column of the table are BLANK. even though it's there in the context file which is verified by this output.
grep login $CONTEXT_FILE
<login_page oa_var="s_login_page">http://ebs.oracle.com:8000/OA_HTML/AppsLogin</login_page>
Therefore i quried to check the whether the related Tablespace are full. It is not FULL also there is no Issue of space TEMP tablespace either,
Please see the APPS_SSO related profile values after dating those values the EBS login url ISSUE Occured. as I already mentioned that in the First POST.
SHORT_NAME NAME LEVEL_SET CONTEXT VALUE
FND_APPS_INIT_SQL Initialization SQL Statement - Oracle Application OFA BOTH
FND_APPS_INIT_SQL Initialization SQL Statement - Oracle Application SQLGL BOTH
FND_APPS_INIT_SQL Initialization SQL Statement - Oracle Responsibility BIS_FIN BOTH
FND_APPS_INIT_SQL Initialization SQL Statement - Oracle Responsibility BIS_FIN-19121522 BOTH
APPS_SSO Applications SSO Type Site SSWA_SSO
APPS_SSO Applications SSO Type User PROFILEOPTIONS BOTH
APPS_SSO_ALLOW_MULTIPLE_ACCOUN Applications SSO Allow Multiple Accounts Site BOTH
TS
APPS_SSO_AUTO_LINK_USER Applications SSO Auto Link User Site Enabled
APPS_SSO_CHANGE_PWD_URL Application SSO Change Password URL UnDef UnDef
APPS_SSO_FORGOT_PWD_URL Application SSO Forget Password URL UnDef UnDef
APPS_SSO_HINT_COOKIE_NAME Applications Single Sign On Hint Cookie Site BOTH
Name
APPS_SSO_LDAP_SYNC Application SSO LDAP Synchronization Site BOTH
APPS_SSO_LDAP_SYNC Application SSO LDAP Synchronization User GUEST BOTH
APPS_SSO_LDAP_SYNC Application SSO LDAP Synchronization User PROFILEOPTIONS BOTH
APPS_SSO_LDAP_SYNC Application SSO LDAP Synchronization User SYSADMIN BOTH
APPS_SSO_LINK_SAME_NAMES Link Applications user with OID user wit UnDef UnDef
h same username
APPS_SSO_LINK_TRUTH_SRC Applications SSO Linking Source of Truth Site BOTH
APPS_SSO_LISTENER_TOKEN Applications SSO Partner Application Lis UnDef UnDef
tener Token
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types Site BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User MHUNT BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User PTULL BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User MEMERY BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User RKARMER BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User CABLACKWELL BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User DBAKER BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User SCRAWFORD BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User WJEFFREY BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User PROFILEOPTIONS BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User PROCESS_OPS BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User FAVERY BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User FBRAMER BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User GUEST BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User DAEVANS BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User RGRANT BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User MNOOT BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User PPARKINSON BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User SYSADMIN BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User PGARRER BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User RDUNNE BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User PDESMOND BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User CPARKER BOTH
APPS_SSO_LOCAL_LOGIN Applications SSO Login Types User CHMARTIN BOTH
APPS_SSO_MODPLSQL_URL Applications SSO MOD_PLSQL Url UnDef UnDef
APPS_SSO_OID_IDENTITY Applications SSO Enable OID Identity Add Site Enabled
Event
APPS_SSO_POSTLOGOUT_HOME_URL Applications SSO Post Logout URL UnDef UnDef
APPS_SSO_USER_CREATE_UPDATE Applications SSO User Creation and Updat Site Y
ion Allowed
Waiting to hear from you. Please suggest
Thanks
Priya -
hi
i have this code with me ,a custom code which wrked fine till i added few lines of code for sequence number generation(eg 2010-0001, ie YYYY-xxxx format)
CREATE OR REPLACE PROCEDURE Nap_Create_Job (ERRBUF OUT VARCHAR2,RETCODE OUT NUMBER,P_Job_Number VARCHAR2
)IS
BEGIN
DECLARE
g_eam_wo_relations_tbl0 Eam_Process_Wo_Pub.eam_wo_relations_tbl_type;
g_eam_wo_relations_rec Eam_Process_Wo_Pub.eam_wo_relations_rec_type;
g_eam_op_rec0 Eam_Process_Wo_Pub.eam_op_rec_type;
g_eam_op_rec1 Eam_Process_Wo_Pub.eam_op_rec_type;
g_eam_op_tbl2 Eam_Process_Wo_Pub.eam_op_tbl_type;
g_eam_op_network_rec0 Eam_Process_Wo_Pub.eam_op_network_rec_type;
g_eam_op_network_rec1 Eam_Process_Wo_Pub.eam_op_network_rec_type;
g_eam_mat_req_rec0 Eam_Process_Wo_Pub.eam_mat_req_rec_type;
g_eam_mat_req_rec1 Eam_Process_Wo_Pub.eam_mat_req_rec_type;
g_eam_di_rec0 Eam_Process_Wo_Pub.eam_direct_items_rec_type;
g_eam_di_rec1 Eam_Process_Wo_Pub.eam_direct_items_rec_type;
g_eam_res_rec0 Eam_Process_Wo_Pub.eam_res_rec_type;
g_eam_res_rec1 Eam_Process_Wo_Pub.eam_res_rec_type;
g_eam_res_inst_rec0 Eam_Process_Wo_Pub.eam_res_inst_rec_type;
g_eam_res_inst_rec1 Eam_Process_Wo_Pub.eam_res_inst_rec_type;
g_eam_op_tbl0 Eam_Process_Wo_Pub.eam_op_tbl_type;
g_eam_op_tbl1 Eam_Process_Wo_Pub.eam_op_tbl_type;
g_eam_op_network_tbl0 Eam_Process_Wo_Pub.eam_op_network_tbl_type;
g_eam_res_tbl0 Eam_Process_Wo_Pub.eam_res_tbl_type;
g_eam_res_inst_tbl0 Eam_Process_Wo_Pub.eam_res_inst_tbl_type;
g_eam_sub_res_tbl0 Eam_Process_Wo_Pub.eam_sub_res_tbl_type;
g_eam_res_usage_tbl0 Eam_Process_Wo_Pub.eam_res_usage_tbl_type;
g_eam_mat_req_tbl0 Eam_Process_Wo_Pub.eam_mat_req_tbl_type;
g_eam_di_tbl0 Eam_Process_Wo_Pub.eam_direct_items_tbl_type;
g_out_eam_wo_relations_tbl Eam_Process_Wo_Pub.eam_wo_relations_tbl_type;
g_out_eam_wo_rec Eam_Process_Wo_Pub.eam_wo_rec_type;
g_out_eam_wo_tbl Eam_Process_Wo_Pub.eam_wo_tbl_type;
g_out_eam_op_tbl Eam_Process_Wo_Pub.eam_op_tbl_type;
g_out_eam_op_network_tbl Eam_Process_Wo_Pub.eam_op_network_tbl_type;
g_out_eam_res_tbl Eam_Process_Wo_Pub.eam_res_tbl_type;
g_out_eam_res_inst_tbl Eam_Process_Wo_Pub.eam_res_inst_tbl_type;
g_out_eam_sub_res_tbl Eam_Process_Wo_Pub.eam_sub_res_tbl_type;
g_out_eam_res_usage_tbl Eam_Process_Wo_Pub.eam_res_usage_tbl_type;
g_out_eam_mat_req_tbl Eam_Process_Wo_Pub.eam_mat_req_tbl_type;
g_out_eam_di_tbl Eam_Process_Wo_Pub.eam_direct_items_tbl_type;
g_eam_wo_rec1 Eam_Process_Wo_Pub.eam_wo_rec_type;
g_eam_wo_rec2 Eam_Process_Wo_Pub.eam_wo_rec_type;
g_eam_wo_rec3 Eam_Process_Wo_Pub.eam_wo_rec_type;
g_eam_wo_tbl0 Eam_Process_Wo_Pub.eam_wo_tbl_type;
g_eam_wo_tbl1 Eam_Process_Wo_Pub.eam_wo_tbl_type;
g_eam_wo_tbl2 Eam_Process_Wo_Pub.eam_wo_tbl_type;
g_eam_wo_res_usg_tbl0 Eam_Process_Wo_Pub.eam_res_usage_tbl_type;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
P_Date DATE ;
g_eam_wo_usg_rec1 Eam_Process_Wo_Pub.eam_res_usage_rec_type;
g_eam_wo_usg_rec2 Eam_Process_Wo_Pub.eam_res_usage_rec_type;
L_Asset_Activity_id NUMBER;
L_OPERATION_SEQ_NUM NUMBER;
v_loop_counter NUMBER := 10 ;
L_Inv_Item_Id NUMBER;
l_Foam NUMBER;
v_COUNT_J NUMBER := 0 ;
l_Qty NUMBER;
l_dept NUMBER;
l_rig VARCHAR2(130);
V_CELL VARCHAR2(13);
l_well VARCHAR2(130);
l_field VARCHAR2(130);
l_job VARCHAR2(130);
Att_Field VARCHAR2(130);
Att_Well VARCHAR2(130);
Att_Rig VARCHAR2(130);
Att_lab_test_No VARCHAR2(30);
Att_Client VARCHAR2(300);
Att_contract VARCHAR2(30);
Att_material_order_type VARCHAR2(30);
Att_service_order_type VARCHAR2(30);
l_rig_Value NUMBER;
Att_Field1 VARCHAR2(30);
Att_Well1 VARCHAR2(30);
Att_Rig1 VARCHAR2(30);
Att_Job_type VARCHAR2(30);
Att_Job VARCHAR2(30);
V_OPN_JOB_DESC VARCHAR2(60);
Field_Distance NUMBER;
L_Sum_Pound NUMBER;
L_Sum_Cement NUMBER;
L_Cnt NUMBER;
L_Sum_Pound_Amount NUMBER;
L_Sum_Cement_Amount NUMBER;
L_Slurry_Vol NUMBER;
L_Sum NUMBER;
L_ITEM_count NUMBER;
L_ITEM_count1 NUMBER;
V_wip_entity_id NUMBER;
V_Run_API NUMBER:=1;
V_Invoice_no VARCHAR2(20);
CURSOR C1 IS
SELECT job , ORG_JOB_NUMBER job_number, job_type, entry_date, class_code cell
FROM xxnp_opn_joblog_001
WHERE ORG_JOB_NUMBER = p_job_number
and Rownum =1 ;
CURSOR C3 IS
SELECT Distinct
SUBSTR ( DTL.DATA_DESCRIPTION ,1,240) DATA_DESCRIPTION
FROM XXNP_OPN_JOBLOG_DATA_009 DTL ,
XXNP_OPN_JOBLOG_001 MST
WHERE
MST.OPN_JOBLOG_001_ID = DTL.OPN_JOBLOG_001_ID
AND ORG_JOB_NUMBER = p_job_number;
BEGIN
BEGIN
SELECT ENTRY_DATE , Field, well , rig, CUSTOMER_NAME,contract, MATERIAL_ORDER_TYPE,SERVICES_ORDER_TYPE ,job_type,job , CLASS_CODE
INTO P_Date , Att_Field,Att_Well,Att_Rig,Att_Client,Att_contract, Att_material_order_type,Att_service_order_type,Att_Job_type,Att_Job ,v_CELL
FROM XXNP_OPN_JOBLOG_001
WHERE ORG_JOB_NUMBER = P_Job_Number
and Rownum =1 ;
EXCEPTION WHEN OTHERS THEN
V_Run_API := 0 ;
Fnd_File.Put_Line(FND_FILE.LOG, 'Inset Correct Job Number for this Request ' ) ;
END;
BEGIN
SELECT department_id INTO l_dept
FROM BOM_DEPARTMENTS
WHERE DEPARTMENT_CODE = 'OPERATIONS';
EXCEPTION WHEN OTHERS THEN l_dept := 0;
END;
If v_CELL is null then
Fnd_File.Put_Line(FND_FILE.LOG, 'Inset Cell Number for this Job ' ) ;
V_Run_API := 0 ;
End if ;
IF V_Run_API <> 0 then
g_eam_wo_rec1 := NULL;
g_eam_wo_rec1.transaction_type := Eam_Process_Wo_Pvt.G_OPR_CREATE;
g_eam_wo_rec1.batch_id := 1;
g_eam_wo_rec1.header_id := 1;
g_eam_wo_rec1.wip_entity_id := NULL;
g_eam_wo_rec1.wip_entity_name := P_job_number;
g_eam_wo_rec1.Asset_Activity_Id := L_Asset_Activity_id;
g_eam_wo_rec1.organization_id := 104;
g_eam_wo_rec1.asset_group_id := 31759;
g_eam_wo_rec1.asset_number := 'NAPESCO OPERATIONS';
g_eam_wo_rec1.rebuild_item_id := NULL;
g_eam_wo_rec1.rebuild_serial_number := NULL;
g_eam_wo_rec1.maintenance_object_source := 1;
g_eam_wo_rec1.maintenance_object_type := 1;
g_eam_wo_rec1.maintenance_object_id := 346;
g_eam_wo_rec1.parent_wip_entity_id := NULL;
g_eam_wo_rec1.manual_rebuild_flag := NULL;
g_eam_wo_rec1.owning_department := 1;
g_eam_wo_rec1.description := 'Created From Job Log';
g_eam_wo_rec1.class_code := V_CELL ;
g_eam_wo_rec1.status_type := 3;
g_eam_wo_rec1.date_released := P_Date ;
g_eam_wo_rec1.firm_planned_flag := 2;
g_eam_wo_rec1.scheduled_start_date := P_Date;
g_eam_wo_rec1.requested_start_date := P_Date;
g_eam_wo_rec1.scheduled_completion_date := P_Date;
g_eam_wo_rec1.material_issue_by_mo := 'N';
g_eam_wo_rec1.priority := 10;
g_eam_wo_rec1.issue_zero_cost_flag := 'Y';
g_eam_wo_rec1.po_creation_time := 1;
g_eam_wo_rec1.job_quantity := 1;
g_eam_wo_rec1.notification_required := 'N';
g_eam_wo_rec1.Attribute1 := Att_Well;
g_eam_wo_rec1.Attribute2 := Att_Rig;
g_eam_wo_rec1.Attribute4 := Att_Client;
g_eam_wo_rec1.Attribute5 := Att_contract;
g_eam_wo_rec1.Attribute6 := Att_material_order_type;
g_eam_wo_rec1.Attribute7 := Att_service_order_type;
g_eam_wo_rec1.Attribute8 := Att_Field;
g_eam_wo_rec1.Attribute9 := Att_Job_type;
g_eam_wo_rec1.Attribute10 := Att_Job;
g_eam_wo_tbl0(1) := g_eam_wo_rec1;
Eam_Process_Wo_Pub.PROCESS_WO
( p_bo_identifier => 'EAM'
, p_api_version_number => 1.0
, p_init_msg_list => TRUE
, p_commit => 'N'
, p_eam_wo_rec => g_eam_wo_rec1
, p_eam_op_tbl => g_eam_op_tbl2
, p_eam_op_network_tbl => g_eam_op_network_tbl0
, p_eam_res_tbl => g_eam_res_tbl0
, p_eam_res_inst_tbl => g_eam_res_inst_tbl0
, p_eam_sub_res_tbl => g_eam_sub_res_tbl0
, p_eam_res_usage_tbl => g_eam_res_usage_tbl0
, p_eam_mat_req_tbl => g_eam_mat_req_tbl0
, p_eam_direct_items_tbl => g_eam_di_tbl0
, x_eam_wo_rec => g_eam_wo_rec2
, x_eam_op_tbl => g_out_eam_op_tbl
, x_eam_op_network_tbl => g_out_eam_op_network_tbl
, x_eam_res_tbl => g_out_eam_res_tbl
, x_eam_res_inst_tbl => g_out_eam_res_inst_tbl
, x_eam_sub_res_tbl => g_out_eam_sub_res_tbl
, x_eam_res_usage_tbl => g_out_eam_res_usage_tbl
, x_eam_mat_req_tbl => g_out_eam_mat_req_tbl
, x_eam_direct_items_tbl => g_out_eam_di_tbl
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, p_debug => 'Y'
, p_output_dir => '/usr/tmp'
, p_debug_filename => 'eambo24.log'
, p_debug_file_mode => 'w'
--------------------------------------------------- inserting Operation------------------------------------- -----------------------------------
FOR I IN C3 LOOP
g_eam_op_rec1.header_id := 1;
g_eam_op_rec1.ROW_id := 1;
g_eam_op_rec1.batch_id := 1;
g_eam_op_rec1.WIP_ENTITY_ID :=g_eam_wo_rec2.wip_entity_id;
V_wip_entity_id :=g_eam_wo_rec2.wip_entity_id;
g_eam_op_rec1.ORGANIZATION_ID := 104 ;
g_eam_op_rec1.OPERATION_SEQ_NUM := v_loop_counter ;
g_eam_op_rec1.DEPARTMENT_ID := l_dept ;
g_eam_op_rec1.DESCRIPTION := I.DATA_DESCRIPTION ;
g_eam_op_rec1.START_DATE := SYSDATE ;
g_eam_op_rec1.COMPLETION_DATE := SYSDATE ;
g_eam_op_rec1.OPERATION_SEQUENCE_ID := v_loop_counter ;
g_eam_op_rec1.TRANSACTION_TYPE:= 1;
v_loop_counter := v_loop_counter +10 ;
g_eam_op_tbl2 (1) := g_eam_op_rec1 ;
Eam_Process_Wo_Pub.PROCESS_MASTER_CHILD_WO
( p_bo_identifier => 'EAM'
, p_api_version_number => 1.0
, p_init_msg_list => TRUE
, p_commit => 'N'
, p_eam_wo_relations_tbl => g_eam_wo_relations_tbl0
, p_eam_wo_tbl => g_eam_wo_tbl2
, p_eam_op_tbl => g_eam_op_tbl2
, p_eam_op_network_tbl => g_eam_op_network_tbl0
, p_eam_res_tbl => g_eam_res_tbl0
, p_eam_res_inst_tbl => g_eam_res_inst_tbl0
, p_eam_sub_res_tbl => g_eam_sub_res_tbl0
, p_eam_mat_req_tbl => g_eam_mat_req_tbl0
, p_eam_direct_items_tbl => g_eam_di_tbl0
, x_eam_wo_tbl => g_eam_wo_tbl1
, x_eam_wo_relations_tbl => g_out_eam_wo_relations_tbl
, x_eam_op_tbl => g_out_eam_op_tbl
, x_eam_op_network_tbl => g_out_eam_op_network_tbl
, x_eam_res_tbl => g_out_eam_res_tbl
, x_eam_res_inst_tbl => g_out_eam_res_inst_tbl
, x_eam_sub_res_tbl => g_out_eam_sub_res_tbl
, x_eam_mat_req_tbl => g_out_eam_mat_req_tbl
, x_eam_direct_items_tbl => g_out_eam_di_tbl
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, p_debug => 'Y'
, p_output_dir => '/usr/tmp'
, p_debug_filename => 'eambo26.log'
, p_debug_file_mode => 'w'
END LOOP ;
End if ;
/*NEWLY ADDED ON 8TH FEB FOR SEQ NUM*/
Begin
Select
to_char (sysdate , 'RRRR') || '-' || nvl (lpad ( to_char ( max ( to_number ( ( substr ( attribute7 , 6, instr ( substr ( attribute7 , 6 ),'-')-1 )) ) )+1 ) , 4,'0'),'0001')
into V_Invoice_no
From (
Select ATTRIBUTE7 from OE_HEADERS_IFACE_ALL where ATTRIBUTE7 is not null union All
Select ATTRIBUTE7 from OE_ORDER_HEADERS_all where ATTRIBUTE7 is not null
where substr ( ATTRIBUTE7,1,4 ) = to_char (sysdate , 'RRRR') ;
Exception
when others then
select to_char (sysdate , 'RRRR')||'-0001' into V_Invoice_no from dual ;
End ;
INSERT INTO WIP_DISCRETE_JOBS
(ATTRIBUTE14 )
VALUES
(V_Invoice_no );
------ Material creation
Napesco_Work_Order_Api_Res ( p_JOB_NUMBER , g_eam_wo_rec2.wip_entity_id ) ;
------ services creation
Napesco_Work_Order_Api ( p_JOB_NUMBER , g_eam_wo_rec2.wip_entity_id ) ;
UPDATE wip_discrete_jobs
SET CREATION_DATE = P_Date
WHERE wip_entity_id = v_wip_entity_id
AND ROWNUM =1 ;
UPDATE XXNP_OPN_JOBLOG_001
SET WO_FLAG = 'Y' ,
WO_date = SYSDATE
WHERE ORG_JOB_NUMBER = P_Job_Number ;
Fnd_File.Put_Line(FND_FILE.LOG, 'Work Order ' || P_job_number || ' Successfully ' ) ;
END LOOP;
END ;
/just to be clear this is the code i included
/*NEWLY ADDED ON 8TH FEB FOR SEQ NUM*/
Begin
Select
to_char (sysdate , 'RRRR') || '-' || nvl (lpad ( to_char ( max ( to_number ( ( substr ( attribute7 , 6, instr ( substr ( attribute7 , 6 ),'-')-1 )) ) )+1 ) , 4,'0'),'0001')
into V_Invoice_no
From (
Select ATTRIBUTE7 from OE_HEADERS_IFACE_ALL where ATTRIBUTE7 is not null union All
Select ATTRIBUTE7 from OE_ORDER_HEADERS_all where ATTRIBUTE7 is not null
where substr ( ATTRIBUTE7,1,4 ) = to_char (sysdate , 'RRRR') ;
Exception
when others then
select to_char (sysdate , 'RRRR')||'-0001' into V_Invoice_no from dual ;
End ;
INSERT INTO WIP_DISCRETE_JOBS
(ATTRIBUTE14 )
VALUES
(V_Invoice_no );but i am getting this error
Enterprise Asset Management: Version : 11.5.0 - Development
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
NAPESCO_CREATE_JOB module: NAP Create Work Order
Current system time is 10-FEB-2011 11:44:37
**Starts**10-FEB-2011 11:44:38
ORACLE error 29282 in FDPSTP
Cause: FDPSTP failed due to ORA-29282: invalid file ID
ORA-06512: at "SYS.UTL_FILE", line 774
ORA-06512: at "APPS.EAM_ERROR_MESSAGE_PVT", line 1987
ORA-06512: at "APPS.EAM_ERROR_MESSAGE_PVT", line 1197
ORA-065
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Finished executing request completion options.
Exceptions posted by this request:
Concurrent Request for "NAP Create Work Order" has completed with error.
Concurrent request completed
Current system time is 10-FEB-2011 11:44:42
kindly guide me
thanking in advancehi
i just found out ever since i added my peice of code to the already wrking fine concurrent pgm this error is showing
so i figure the prob is with my peice of code which i added
i require a sequence number generation
ie YYYY-0001 format till 9999
say a job is registered in the year 2011 on feb 2 the sequence wud be 2011 -0001
on feb 3 for another job it wud be 2011-0002
well this wht i tried
/*NEWLY ADDED ON 8TH FEB FOR SEQ NUM*/
Begin
select to_char (sysdate , 'RRRR')||'-0001' into V_Invoice_no from dual ;
End ;
INSERT INTO WIP_DISCRETE_JOBS
(ATTRIBUTE14 )
VALUES
(V_Invoice_no );but will it increment from 0001 to 0002
kindly guide me
thanking in advance
Edited by: makdutakdu on Feb 10, 2011 1:56 PM -
Hi
In select statement i used view TPC_ORDER_REPORT_V
Previously report runs without error,
but i have changed view i.e. removed one column from this view , and when try to run it gives following error
**Starts**17-JAN-2013 13:25:06
ORACLE error 20001 in FDPSTP
Cause: FDPSTP failed due to ORA-20001:
ORA-06512: at "APPS.APP_EXCEPTION", line 72
ORA-06512: at "APPS.TPC_ORDER_REPORTS_PKG", line 715
ORA-06512: at line 1
The SQL statement being executed at the time of the error was: S
Can anyone help me to resolve it
Thanks,
Sunil
Edited by: 973411 on Jan 16, 2013 10:44 PM
Edited by: 973411 on Jan 16, 2013 10:45 PMHi Kishore,
I have executed your query
select * from dba_objects where status='INVALID' and object_name='TPC_ORDER_REPORTS_PKG';
Result : Blank record
Means not any row fetch. I have checked executing following query.
select * from dba_objects where status='VALID' and object_name='TPC_ORDER_REPORTS_PKG';
result:
OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY
APPS TPC_ORDER_REPORTS_PKG 571808 PACKAGE 1/13/2011 8:53:20 PM 1/7/2013 6:10:40 AM 2013-01-07:06:10:40 VALID N N N
APPS TPC_ORDER_REPORTS_PKG 571811 PACKAGE BODY 1/13/2011 9:18:15 PM 1/15/2013 8:02:03 PM 2013-01-15:20:02:03 VALID N N N
Hence I sure package is valid .......
Edited by: 973411 on Jan 21, 2013 4:05 AM
Edited by: 973411 on Jan 21, 2013 4:06 AM -
Hi Team.
We have a DB 11.1.0.07 ON HP-UX 11.23 64 Bits. and wr have this error;
ORACLE error 29283 in FDPSTP
**Starts**27-SEP-2013 12:05:10
ORACLE error 29283 in FDPSTP
Cause: FDPSTP failed due to ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "APPS.FLC_OPM_INTERFACE", line 119
ORA-06512: at line 1
Generando archivo: /homeoa/proaut2/PROD/OP/OPM130927120510.dat
Invalida Operacion
Guido938302 wrote:
Hi Team.
We have a DB 11.1.0.07 ON HP-UX 11.23 64 Bits. and wr have this error;
ORACLE error 29283 in FDPSTP
**Starts**27-SEP-2013 12:05:10
ORACLE error 29283 in FDPSTP
Cause: FDPSTP failed due to ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "APPS.FLC_OPM_INTERFACE", line 119
ORA-06512: at line 1
Generando archivo: /homeoa/proaut2/PROD/OP/OPM130927120510.dat
Invalida Operacion
Guido
[oracle@localhost ~]$ oerr ora 29283
29283, 00000, "invalid file operation"
// *Cause: An attempt was made to read from a file or directory that does
// not exist, or file or directory access was denied by the
// operating system.
// *Action: Verify file and directory access privileges on the file system,
// and if reading, verify that the file exists. -
ORACLE error 1847 in FDPSTP while running concurrent program
When I try to run concurrent program getting below error
ORACLE error 1847 in FDPSTP
Cause: FDPSTP failed due to ORA-01847: day of month must be between 1 and last day of month
ORA-06512: at line 1
Parameters
Org_id number
Date select sysdate from dual;
Executable
PROCEDURE call_iptp15c (
p_operating_unit_in IN ap_invoices_all.org_id%TYPE,
p_start_date_in IN DATE,
ERROR_BUF OUT VARCHAR2,
RETCODE OUT VARCHAR2
What would be the reason for this.Hi,
Please mention the application release along with the database version and OS.
Is this a custom or seeded concurrent program?
Please make sure you use a valid date format -- Note: 19171.1 - OERR: ORA 1847 day of month must be between 1 and last day of month
Thanks,
Hussein -
Javascript error in IE after re-generating select list
Hi,
I have 2 select lists (Apex 4 cascading select list; the second one is driven by the first one) in a form. I use jQuery modal dialog to show a hidden item to allow users to add new values to the second select list. After that, I use the following JavaScripts to re-generate the options in the second select list. Somehow, in IE, it re-generates the options but shows error after that. It looks like the error complains somewhere after the options have been re-generated.
Does anyone have any idea about how to force a select list to refresh (or any jQuery/Apex API) - without submitting the form?
Thanks.
Andy
<pre>
function addDesc()
var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=ADD_EXP_CATEGORY_SUB', 0);
ajaxRequest.add('P5_MODALFORM_CAT_SUB', $v('P5_MODALFORM_CAT_SUB'));
ajaxRequest.add('P5_INV_EXP_CATEGORY_PK', $v('P5_INV_EXP_CATEGORY_PK'));
var gReturn = ajaxRequest.get();
if (gReturn) {
if (gReturn > 0) {
closeForm();
// reload description select list
reload_exp_cat_sub('P5_INV_EXP_CATEGORY_SUB_PK',gReturn);
} else {
alert('Error inserting category sub');
} else {
alert('Error inserting category sub');
ajaxRequest = null;
function reload_exp_cat_sub(pSelect,pReturn){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null,&APP_ID.,
'APPLICATION_PROCESS=RELOAD_EXP_CAT_SUB',0);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
// Select the new value just inserted
html_SetSelectValue(l_Select,pReturn);
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</pre>Hello Ellie,
I see the same behavior and I'm looking into it. Thanks for
your patience.
Best regards,
Corey -
ORA-01007 - variable not in select list - Oracle forms 6i
Hi!
I´m creating an form with one field called "txtquery". The user can write a query on this field and click on button with code above. The form will create a text file with the result of the query writing. I managed to create a function in oracle and it worked perfectly but I want to solve without creating any object in the database.
Sorry for my bad english!
I wrote the following code:
DECLARE
VISCONNECTED BOOLEAN;
VCONEXAO EXEC_SQL.CONNTYPE;
VARQUIVO_SAIDA TEXT_IO.FILE_TYPE;
VCURSOR EXEC_SQL.CURSTYPE;
VCOLUMNVALUE VARCHAR2(2000);
VSTATUS PLS_INTEGER;
VNUMCOLUNAS NUMBER DEFAULT 0;
VSEPARADOR VARCHAR2(10) DEFAULT ';';
VCONTADOR NUMBER DEFAULT 0;
BEGIN
VCONEXAO := EXEC_SQL.DEFAULT_CONNECTION;
VISCONNECTED := EXEC_SQL.IS_CONNECTED;
IF NOT VISCONNECTED THEN
MSG_ALERT('Não conectado.', 'E', TRUE);
ELSE
VCURSOR := EXEC_SQL.OPEN_CURSOR;
END IF;
BEGIN
EXEC_SQL.PARSE(VCONEXAO, VCURSOR, :BLK.TXTQUERY, EXEC_SQL.V7);
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || SQLERRM || ' executando parse da query!', 'E', TRUE);
END;
BEGIN
IF TEXT_IO.IS_OPEN(VARQUIVO_SAIDA) THEN
TEXT_IO.FCLOSE(VARQUIVO_SAIDA);
END IF;
VARQUIVO_SAIDA := TEXT_IO.FOPEN(:BLK.TXTDIRECTORY || :BLK.TXTFILENAME, 'w');
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || SQLERRM || ' criando arquivo no disco!', 'E', TRUE);
END;
BEGIN
FOR I IN 1 .. 255 LOOP
BEGIN
EXEC_SQL.DEFINE_COLUMN(VCURSOR, I, VCOLUMNVALUE, 2000);
VNUMCOLUNAS := I;
EXCEPTION
WHEN OTHERS THEN
IF (SQLCODE = -1007) THEN
EXIT;
ELSE
RAISE FORM_TRIGGER_FAILURE;
END IF;
END;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || SQLERRM || ' executando define_column!', 'E', TRUE);
END;
EXEC_SQL.DEFINE_COLUMN(VCURSOR, 1, VCOLUMNVALUE, 20000);
BEGIN
VSTATUS := EXEC_SQL.EXECUTE(VCURSOR); -- ----------------------->> ERROR HERE!!!!!!!!
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || EXEC_SQL.LAST_ERROR_MESG || ' fazendo execute para a query!', 'E', TRUE);
END;
BEGIN
LOOP
EXIT WHEN(EXEC_SQL.FETCH_ROWS(VCURSOR) <= 0);
VSEPARADOR := '';
FOR I IN 1 .. VNUMCOLUNAS LOOP
EXEC_SQL.COLUMN_VALUE(VCURSOR, I, VCOLUMNVALUE);
TEXT_IO.PUT_LINE(VARQUIVO_SAIDA, VSEPARADOR || VCOLUMNVALUE);
VSEPARADOR := :BLK.TXTSEPARATOR;
END LOOP;
TEXT_IO.NEW_LINE(VARQUIVO_SAIDA);
VCONTADOR := VCONTADOR + 1;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || SQLERRM || ' criando linhas no arquivo texto!', 'E', TRUE);
END;
BEGIN
EXEC_SQL.CLOSE_CURSOR(VCURSOR);
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || SQLERRM || ' fechando cursor!', 'E', TRUE);
END;
BEGIN
TEXT_IO.FCLOSE(VARQUIVO_SAIDA);
EXCEPTION
WHEN OTHERS THEN
MSG_ALERT('Ocorreu o erro ' || SQLERRM || ' fechando arquivo!', 'E', TRUE);
END;
END;------------------------------------------
But, on line "VSTATUS := EXEC_SQL.EXECUTE(VCURSOR);" i get the error (ORA-01007 - VARIABLE NOT IN SELECT LIST). Whats is wrong?
Thanks a lot!!!The user can write a query on this field and click on button with code above.This is such a big NO NO NO! A user writing his own queries? You are really asking for problems.
VSTATUS := EXEC_SQL.EXECUTE(VCURSOR); -- ----------------------->> ERROR HERE!!!!!!!!What is the value of vcursor? -
ORA-01007 - variable not in select list error in pl\sql code
Hi,
When I tried to run this program I am getting below error:
ORA-01007 - variable not in select list.Please help to resolve.
Code:
create or replace procedure "XX_BPM_DATA_P" (P_PROCESS_ID IN VARCHAR2)
is
TYPE l_entity_type IS TABLE OF xx_BPM_data.ENTITY%TYPE INDEX BY PLS_INTEGER;
TYPE l_data_type IS TABLE OF XX_BPM_DATA.DATA%TYPE INDEX BY PLS_INTEGER;
TYPE l_count_type IS TABLE OF XX_BPM_DATA.count%TYPE INDEX BY PLS_INTEGER;
l_Entity_v l_Entity_type;
l_data_v l_data_type;
l_count_v l_count_type;
l_security_group_id number;
app_id number(20);
l_Actual_value XX_BPM_DATA.DATA%TYPE;
cursor BPM_CUR is select id,process_id , sequence, to_char(query) query,report_num from xx_test_bpm_dynamic
where
process_id = p_process_id
and report_num=1
order by process_id, sequence;
BEGIN
--delete xx_bpm_data where process_id = p_process_id;
for bpm_rec in bpm_cur
loop
delete xx_bpm_data
where process_id = bpm_rec.process_id
and sequence = bpm_rec.sequence
and report_num = bpm_rec.report_num;
l_security_group_id := apex_custom_auth.get_session_id_from_cookie;
--dbms_output.put_line(l_security_group_id);
execute immediate bpm_rec.query BULK COLLECT INTO l_ENTITY_v,l_DATA_v,l_count_v;
if (bpm_rec.report_num=2) then
app_id:= 108;--NV('APP_ID');
FORALL i IN l_ENTITY_v.FIRST..L_ENTITY_V.LAST
INSERT INTO XX_BPM_DATA
(EnTITY,
value,data,count,
Process_ID,
Sequence,report_num)
VALUES(l_entity_v(i),
l_data_v(i),
'<A HREF="f?p='||app_id||':301:'||':APP_SESSION'||'::::P301_process_id,p301_sequence,p301_id,p301_entity:'||bpm_rec.process_id||','||bpm_rec.sequence||','||bpm_rec.id||','||l_entity_v(i)||':">'||l_data_v(i)||'</A>',
l_count_v(i),bpm_rec.process_id,
BPM_rec.sequence,
bpm_rec.report_num);
else
FORALL i IN l_ENTITY_v.FIRST..L_ENTITY_V.LAST
INSERT INTO XX_BPM_DATA(EnTITY,data,
count,
Process_ID,
Sequence,report_num)
VALUES(l_entity_v(i),
l_data_v(i),
l_count_v(i),
bpm_rec.process_id,
BPM_rec.sequence,
bpm_rec.report_num);
end if;
select round(avg(value),2) into l_actual_value from xx_bpm_data where process_id=bpm_rec.process_id and sequence=bpm_rec.sequence and report_num=bpm_rec.report_num;
update xx_test_bpm_dynamic set value=l_actual_value where process_id=bpm_rec.process_id and sequence=Bpm_rec.sequence and report_num= bpm_rec.report_num;
end loop;
Commit;
END;When I tried to run this program I am getting below error:
ORA-01007 - variable not in select list.Please help to resolve.
You likely would not need any help in you wrote and tested your code using standard best practices.
Your code has NO exception handler and you are NOT identifying each step in the code so that the exception handler could print/log a message telling you EXACTLY which step raised the exception.,
v_step NUMBER;
-- before step 1
v_step := 1;
-- before step 2
v_step := 2;
Then in the exception handler the value of 'v_step' will tell you which step raised the exception.
The exception you posted refers to a 'select list' so examine ALL of the select lists in your code. If you do that you will see that the primary query being run is obtained from a database table and then executed using dynamic SQL
execute immediate bpm_rec.query BULK COLLECT INTO l_ENTITY_v,l_DATA_v,l_count_v;
We have no way of knowing what query is in 'bpm_rec.query' when the exception happens or what columns that query returns. For all we know the query returns 2 columns and you are trying to load 3 collections. Or maybe the query returns 8 columns and you are trying to load 3 collections.
Why don't you print out the query and execute it manually so you can see exactly what the result set looks like?
dbms_output.put_line(bpm_rec.query);
And don't even get us started on why you are using such security-prone dynamic sql to perform this processing instead of using ordinary SQL statements. Or why you are using associative arrays for the BULK COLLECT instead of nested tables.
In short your code could blow up in several places and, because you have NO logging statements, control statements or exception handlers, anyone having to troubleshoot that code would have absolutely no idea what part of it may be the problem. -
Capturing oracle error codes into a variable
Hi
Can someone show me how it is possible to save an Oracle defined error code into a variable? What I am trying to do is when a stored procedure fails an Oracle error is raised, such as ORA-xxxx, then pass this code into variable to be saved into a log.
How do I achieve this?user633278 wrote:
How do I achieve this?Function SQLCODE in PL/SQL exception handler returns error code. SQLERRM returns message:
SQL> declare
2 x number;
3 begin
4 x := 1/0;
5 exception
6 when others
7 then
8 dbms_output.put_line('Error code: ' || SQLCODE);
9 dbms_output.put_line('Error message: ' || SQLERRM);
10 end;
11 /
Error code: -1476
Error message: ORA-01476: divisor is equal to zero
PL/SQL procedure successfully completed.
SQL> SY. -
Oracle errors in Weblogic Error logs appear in non english
We have a problem with weblogic error logging. Specifically, in a managed server's log file, Oracle errors such as ORA-XXXX show in Greek, not English. We are assuming
that this is because the timezone is Europe/Athens. However, the weblogic application server runs with user.language=en, user.country=US. What's more, there are 4 application servers and 2 of them have this problem. The oracle database is accessed via weblogic datasources.
Oracle database server Setup: Oracle Server 11gR2 running on Oracle Linux 64 bit, timezone set to Europe/Athens
Weblogic Server: Weblogic 10.3.5 running on Oracle Linux 64 bit, timezone set to Europe/Athens
The managed server, according to jrockit, the jvm runs with the following language related system properties:
user.language=en, user.country=US, user.timezone=Europe/Athens
The question is: How do we tell oracle / weblogic to log english text for the ORA errors?
Thanks,
ChrisI digged in the weblogic installation directory and it seems like the domain configuration wizard messed up the jdbc configs for the data sources.
The config xml files for the data sources in the /domain root/config/jdbc directory had oracle driver but the test query was for pointbase. I double checked from the database.xml file in the init-info directory and corrected the entry in the datasource config xmls and voila!.. the errors were gone.
I am not sure if this was the right approach and whether i have solved the issue or simply patched it.. so I am keeping the question open. If any one has any inputs I will be grateful.
If the mods/admins feel that the thread should be marked as solved I will surely do so.
Thanks. -
[SOLVED] FRM-40508:ORACLE error: unable to INSERT record
Hi all,
I have migrated this form from 4.5 to 10g (Version 10.1.2.0.2 ). This form inserts a record into the database table when all the fields in the form are filled and a button Save is presed.
At the time when I press the Save button, I get this error. FRM-40508:ORACLE error: unable to INSERT record
So I went on to see the "Display Error" from help and found to be the database error, inserting into a table.
The error message is ORA-00932: inconsistent datatypes: expected DATE got NUMBER
The form where I press Save button has 3 date fields and I checked the properties of them and they are Date only.
I also generated to object list report and tried to find some answer, but no use.
Please help me in debugging this form.
Edited by: Charan on Aug 18, 2011 4:05 PMI think you need to get a description of the table and compare all the "database" columns in the form with the ones in the database table to see that the types match. Somewhere there's a mismatch. Also check the block(s) "query data source columns" and see if there's any
columns in there that the type does not match the table. (check the sizes of things too while you're at it.) -
Oracle error 1012 ("Not Logged On") & AUTOTRAN=Y
Hi.
I have a problem trying to access an Oracle 8.0.6
database from a 6.5 Tuxedo server.
Both TMS and server execute tpopen correctly
All services are declared as AUTOTRAN
Everything seems to be OK according to the logsgenerated by Oracle XA libraries
However, I always get the Oracle error 1012 ("Not Logged On")
when executing SQL statements from my pro*C server.
I just can't figure out why this error occurs.
I also tried to explicitly open a transaction from the client,
but the result is exactly the same (tpbegin is successfull,
however).
Could someone help me to make this work ?
Thanks.Solved by removing "DB=<db>" from my OPENINFO string, as far as this parameter
should only be used when using proc*C "EXEC SQL ... AT <db>" statements.
"Mathieu Chauvin" <[email protected]> wrote:
>
Hi.
I have a problem trying to access an Oracle 8.0.6
database from a 6.5 Tuxedo server.
Both TMS and server execute tpopen correctly
All services are declared as AUTOTRAN
Everything seems to be OK according to the logsgenerated by Oracle XA libraries
However, I always get the Oracle error 1012 ("Not Logged On")
when executing SQL statements from my pro*C server.
I just can't figure out why this error occurs.
I also tried to explicitly open a transaction from the client,
but the result is exactly the same (tpbegin is successfull,
however).
Could someone help me to make this work ?
Thanks.
Maybe you are looking for
-
Windows 8.1 32bit Autounattend.xml, disabling touch screen functionality
This is quite a strange problem and I do not have the slightest clue why this is happening. I am trying to make an unattended Windows 8.1 Pro32 bit install for a touch screen PC. I have made an answer file which appears to work correctly (it skips al
-
How much is to change a iphone 3gs battery?
HI I JUST WANTED TO KNOW HOW MUCH WOULD IT BE TO CHANGE THE BATTERY ON MY 3GS PHONE IS COMPLETED DEAD AND JUST WANTED TO KNOW HOW MUCH WOULD APPLE CHARGE THANKS
-
How to create dynamic strcture and accepting runtime value in work area
Hi, I am using RFC_READ_TABLE for joining more than table and written select query but into clause work area value is passed but it is short dump is displaying with too few many fields in into clause .work area WA need some casting type conversio
-
IPhoto v7.x (iLife 08) RAW workflow
I'm looking for some opinions on a workflow here. I have an Olympus E-510 and shoot in RAW. For my amateur needs, iPhoto's editing tools are sufficient and I like iPhoto's library characteristics. I import the Oly RAW files and then edit as needed wh
-
Adobe Acrobat Reader via OLE, Problems to understand...
Hi, i have a little problem to understand how the OLE API works... Here is what I mean: 1. Load a Document (No view) 2. Findo out the page size 3. Close the document I can start via: $OLE$AcroExch.Document.11 But i did not become an object to load th