Errored out tables in SPUMG
Hello All,
I am doing Database Consistency Check (using SPUMG) to check the consistency of the database
In the Scan, some tables have errored out because Table definition contains errors.
I have checked in SE14 -> DB Object and Runtime Object Checks. Tables dont exist in DB and There is no active runtime object for the Tables.
With discussion with my ABAPer , I safely deleted the runtime object (active nametab) of these Tables with function module DD_NAMETAB_DELETE .
And then "Reset" the table entry in SPUMG.
Updated the Worklist in SPUMG. Some extra tables appeared. And scan got completed successfuly.
My Qyestions are,
1. When I reset the Errored Out Tables to "Initial" Is it ignored in the next Consistency Check run?
2. I cannot find those Tables in the Export Control List. Is it OK
3. Suppose I had a "errored out" table which was inconsistent and I made it consistent. Should I also make it "Reset to Initial"? And run consistency Check Again?
After I completed my SPUMG Scan can I go ahead with Export.
Do I need to do anything else?
Is Export Control file automatically generated or do I need to do something?
Similar Messages
-
Supplier Site Contacts Open Interface Import Program is erroring out.
Hi,
We are on 12.0.4 on solaris 10.
Tomorrow is go-live in one of our client, When we doing data migration. Uploaded the data into Interface table. From there we are running this standard program to push th edata into standard table.
Its erroring out saying:
================
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-300: unable to extend temp segment by 128 in tablespace TEMP2
==> SELECT INT.org_id C_Rejected_Org_Id,
===============
I have added 2 GB of Tempfile to the tablespace even though it is erroring in the same. And it is taking too much time to give error.
We are tried with only one record also it is taking 1 hr to give the error.
Please help me out in resolving the same.
Many thanks in Advance..
Supplier Site Contacts Open Interface ImportI believe you hit Bug# 6624764, so you may need to apply (Patch 6624764 - SUPPLIER REPORT ERROS WITH ENTER PASSWORD: REP-0069: INTERNAL ERROR REP-57054).
Please log a SR to confirm this with Oracle Support.
Note: 565898.1 - Oracle Financials Software Updates, Release Update Pack 5
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=565898.1 -
Custom Interface Program Errors out with ORA-01722: invalid number in R12
Hi,
We were upgrading to R12 in which our custom interface load program errors out with "ORA-01722: invalid number". Please find structure of control file as below :
LOAD DATA
APPEND
INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
TRAILING NULLCOLS
PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
,USD_NET INTEGER EXTERNAL
,ERROR_CODE CONSTANT 'LOADED DATA'
,PROCESS_FLAG CONSTANT 1
,CREATED_BY "fnd_global.user_id"
,CREATION_DATE sysdate
,LAST_UPDATED_BY "fnd_global.user_id"
,LAST_UPDATE_DATE sysdate
,LAST_UPDATE_LOGIN "fnd_global.login_id"
,REQUEST_ID "fnd_global.conc_request_id"
=====================================Log file ================
Record 1: Rejected - Error on table "XXATORCL"."XXAT_VCAP_GIO_MAN_ADJ_STG", column USD_NET.
ORA-01722: invalid number
===================sample file ==========================
JUL-11,Manual,8213-880011-00000000-259390-1Z-0000-0000,1001
JUL-11,Manual,8213-880011-00000000-253701-1Z-0000-0000,73
==========================================
I had tried with last successfully uploaded file as well which is also now not uploading.
Please help me in this issue.
Thanks,
Piyushi am using R12 now. Please avoide INTEGER EXTERNAL part from the control file. please refer below :
LOAD DATA
APPEND
INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
TRAILING NULLCOLS
PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
,USD_NET
,ERROR_CODE CONSTANT 'LOADED DATA'
,PROCESS_FLAG CONSTANT 1
,CREATED_BY "fnd_global.user_id"
,CREATION_DATE sysdate
,LAST_UPDATED_BY "fnd_global.user_id"
,LAST_UPDATE_DATE sysdate
,LAST_UPDATE_LOGIN "fnd_global.login_id"
,REQUEST_ID "fnd_global.conc_request_id"
====================
Srini,
Just one thing i want to explain you that previously it was working fine but suddenly (might after upgrading in R12) started giving error. I had tested with old data files also which were loaded successfully in the system. but now it is giving error. Please help me in this issue.
Regards, -
DML Error logging table in Set base mode
Hi all,
In ETL data errors can be handled thru error logging table. Like this example given in the document-
INSERT /*+ APPEND PARALLEL */
INTO sales SELECT product_id, customer_id, TRUNC(sales_date), 3,
promotion_id, quantity, amount
FROM sales_activity_direct
LOG ERRORS INTO sales_activity_errors('load_20040802')
REJECT LIMIT UNLIMITED
In this example bulk loading is possible even in the presence of errors. The data errors will go in table 'Sales_activity_errors'.
I want to generate this kind of coding in OWB in set base mode. For that i have to create a error logging table in target schema. How can I reference this table in a mapping? can it be done by shadow table? It's a very important feature in ETL for bulk loading. Is it available in OWB in set based mode?
Guyzz please check this out and help me..
Regards,
SumantaHi,
I am not sure if the DML error logging method is avaliable to be used in OWB 10g R2. You can use the data rule method. Create the data rules on the target table. Deploy it from OWB. Create your mappings and then execute them. Two insert statements will be generated. One for loading the target table for loading records where no rules are violated. The other for loading the <target table>_ERR for loading records where one or more error rules are violated.
Both these statements do a bulk loading. So your purpose will be solved.
Again you can use the splitter method that has already been mentioned.
Regards
-AP -
Seeded Page is erroring out in JDeveloper
I copied few seeded page (MgrMainAppraiserPG, HierachyPG) from the APPL_TOP.
When I am running the MgrMainAppraiserPG, it is erroring out with error
'java.sql.SQLException: ORA-01008: not all variables bound'
I have not done any changes and running the page after copying the xml file.
Any idea why I am getting this error?
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select decode(fnd_profile.value('BEN_DISPLAY_EMPLOYEE_NAME'),'FN',ppf.full_name, ppf.first_name||' '|| ppf.last_name) full_name,
hr_person_type_usage_info.get_user_person_type(ppf.effective_end_date, ppf.person_id) person_type,
Decode(paf.assignment_type,
'C', hr_general.decode_lookup('CWK_ASG_CATEGORY', paf.employment_category),
hr_general.decode_lookup('EMP_CAT', paf.employment_category)
)employment_category,
ppf.start_date, ppf.original_date_of_hire,
decode(paf.period_of_service_id, null, pop.date_start, pos.date_start) date_start,
decode(paf.period_of_service_id, null, pop.actual_termination_date, pos.actual_termination_date) actual_termination_date,
Decode(paf.assignment_type,
'C', hr_general.decode_lookup('HR_CWK_TERMINATION_REASONS', pop.termination_reason),
hr_general.decode_lookup('LEAV_REAS', pos.leaving_reason)
) leaving_reason,
paf.effective_start_date,
hr_util_misc_ss.getObjectName('JOB', paf.job_id, ppf.business_group_id, jtl.name) job, paf.job_id,
orgtl.name organization, orgtl.organization_id,
bgtl.name business_group, bgtl.organization_id business_group_id,
lvl.location_code,
hr_util_misc_ss.getObjectName('GRADE', paf.grade_id, ppf.business_group_id, gtl.name) grade, paf.supervisor_id, ppf.person_id, paf.assignment_id, paf.primary_flag, paf.assignment_number,
ppf.employee_number,
ppf.npw_number cwk_number,
nvl(paf.effective_start_date, ppf.effective_start_date) Asg_start_date,
decode(nvl(paf.effective_end_date, ppf.effective_end_date), to_date('31/12/4712','DD/MM/RRRR'), null, nvl(paf.effective_end_date, ppf.effective_end_date) ) Asg_end_date,
hr_general.decode_lookup('YES_NO', paf.primary_flag) Prim_Flag,
lvl.derived_locale,
v.vendor_name Supplier,
paf.VENDOR_ASSIGNMENT_NUMBER Supplier_id_assignment,
paf.VENDOR_EMPLOYEE_NUMBER Supplier_id_worker,
Decode(paf.assignment_type,
'C', hr_general.decode_lookup('HR_CWK_TERMINATION_REASONS', pop.termination_reason),
hr_general.decode_lookup('LEAV_REAS', pos.leaving_reason)
)term_reason,
decode(ppf.rehire_recommendation, 'N', null, hr_general.decode_lookup('YES_NO', ppf.rehire_recommendation)) rehire,
ast.user_status assignment_status,
decode(paf.period_of_service_id, null, pop.date_start, pos.date_start) latest_hire_date,
hr_util_misc_ss.getObjectName('POSITION', paf.position_id, ppf.business_group_id, ptl.name) position,
ppf.REHIRE_REASON,
paf.supervisor_assignment_id,
null Work_Phone,
null Position_Id,
null Disc_Title,
'Y' Manager_Enabled,
null Payroll,
null Normal_Hours,
'Y1' details_enabled,
ppf.email_address,
org_info.org_information9 LegislationCode
from per_assignments_f2 paf, per_assignment_status_types_tl ast,
per_people_f ppf,
hr_all_organization_units_tl orgtl, hr_all_organization_units_tl bgtl,
per_jobs_tl jtl, hr_all_positions_f_tl ptl, hr_locations_all_vl lvl, po_vendors v,
per_grades_tl gtl, per_periods_of_service pos, per_periods_of_placement pop, hr_organization_information org_info
where trunc(sysdate) between paf.effective_start_date and paf.effective_end_date
and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
and (ppf.current_employee_flag = 'Y' or ppf.current_npw_flag = 'Y')
and paf.primary_flag = decode(:0 ,'Y', paf.primary_flag, 'Y')
and paf.assignment_type in ('E','C')
and paf.person_id = ppf.person_id
and paf.vendor_id = v.vendor_id(+)
and paf.assignment_status_type_id = ast.assignment_status_type_id
and ast.language = userenv('LANG')
and paf.period_of_service_id = pos.period_of_service_id(+)
and paf.period_of_placement_date_start = pop.date_start(+)
and paf.person_id = pop.person_id(+)
and paf.job_id = jtl.job_id(+)
and jtl.language(+) = userenv('LANG')
and paf.position_id = ptl.position_id(+)
and ptl.language(+) = userenv('LANG')
and paf.organization_id = orgtl.organization_id
and orgtl.language = userenv('LANG')
and ppf.business_group_id = bgtl.organization_id
and bgtl.language = userenv('LANG')
and paf.location_id = lvl.location_id(+)
and paf.grade_id = gtl.grade_id(+)
and gtl.language(+) = userenv('LANG')
and org_info.organization_id = ppf.business_group_id
and org_information_context = 'Business Group Information') QRSLT WHERE (:1 = SUPERVISOR_ID)AND (:2 = SUPERVISOR_ASSIGNMENT_ID or hr_general2.supervisor_assignments_in_use = 'FALSE' ) ORDER BY FULL_NAME
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2898)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:45)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:45)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01008: not all variables bound
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2487)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:538)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2369)
at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2586)
at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1674)
at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:3703)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3018)
at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3126)
at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:2910)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1257)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2363)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5231)
at oracle.apps.fnd.framework.webui.OADataBoundValueHGrid.getValue(OADataBoundValueHGrid.java:85)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.table.OAHGridBean.getAttributeValueImpl(OAHGridBean.java:509)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.laf.base.desktop.table.HGridRenderingContext.getTableDataFromBean(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.TableRenderingContext.<init>(Unknown Source)
at oracle.cabo.ui.laf.base.desktop.table.HGridRenderingContext.<init>(Unknown Source)
at oracle.cabo.ui.laf.base.desktop.HGridRenderer.createRenderingContext(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.TableRenderer.getTableRenderingContext(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.desktop.HGridRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:45)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at OA.jspService(OA.jsp:45)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)This error is due to Bind Variables.
When you run this page alone in JDEV, the page doesn't go thru the actual flow, which was designed for. So, the call to bind the variables may not be called when run in standalone.
So, to test this page, you need to setup the Environment to go thru the same flow as when deployed.
HTH
Srini -
Error log table how to track the run details
Hi ,
I am using the log errors concept in oracle and recording the errors.
My table is employees and I used the
be low script to create the error log tables.
BEGIN
DBMS_ERRLOG.create_error_log (dml_table_name => 'employees');
END;
It has created a table called err$_employees;
I have run the procedure and the procedure has inserted some records into the table for unique constraint error .
but when i rerun the same job , again it has inserted the same records whcih has created a proble now .
How will i figure out that which records are from the first runa dn which are from the second run?
Also i want to fail my job based on entried in the error log table i created.
Is it possible to track whats records belong to what instance in error log table.
hope i am clear abt the requirement i'm looking for ?
thanks
sriIf you look at the documentation you will see you can tag records that are inserted in the error log table e.g.
insert into employees
select ...
from ...
where ...
log errors into err$_employees('My Run Identifier')
You need to construct the string used as a tag so you can identify your individual runs. -
Execute custom SQL in DB Adpater errors out in Production - urgent please.
Hi,
I get this error when running the process in PROD at invoking delete operation that I'm doing by selecting the execute custom SQL option while defining the DB adapter. It worked fine in TEST environment but errors out in PROD env.
Any suggestions on why? Its urgent.
Thanks
-Prapoorna
The state of this instance is Faulted
<messages><input><InvokeDelete_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DeleteDataInput_msg"><DeleteDataInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/DeleteData"/>
</part></InvokeDelete_InputVariable></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>17410</code>
</part><part name="summary"><summary>file:/prod/app/bpel/as/bpel/domains/verint/tmp/.bpel_SynchOTLLoad_1.0_0259c5f142631959ec0fb067d23fe98e.tmp/DeleteData.wsdl [ DeleteData_ptt::DeleteData(DeleteDataInput_msg) ] - WSIF JCA Execute of operation 'DeleteData' failed due to: Pure SQL Exception.
Pure SQL Execute of delete from xxhxc_timeattend_to_otl where report_date >= TRUNC(ADD_MONTHS(sysdate, -1),'MM') failed. Caused by java.sql.SQLException: No more data to read from socket.
; nested exception is:
ORABPEL-11633
Pure SQL Exception.
Pure SQL Execute of delete from xxhxc_timeattend_to_otl where report_date >= TRUNC(ADD_MONTHS(sysdate, -1),'MM') failed. Caused by java.sql.SQLException: No more data to read from socket.
The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
</summary>
</part><part name="detail"><detail>No more data to read from socket</detail>
</part></remoteFault></fault></messages>Looks like in production you have much more data than you do in your test environments.
It could be something wrong with your rollback segments. Is there any other activity happening when this is running?
What happens when you run this command inside SQLPlus?
cheers
James -
Report erroring out with 'Invalid parameter requested' in Siebel.
Hello -
I have 9 parameters on a template, excluding the two delivered out-of-the-box by siebel to enter the Language and Locale. Recently, if i enter a language value of 'ESP' ( or any other language value), it errors out with 'Invalid parameters requested' error. On reviewing the OC4j log file, i noticed that the language parameter ('ESP') is actually being applied to another parameter in my template that accespts only 'Yes/No' boolean values. This occurs randomly, there is no particular pattern to this.
Log snippet:
[020711_233324269][][STATEMENT] WARNING: Old RTF version detected, nested table disabled
[020711_233324297][][STATEMENT] expression: rpad(trim(EndDate),10)
[020711_233324315][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324319][oracle.apps.xdo.template.rtf.field.RTFFieldResult][STATEMENT] stylename=Normal
[020711_233324322][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324325][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324329][oracle.apps.xdo.template.rtf.field.RTFFieldResult][STATEMENT] stylename=Normal
[020711_233324332][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324335][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324338][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324341][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324344][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324348][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Body Text 2
[020711_233324351][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Body Text 2
[020711_233324354][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica-Oblique
[020711_233324357][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Body Text 2
[020711_233324360][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Body Text 2
[020711_233324364][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324367][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324370][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324373][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324376][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324379][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324382][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324385][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
[020711_233324433][oracle.apps.xdo.template.rtf.RTF2XSLParser][STATEMENT] Time spent: 6917
[020711_233324437][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
[020711_233324440][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica-Bold closed.
[020711_233324442][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Times-Roman closed.
[020711_233324445][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Courier closed.
[020711_233324447][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica-Oblique closed.
[020711_233324454][][STATEMENT] Setting data definition:ShowDiscount type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324457][][STATEMENT] Setting data definition:ShowOperatingLeaseProposal type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324459][][STATEMENT] Setting data definition:ShowHeaderFooter type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324462][][STATEMENT] Setting data definition:ShowProductLongDescription type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324465][][STATEMENT] Setting data definition:ShowListPrice type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324468][][STATEMENT] Setting data definition:ShowProductDescriptionPage type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324471][][STATEMENT] Setting data definition:ShowOneGEpage type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324473][][STATEMENT] Setting data definition:AltBudgetQuote type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324476][][STATEMENT] Setting data definition:RSorBP type:oracle.apps.xdo.servlet.data.bind.ReportParameterBoundValue
[020711_233324479][][STATEMENT] Set ReportRequest's parameters key[0], ShowDiscount
[020711_233324481][][STATEMENT] Set ReportRequest's parameters value[0], [Ljava.lang.String;@18bf083
[020711_233324484][][STATEMENT] Set ReportRequest's parameters key[1], ShowProductLongDescription
[020711_233324486][][STATEMENT] Set ReportRequest's parameters value[1], [Ljava.lang.String;@5b3488
[020711_233324489][][STATEMENT] Set ReportRequest's parameters key[2], ShowProductDescriptionPage
[020711_233324491][][STATEMENT] Set ReportRequest's parameters value[2], [Ljava.lang.String;@1d60031
[020711_233324494][][STATEMENT] Set ReportRequest's parameters key[3], ShowOperatingLeaseProposal
[020711_233324497][][STATEMENT] Set ReportRequest's parameters value[3], [Ljava.lang.String;@a6a14b
[020711_233324499][][STATEMENT] Set ReportRequest's parameters key[4], AltBudgetQuote
[020711_233324502][][STATEMENT] Set ReportRequest's parameters value[4], [Ljava.lang.String;@1a75098
[020711_233324504][][STATEMENT] Set ReportRequest's parameters key[5], ShowOneGEpage
[020711_233324507][][STATEMENT] Set ReportRequest's parameters value[5], [Ljava.lang.String;@19c449f
[020711_233324509][][STATEMENT] Set ReportRequest's parameters key[6], ShowHeaderFooter
[020711_233324512][][STATEMENT] Set ReportRequest's parameters value[6], [Ljava.lang.String;@5d53c3
[020711_233324515][][STATEMENT] Set ReportRequest's parameters key[7], RSorBP
[020711_233324519][][STATEMENT] Set ReportRequest's parameters value[7], [Ljava.lang.String;@1262d8c
[020711_233324522][][STATEMENT] Set ReportRequest's parameters key[8], ShowListPrice
[020711_233324524][][STATEMENT] Set ReportRequest's parameters value[8], [Ljava.lang.String;@17864c4
[020711_233324527][][STATEMENT] Default Report OutputFormat = html
[020711_233324531][][STATEMENT] Illegal parameter value: AltBudgetQuote=ESP
[020711_233324536][java.lang.String][EXCEPTION] oracle.apps.xdo.servlet.data.DataException: Invalid parameters requested.
at oracle.apps.xdo.servlet.ReportException.fillInStackTrace(ReportException.java:124)
at oracle.apps.xdo.servlet.data.DataException.fillInStackTrace(DataException.java:127)
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Exception.<init>(Exception.java:41)
at oracle.apps.xdo.servlet.ReportException.<init>(ReportException.java:36)
Any help to resolve this is highly appreciatedAny solution to this yet user2078933 ? What is the solution to this problem?
[STATEMENT] Illegal parameter value: <everything-perfect-here>
This is a transient issue with no apparant pattern. I can't believe that none of you have got any solution to this in so many years.
Somebody respond please, it's been years! -
R12 report errors out - Different Invoice Type
Hi,
I customized a seeded oracle report(Invoice Print Selected Invoices) in R12 per our requirement. The issue i have is - concurrent program works only for certain INVOICE TYPES ,when i submit is the prorgam for INVOICE TYPE as "Pro forma" it errors out. I tried running the seeded oracle conc program and it works fine for all operating units.
Has anyone seen this issue?
Below are the details
RDBMS : 11.2.0.3.0
Oracle Applications : 12.1.3
Report that i customized - Invoice Print Selected Invoices.
Log Error--
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: SEL
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00100: DEBUG: AfterPForm_Trigger -
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 87
MSG-01000: CP_INSERT:N
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 900021
REP-1401: '': Fatal PL/SQL error occurred.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 87
MSG-01000: CP_INSERT:N
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Tr
Report Builder: Release 10.1.2.3.0 - Production on Sun Sep 29 23:11:02 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 574386.
Review your concurrent request log and/or report output file for more detailed information.
+---------------------------------------------------------------------------+
Executing request completion options...
Output file size:
0
+------------- 1) PUBLISH -------------+
Disabling requested Output Post Processing. Nothing to process. The output of the request is zero byte.
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 29-SEP-2013 23:11:07
+---------------------------------------------------------------------------+
Thanks In Advance
-RagulHi,
Instead Running it from the Report builder, I enables the Debug flag and ran the report, I got the below log.. do u have any idea what might be the issue is?
I have also attached the seeded programs log file.
Custom Program log ---->
+---------------------------------------------------------------------------+
Receivables: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXRAXINV_SELE module: Travelzoo Invoice Print Selected Invoices-Child
+---------------------------------------------------------------------------+
Current system time is 30-SEP-2013 05:57:05
+---------------------------------------------------------------------------+
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_order_by='TRX_NUMBER'
p_trx_number_low='900001'
p_trx_number_high='900001'
p_open_invoice='N'
p_check_for_taxyn='N'
p_choice='SEL'
p_header_pages='1'
p_debug_flag='Y'
p_message_level='10'
P_RESEND='N'
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: Running in debug mode
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: SEL
MSG-00500: DEBUG: About to build WHERE clause.
MSG-00500: DEBUG: WHERE clause built.
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00500: DEBUG: Table 1: AR_ADJUSTMENTS COM_ADJ,
AR_PAYMENT_SCHEDULES P,
RA_CUST_TRX_LINE_GL_DIST REC,
RA_CUSTOMER_TRX A,
HZ_CUST_ACCOUNTS B,
RA_TERMS T,
RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_PARTIES PARTY,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
HZ_CUST_SITE_USES U_BILL
MSG-00500: DEBUG: Table 2: RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_CUST_ACCOUNTS B,
HZ_PARTIES PARTY,
HZ_CUST_SITE_USES U_BILL,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
AR_ADJUSTMENTS COM_ADJ,
RA_CUSTOMER_TRX A,
AR_PAYMENT_SCHEDULES P,
RA_TERMS T
MSG-00500: DEBUG: Where 1: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND REC.CUSTOMER_TRX_ID = A.CUSTOMER_TRX_ID
AND REC.LATEST_REC_FLAG = 'Y'
AND REC.ACCOUNT_CLASS = 'REC'
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(P.TERMS_SEQUENCE_NUMBER,nvl(TL.SEQUENCE_NUM,0))=nvl(TL.SEQUENCE_NUM,nvl(p.terms_sequence_number,0))
AND DECODE(P.PAYMENT_SCHEDULE_ID,'',0, NVL(T.PRINTING_LEAD_DAYS,0))=0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.party_site_id = party_site.party_site_id
AND B.PARTY_ID = PARTY.PARTY_ID
AND loc.location_id = party_site.location_id
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND A.TERM_ID = TL.TERM_ID(+)
AND A.TERM_ID = T.TERM_ID(+)
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID(+)
MSG-00500: DEBUG: Where 2: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(T.PRINTING_LEAD_DAYS,0) > 0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.PARTY_SITE_ID = PARTY_SITE.PARTY_SITE_ID
AND B.PARTY_ID = PARTY.PARTY_ID
AND LOC.LOCATION_ID = PARTY_SITE.LOCATION_ID
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND NVL(P.TERMS_SEQUENCE_NUMBER,TL.SEQUENCE_NUM)=TL.SEQUENCE_NUM
AND T.TERM_ID = P.TERM_ID
AND TL.TERM_ID(+) = T.TERM_ID
MSG-00100: DEBUG: AfterPForm_Trigger -
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 87
MSG-01000: CP_INSERT:N
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 900001
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: DEBUG: Get_Country_Description.
MSG-05000: DEBUG: Remit To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: Avenida Diagonal 640
MSG-05000: DEBUG: Address 2: Planta 6
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: Barcelona
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State:
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 08017
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: ES
MSG-05000: DEBUG: Customer Name:
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: ES
MSG-05000: DEBUG: Country Desc: Spain
MSG-05000: DEBUG: Print Home Flag: Y
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 6
MSG-05000: DEBUG: Height Max: 6
MSG-05000: DEBUG: Remit To Formatted... Avenida Diagonal 640
Planta 6
08017 Barcelona
Spain
REP-1401: '': Fatal PL/SQL error occurred.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1401: MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 87
MSG-01000: CP_INSERT:N
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Tr
Report Builder: Release 10.1.2.3.0 - Production on Mon Sep 30 05:57:06 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 574430.
Review your concurrent request log and/or report output file for more detailed information.
+---------------------------------------------------------------------------+
Executing request completion options...
Output file size:
0
+------------- 1) PUBLISH -------------+
Disabling requested Output Post Processing. Nothing to process. The output of the request is zero byte.
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 30-SEP-2013 05:57:11
+---------------------------------------------------------------------------+
Seeded Program log ---->
+---------------------------------------------------------------------------+
Receivables: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
RAXINV_SEL module: Invoice Print Selected Invoices
+---------------------------------------------------------------------------+
Current system time is 30-SEP-2013 06:12:05
+---------------------------------------------------------------------------+
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_order_by='TRX_NUMBER'
p_trx_number_low='900001'
p_trx_number_high='900001'
p_open_invoice='N'
p_check_for_taxyn='N'
p_choice='SEL'
p_header_pages='1'
p_debug_flag='Y'
p_message_level='10'
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: Running in debug mode
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: SEL
MSG-00500: DEBUG: About to build WHERE clause.
MSG-00500: DEBUG: WHERE clause built.
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00500: DEBUG: Table 1: AR_ADJUSTMENTS COM_ADJ,
AR_PAYMENT_SCHEDULES P,
RA_CUST_TRX_LINE_GL_DIST REC,
RA_CUSTOMER_TRX A,
HZ_CUST_ACCOUNTS B,
RA_TERMS T,
RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_PARTIES PARTY,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
HZ_CUST_SITE_USES U_BILL
MSG-00500: DEBUG: Table 2: RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_CUST_ACCOUNTS B,
HZ_PARTIES PARTY,
HZ_CUST_SITE_USES U_BILL,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
AR_ADJUSTMENTS COM_ADJ,
RA_CUSTOMER_TRX A,
AR_PAYMENT_SCHEDULES P,
RA_TERMS T
MSG-00500: DEBUG: Where 1: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND REC.CUSTOMER_TRX_ID = A.CUSTOMER_TRX_ID
AND REC.LATEST_REC_FLAG = 'Y'
AND REC.ACCOUNT_CLASS = 'REC'
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(P.TERMS_SEQUENCE_NUMBER,nvl(TL.SEQUENCE_NUM,0))=nvl(TL.SEQUENCE_NUM,nvl(p.terms_sequence_number,0))
AND DECODE(P.PAYMENT_SCHEDULE_ID,'',0, NVL(T.PRINTING_LEAD_DAYS,0))=0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.party_site_id = party_site.party_site_id
AND B.PARTY_ID = PARTY.PARTY_ID
AND loc.location_id = party_site.location_id
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND A.TERM_ID = TL.TERM_ID(+)
AND A.TERM_ID = T.TERM_ID(+)
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID(+)
MSG-00500: DEBUG: Where 2: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(T.PRINTING_LEAD_DAYS,0) > 0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.PARTY_SITE_ID = PARTY_SITE.PARTY_SITE_ID
AND B.PARTY_ID = PARTY.PARTY_ID
AND LOC.LOCATION_ID = PARTY_SITE.LOCATION_ID
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND NVL(P.TERMS_SEQUENCE_NUMBER,TL.SEQUENCE_NUM)=TL.SEQUENCE_NUM
AND T.TERM_ID = P.TERM_ID
AND TL.TERM_ID(+) = T.TERM_ID
MSG-00100: DEBUG: AfterPForm_Trigger -
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 87
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 900001
MSG-00100: DEBUG: Get_Country_Description.
MSG-00010: 05:38 1 Transaction: 900001
MSG-00100: DEBUG: Get_Country_Description.
MSG-05000: DEBUG: Remit To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: Avenida Diagonal 640
MSG-05000: DEBUG: Address 2: Planta 6
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: Barcelona
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State:
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 08017
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: ES
MSG-05000: DEBUG: Customer Name:
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: ES
MSG-05000: DEBUG: Country Desc: Spain
MSG-05000: DEBUG: Print Home Flag: Y
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 6
MSG-05000: DEBUG: Height Max: 6
MSG-05000: DEBUG: Remit To Formatted... Avenida Diagonal 640
Planta 6
08017 Barcelona
Spain
MSG-05000: DEBUG: Bill To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: Via on Messana 2
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: Alcamo
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State:
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 91011
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: IT
MSG-05000: DEBUG: Customer Name: Sea Group SRL - Hotel La Battigia-CRP2-ES1
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: ES
MSG-05000: DEBUG: Country Desc: Spain
MSG-05000: DEBUG: Print Home Flag: Y
MSG-05000: DEBUG: Width: 60
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Bill To Formatted... Attn: Accounts Payable
Sea Group SRL - Hotel La Battigia-CRP2-ES1
Via on Messana 2
Alcamo 91011
Italy
Report Builder: Release 10.1.2.3.0 - Production on Mon Sep 30 06:12:06 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
Executing request completion options...
Output file size:
4284
+------------- 1) PRINT -------------+
Printing output file.
Request ID : 574432
Number of copies : 0
Printer : noprint
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 30-SEP-2013 06:12:09
+---------------------------------------------------------------------------+
Thanks -
Segment Shrinking script erroring out due to Function based indexes, lobs,.
DB version:10gR2
Following is a script i made for freeing up(SHRINK ing and resetting HWM) the space in Tables and its indexes. Due to the existence of LOB Segments and Tables with Function based indexes, this script was erroring out. So i was wondering if there is a way to find out the segments which are eligible/not eligible for Shrinking so that i could make necessary changes to the below script.
create or replace procedure freeup_space
is
type v_segment_type is table of varchar2(30) index by binary_integer;
v_segment v_segment_type;
begin
select segment_name bulk collect into v_segment
from user_segments
where segment_type in ('TABLE')
and segment_name not like 'BIN%';
for i in v_segment.first..v_segment.last loop
execute immediate 'alter table ' || v_segment(i) ||' enable row movement';
dbms_output.put_line('Table '||v_segment(i)||'''s row movement enabled');
execute immediate 'alter table ' || v_segment(i) ||' shrink space cascade';
execute immediate 'alter table ' || v_segment(i) ||' deallocate unused';
end loop;
end;
/You can use USER_LOBS views to look for LOB columns in the segments and ALL_INDEXES.INDEX_TYPE tells if the index is function based index or not.
Message was edited by:
Pierre Forstmann -
I am using Logical database PNPCE in HR for my report.
To get the selection screen of the LDB in my report program i need to give the statement
TABLES : PERNR.
But using this is giving me EPC error that TABLES should not be used.
If i take out TABLES : PERNR.
I am not getting the slection screen of LDB for my report.plz give me a solution.
Thank You,
Phani.Try using the below statement
NODES: PERNR.
Hope this helps.
Thanks,
Balaji -
Additional fields in CATSDB errors out in ESS
Hi,
We added additional fields in CATSDB (customer fields). This errors out in ESS.
Is there anything else needs to be done after adding these fields? Do we have to adjust profiles?
Error when accessing Dictionary table ABAP-generation exit error., error key: RFC_ERROR_SYSTEM_FAILURE:
please help us.
SMgO TO Customer specific Customization
Under Time sheet from SPRO
Then create the customer field
Hope this helps
Shetty -
Hi guys,
I'm currently getting an error when I run VF04 with more than 999 sales orders. The error which I'm getting is:-
"Error System error in: table: report: LFMRIF02 routine: SET_NUMBER"
Upon further debugging, I found out that Buzei is the line item number and in the subroutine SET_ITEMS (Include LFMRIF28) l_buzei is incremented by 1 each time we encounter an empty/000 line item number. Unfortunately when l_buzei is at 999, an addition of 1 takes it back to value 000. It is this 000 value that triggers the error message we had seen in subroutine SET_NUMBERS (Include LFMRIF29).
Has anyone encountered this error before? Some points as to where I can start would be helpful.
Thanks.Hello..
Your suggested OSS note was created 2006, nevertheless it was still helpful for me to start my search from there. Also for that note, it will effect the Funds Management reporting line items, it will simply don't appear.
Better alternative would be OSS 964228, this basically skips the '999' items and proceed. No affects on the funds management reporting either. -
Sorry Duplicate Posting. I am unable to delete.
[Lost Cause] Mapping Errors: no table selected, but unable to select one
Message was edited by:
RWBergUpdate: I unmapped connections to the problem causing table object (Group), and deactivated the descriptor. After deleting the named query dependencies, the mapping report succeeded.
However, when reactivating the mappings from the other descriptors they would still not allow me to select a reference table for the Groups class. The same is true going out to those descriptors from the Groups class.
Does anyone know why the reference tables are not populating the drop-down on the "Table Reference" tab?
Screenshot available [more can be provided as needed]: http://www.rwberg.org/ref/help/oracle_forums_ss_mapping_11-29-07.PNG -
I am supposed to insert the records that are not uploaded to the main table into a error log table and email the users about the error records that was not inserted into the table. How am is supposed to do it ?
I have few more questions.
What is the best way to upload the data from a file .
1, I got to either do the batch processing or
2, I got to browse and uplaod the file thru the APEX application and
and insert the records.
I want to know about which tutorial could be the best to read to do the
about 2 methods and how do i create and insert records into the error log
table and send the user with the CSv or txt file that contains the error records in both the methods ?
Will following the below method be the right way for 2nd method ?
http://oraexplorer.blogspot.com/2007/11/apex-to-upload-text-file-and-write-into.htmlOk,
I am trying to insert the records to an existing table from CSV file.
I am using the below post to do so..
Re: File Browse, File Upload
I get some errors executing the htmldb tools package.
Error at line 27: PLS-00103: Encountered the symbol "/"
create or replace PACKAGE htmldb_tools
AS
-- Utility functions --{{{
PROCEDURE parse_textarea ( --{{{
-- Parse a HTML textarea element into the specified HTML DB collection
-- The c001 element from the collection is used
-- The parser splits the text into tokens delimited by newlines, spaces
-- and commas
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
PROCEDURE parse_file( --{{{
-- Generic procedure to parse an uploaded CSV file into the
-- specified collection. The first line in the file is expected
-- to contain the column headings, these are set in session state
-- for the specified headings item.
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
END htmldb_tools;
create or replace PACKAGE BODY htmldb_tools
AS
TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
-- Private functions --{{{
PROCEDURE delete_collection ( --{{{
-- Delete the collection if it exists
p_collection_name IN VARCHAR2
IS
BEGIN
IF (htmldb_collection.collection_exists(p_collection_name))
THEN
htmldb_collection.delete_collection(p_collection_name);
END IF;
END delete_collection; --}}}
PROCEDURE csv_to_array ( --{{{
-- Utility to take a CSV string, parse it into a PL/SQL table
-- Note that it takes care of some elements optionally enclosed
-- by double-quotes.
p_csv_string IN VARCHAR2,
p_array OUT wwv_flow_global.vc_arr2,
p_separator IN VARCHAR2 := ','
IS
l_start_separator PLS_INTEGER := 0;
l_stop_separator PLS_INTEGER := 0;
l_length PLS_INTEGER := 0;
l_idx BINARY_INTEGER := 0;
l_quote_enclosed BOOLEAN := FALSE;
l_offset PLS_INTEGER := 1;
BEGIN
l_length := NVL(LENGTH(p_csv_string),0);
IF (l_length <= 0)
THEN
RETURN;
END IF;
LOOP
l_idx := l_idx + 1;
l_quote_enclosed := FALSE;
IF SUBSTR(p_csv_string, l_start_separator + 1, 1) = '"'
THEN
l_quote_enclosed := TRUE;
l_offset := 2;
l_stop_separator := INSTR(p_csv_string, '"', l_start_separator + l_offset, 1);
ELSE
l_offset := 1;
l_stop_separator := INSTR(p_csv_string, p_separator, l_start_separator + l_offset, 1);
END IF;
IF l_stop_separator = 0
THEN
l_stop_separator := l_length + 1;
END IF;
p_array(l_idx) := (SUBSTR(p_csv_string, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
EXIT WHEN l_stop_separator >= l_length;
IF l_quote_enclosed
THEN
l_stop_separator := l_stop_separator + 1;
END IF;
l_start_separator := l_stop_separator;
END LOOP;
END csv_to_array; --}}}
PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
IS
l_record_separator VARCHAR2(2) := chr(13)||chr(10);
l_last INTEGER;
l_current INTEGER;
BEGIN
-- Sigh, stupid DOS/Unix newline stuff. If HTMLDB has generated the file,
-- it will be a Unix text file. If user has manually created the file, it
-- will have DOS newlines.
-- If the file has a DOS newline (cr+lf), use that
-- If the file does not have a DOS newline, use a Unix newline (lf)
IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
THEN
l_record_separator := chr(10);
END IF;
l_last := 1;
LOOP
l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
EXIT WHEN (nvl(l_current,0) = 0);
p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
l_last := l_current+length(l_record_separator);
END LOOP;
END get_records; --}}}
-- Utility functions --{{{
PROCEDURE parse_textarea ( --{{{
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
IS
l_index INTEGER;
l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(10)||chr(13)||' ,','@@@@');
l_element VARCHAR2(100);
BEGIN
l_string := l_string||'@';
htmldb_collection.create_or_truncate_collection(p_collection_name);
LOOP
l_index := instr(l_string,'@');
EXIT WHEN NVL(l_index,0)=0;
l_element := substr(l_string,1,l_index-1);
IF (trim(l_element) IS NOT NULL)
THEN
htmldb_collection.add_member(p_collection_name,l_element);
END IF;
l_string := substr(l_string,l_index+1);
END LOOP;
END parse_textarea; --}}}
PROCEDURE parse_file( --{{{
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
IS
l_blob blob;
l_records varchar2_t;
l_record wwv_flow_global.vc_arr2;
l_datatypes wwv_flow_global.vc_arr2;
l_headings VARCHAR2(4000);
l_columns VARCHAR2(4000);
l_seq_id NUMBER;
l_num_columns INTEGER;
l_ddl VARCHAR2(4000);
BEGIN
IF (p_table_name is not null)
THEN
BEGIN
execute immediate 'drop table '||p_table_name;
EXCEPTION
WHEN OTHERS THEN NULL;
END;
l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
htmldb_util.set_session_state('P149_DEBUG',l_ddl);
execute immediate l_ddl;
l_ddl := 'insert into '||p_table_name||' '||
'select '||v(p_columns_item)||' '||
'from htmldb_collections '||
'where seq_id > 1 and collection_name='''||p_collection_name||'''';
htmldb_util.set_session_state('P149_DEBUG',v('P149_DEBUG')||'/'||l_ddl);
execute immediate l_ddl;
RETURN;
END IF;
BEGIN
select blob_content into l_blob from wwv_flow_files
where name=p_file_name;
EXCEPTION
WHEN NO_DATA_FOUND THEN
raise_application_error(-20000,'File not found, id='||p_file_name);
END;
get_records(l_blob,l_records);
IF (l_records.count < 3)
THEN
raise_application_error(-20000,'File must have at least 3 ROWS, id='||p_file_name);
END IF;
-- Initialize collection
htmldb_collection.create_or_truncate_collection(p_collection_name);
-- Get column headings and datatypes
csv_to_array(l_records(1),l_record);
csv_to_array(l_records(2),l_datatypes);
l_num_columns := l_record.count;
if (l_num_columns > 50) then
raise_application_error(-20000,'Max. of 50 columns allowed, id='||p_file_name);
end if;
-- Get column headings and names
FOR i IN 1..l_record.count
LOOP
l_headings := l_headings||':'||l_record(i);
l_columns := l_columns||',c'||lpad(i,3,'0');
END LOOP;
l_headings := ltrim(l_headings,':');
l_columns := ltrim(l_columns,',');
htmldb_util.set_session_state(p_headings_item,l_headings);
htmldb_util.set_session_state(p_columns_item,l_columns);
-- Get datatypes
FOR i IN 1..l_record.count
LOOP
l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
END LOOP;
l_ddl := '('||ltrim(l_ddl,',')||')';
htmldb_util.set_session_state(p_ddl_item,l_ddl);
-- Save data into specified collection
FOR i IN 2..l_records.count
LOOP
csv_to_array(l_records(i),l_record);
l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
FOR i IN 1..l_record.count
LOOP
htmldb_collection.update_member_attribute(
p_collection_name=> p_collection_name,
p_seq => l_seq_id,
p_attr_number => i,
p_attr_value => l_record(i)
END LOOP;
END LOOP;
DELETE FROM wwv_flow_files WHERE name=p_file_name;
END;
BEGIN
NULL;
END;
/
Maybe you are looking for
-
Just created my first iphoto book, was going to get it printed when i noticed in the slideshow that next to every photo or on every page there is a copyright symbol with my name next to it. Is there anyway to remove that? I went into settings, and i
-
For example. When checking spam in Gmail.....if I ask to delete all spam mail.....the cursor would automatically go to the box that pops up asking for confirmation. I can't figure out how to get that feature back. Otherwise everything works great!
-
Cannot Connect to Desktop Manager
For some reason I can not get my Playbook to connect to the Desktop Manager. I have tried on 2 seperate computers (one XP and one Vista). I have tried deleting and reinstalling the latest version of DM. I know it's not the cable as I am able to co
-
To find where a variable is getting updated in a smart form thru debugging?
Hi Friends, This is urgently required. In transaction vf02 by putting the billing document no.and navigating as follows: billing document -> issue output to ->select the doc->print preview a smart form is generated. The issue that I am facing is that
-
does the merge statement would support 2 inserts on NOT MATCHED & MATCHED Please how to achieve this. thanks. MERGE INTO audit2 e USING audit1 h ON (e.no = h.no) WHEN NOT MATCHED THEN INSERT ( NO ,NAME ,CREATED_USER ,CREATED_DATE ,MODIFIED_USER ,MODI