Error Thrown while assinging the value into OBJECT TYPE
Hi Oracle Experts:
i was create one Oracle OBJECT, that object contain only one variable, and i created one function which is return the object(system date), but while i complied that procedure i was thrown the error message like ORA-06530: Reference to uninitilized composite .
can any one tell me how can i use the object variable in the select statement into clause .
Below i pasted my code.
CREATE OR REPLACE TYPE str_batch IS OBJECT
sys_date DATE
CREATE OR REPLACE FUNCTION F_Ln_Getodperd
p_s_actype VARCHAR2,
p_s_acno VARCHAR2,
p_n_bal NUMBER,
p_d_prodt DATE
)RETURN str_batch
IS
lstr_od str_batch ;
BEGIN
SELECT SYSDATE INTO lstr_od.sys_date FROM dual; -- Error(Error message shown in below)
dbms_output.put_line('');
RETURN lstr_od;
END;
Error:
ORA-06530: Reference to uninitilized composite
Thanks in advance
Arun M M
Hi Mr. Saubhik
Below i Paste my original source code. Still am facing the same problem while i execute the function. can you please tell me the solution for this.
OBJECT :
CREATE OR REPLACE TYPE str_batch IS OBJECT
batchno NUMBER,
batchslno NUMBER,
act_type VARCHAR2(20),
act_no VARCHAR2(20),
curr_code VARCHAR2(10),
amount NUMBER(23,5),
MOD VARCHAR2(10),
drcr VARCHAR2(2),
cheqno VARCHAR2(20),
cheqdt DATE,
sts VARCHAR2(4),
operid NUMBER,
narr VARCHAR2(300),
srno VARCHAR2(10),
rem_type VARCHAR2(10)
Function :
CREATE OR REPLACE FUNCTION F_Ln_Getodperd
p_s_actype IN VARCHAR2,
p_s_acno IN VARCHAR2,
p_n_bal IN NUMBER,
p_d_prodt IN DATE
)RETURN str_batch
IS
lstr_od str_batch ;
-- Variable Declaration
v_n_perd NUMBER;
v_n_lnperd NUMBER;
v_n_mon NUMBER;
v_n_effmon NUMBER;
v_n_instno NUMBER;
v_n_odno NUMBER;
v_n_actual NUMBER(23,5);
v_n_diff NUMBER(23,5);
v_n_inst NUMBER(23,5);
v_d_first DATE;
v_d_exp DATE;
v_d_oddt DATE;
v_d_lastprod DATE;
v_s_instmode VARCHAR2(10);
v_s_inst VARCHAR2(10);
v_s_branch VARCHAR2(10);
v_s_errm VARCHAR2(20000);
BEGIN
SELECT F_Get_Brcode INTO v_s_branch FROM dual;
SELECT pay_c_final,lon_d_expiry, lon_d_lastprod
INTO v_s_inst,v_d_exp, v_d_lastprod
FROM LOAN_MAST
WHERE branch_c_code = v_s_branch AND
act_c_type = p_s_actype AND
act_c_no = p_s_acno;
IF (p_d_prodt > v_d_exp) THEN
SELECT CEIL(MONTHS_BETWEEN(p_d_prodt,v_d_exp)) INTO lstr_od.batchslno FROM dual;
lstr_od.cheqdt := v_d_exp;
SELECT v_d_lastprod - p_d_prodt INTO lstr_od.batchslno FROM dual;
--lstr_od.batchslno = DaysAfter(DATE(ldt_lastprod), DATE(adt_prodt))
ELSE
IF (v_s_inst = 'N') THEN
IF p_d_prodt > v_d_exp THEN
SELECT CEIL(MONTHS_BETWEEN(p_d_prodt,v_d_exp)) INTO lstr_od.batchslno FROM dual;
lstr_od.cheqdt := v_d_exp;
ELSE
lstr_od.batchslno := 1;
END IF;
ELSIF (v_s_inst = 'Y') THEN
SELECT first_d_due,lon_c_instperd,lon_n_perd
INTO v_d_first,v_s_instmode,v_n_lnperd
FROM LOAN_MAST
WHERE branch_c_code = v_s_branch AND
act_c_type = p_s_actype AND
act_c_no = p_s_acno;
SELECT CEIL(MONTHS_BETWEEN(p_d_prodt,v_d_first)) INTO v_n_mon FROM dual;
IF v_n_mon > 0 THEN
SELECT NVL(ln_n_balance,0),NVL(ln_n_instlamt,0),NVL(ln_n_instlno,0)
INTO v_n_actual,v_n_inst,v_n_instno
FROM LOAN_INST_SCH
WHERE act_c_type = p_s_actype AND
act_c_no = p_s_acno AND
ln_d_effdate = (SELECT MAX(ln_d_effdate)
FROM LOAN_INST_SCH
WHERE act_c_type = p_s_actype AND
act_c_no = p_s_acno AND
ln_d_effdate < p_d_prodt);
IF (p_n_bal > v_n_actual) THEN
IF v_n_inst > 0 THEN
lstr_od.batchslno := (p_n_bal - v_n_actual) / v_n_inst;
END IF;
ELSE
lstr_od.batchslno := 1;
END IF;
IF lstr_od.batchslno = 0 THEN
lstr_od.batchslno := 1;
END IF;
--FOR FULL OD
IF (v_n_mon > v_n_lnperd) THEN
lstr_od.batchslno := (v_n_mon - v_n_lnperd) + lstr_od.batchslno;
END IF;
IF v_s_instmode = 'Q' THEN
lstr_od.batchslno := lstr_od.batchslno * 3;
ELSIF v_s_instmode = 'H' THEN
lstr_od.batchslno := lstr_od.batchslno * 6;
ELSIF v_s_instmode = 'Y' THEN
lstr_od.batchslno := lstr_od.batchslno * 12;
END IF;
SELECT p_d_prodt - lstr_od.batchslno INTO lstr_od.cheqdt FROM dual;
IF v_s_instmode = 'M' THEN
v_n_odno := v_n_instno - lstr_od.batchslno; -- TO get OD DATE
SELECT ln_d_effdate
INTO lstr_od.cheqdt
FROM LOAN_INST_SCH
WHERE act_c_type = p_s_actype AND
act_c_no = p_s_acno AND
ln_n_instlno = v_n_odno;
IF SQLCODE = -1 THEN
lstr_od.batchslno := -1;
RETURN lstr_od;
END IF;
END IF;
ELSE
lstr_od.batchslno := 1;
END IF;
END IF;
END IF;
RETURN lstr_od;
EXCEPTION
WHEN OTHERS THEN
v_s_errm := SQLERRM;
dbms_output.put_line(SQLERRM);
lstr_od.batchslno := -1;
RETURN lstr_od;
END;
/
Similar Messages
-
Error window while changing the value in SelectOneChoice.
Hi I am facing a problem on change of values in SelectOneChoice, "ERROR For input string: "N"
Below is how i am implementing SelectOneChoice:
I am creating values for SelectOneChoice in a Java class:
*SelectItem itemY=new SelectItem();*
*itemY.setLabel("Yes");*
*itemY.setValue("Y");*
*confirmation.add(itemY);*
*SelectItem itemN=new SelectItem();*
*itemN.setLabel("No");*
*itemN.setValue("N");*
*confirmation.add(itemN);*
Using this values in JSFF like this:
*<af:selectOneChoice value="#{bindings.confURLSubmitted.inputValue}"*
*label="Conference Website URL Submitted"*
*required="#{bindings.confURLSubmitted.hints.mandatory}"*
*shortDesc="#{bindings.confURLSubmitted.hints.tooltip}"*
*binding="#{backingBeanScope.EditComplianceDetails.confURLSubmitted}"*
*id="confURLSubmitted"*
*unselectedLabel="Select One"*
*autoSubmit="true"*
*valueChangeListener="#{backingBeanScope.EditComplianceDetails.OnConfURLSubChange}">*
*<f:selectItems value="#{pageFlowScope.generalLists.confirmation}"*
*binding="#{backingBeanScope.EditComplianceDetails.si1}"*
*id="si1"/>*
*</af:selectOneChoice>*
And in bean method i am trying to print the selected value in SelectOneChoice:
*public void OnConfURLSubChange(ValueChangeEvent valueChangeEvent) {*
*// Add event code here...*
*System.out.println("this.confURLSubmitted.getValue() "+this.confURLSubmitted.getValue());*
Now when i try to change the value in SelectOneChoice:
I am getting an error window "ERROR For input string: "N"
Any idea y i am getting this error.
Thanks in AdvanceRemove selectOneChoice value binding and set static value and try
*<af:selectOneChoice value="XXX"*
label="Conference Website URL Submitted"
required="#{bindings.confURLSubmitted.hints.mandatory}"
shortDesc="#{bindings.confURLSubmitted.hints.tooltip}"
binding="#{backingBeanScope.EditComplianceDetails.confURLSubmitted}"
id="confURLSubmitted"
unselectedLabel="Select One"
autoSubmit="true"
valueChangeListener="#{backingBeanScope.EditComplianceDetails.OnConfURLSubChange}">
<f:selectItems value="#{pageFlowScope.generalLists.confirmation}"
binding="#{backingBeanScope.EditComplianceDetails.si1}"
id="si1"/>
</af:selectOneChoice> -
System Error cming while filtering the value
Hi Bw Expert,
I am facing one problem while doing the filter on a characterisitc in report.I am getting short dump on that.
Wheras when i am doing drill down on the characteristic then i am able to do the filter.
OPls help me.Revab,
you mean to say that when you filter on a characteristic on BeX , the session is terminated ?
Please send us the short text of the dump message , unless the dump reason is known , we would not know what it is that is causing the same.
Arun -
I want to generate an Accountname using EmployeeID, FirstName and LastName via a workflow.
I'm using the Granfeldt Workflow Activity Library (https://fimactivitylibrary.codeplex.com/)
I'm using the FIM Powershell Workflow Activity (https://fimpowershellwf.codeplex.com/)
Steps:
Passing the EmployeeID, FirstName and LastName to the powershell Activity, generating a logonid based on logic.
Add-PSSnapin FIMAutomation
$EmployeeID = $fimwf.WorkflowDictionary.EmployeeID
$Forename = $fimwf.WorkflowDictionary.Firstname
$Lastname = $fimwf.WorkflowDictionary.Lastname
'logic creating a custom logonid here
==> This works
Returning data back to the workflow via that powershell script:
$fimwf.WorkflowDictionary.Add('NewAccountName',$newlogonid)
==> This works
Using Lookup Value Activity to read the Workflow data and update the [//Target/AccountName] fails.
This gives an error:
An error occurred while enumerating the filter 'string' .
(where string is the actual generated userid that I've got back from the powershell script. Example dab2563)
I tried with only [//WorkflowData], then this gives the error:
Index was outside the bounds of the array.
Any hints to solve this?
Kind regards,
DavidThe Lookup Activity is for looking up an object in the FIM Service. Seems like thats not what you're trying to accomplish.
For updating the target of the workflow, just use the built-in Function Evaluator. The Lookup WF was not built for that and it is failing because you have not specified a valid XPAth lookup filter, such as /Person[AccountName='BillG']
Regards, Soren Granfeldt
blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt -
Getting the following error while parsing the values usng xml parser
Hi
I am getting the following error while parsing the values using the code in r12 instance on linux
declare
XML_PARSER XMLPARSER.PARSER;
DOC XMLDOM.DOMDOCUMENT;
DOCELEMENT DBMS_XMLDOM.DOMELEMENT;
BEGIN
-- NEW PARSER
XML_PARSER := XMLPARSER.NEWPARSER;
-- SET SOME CHARACTERISTICS
XMLPARSER.SETVALIDATIONMODE(XML_PARSER, FALSE);
IF P_DIR IS NOT NULL AND P_FILENAME IS NOT NULL
THEN
FND_FILE.PUT_LINE(FND_FILE.LOG,'DIRECTORY FOUND'||'-'||P_DIR);
XMLPARSER.SETBASEDIR(XML_PARSER, P_DIR);
-- PARSE INPUT FILE
FND_FILE.PUT_LINE(FND_FILE.LOG,'FILE FOUND'||'-'||P_FILENAME);
XMLPARSER.PARSE(XML_PARSER, P_DIR || '/' || P_FILENAME);
-- GET DOCUMENT
DOC := XMLPARSER.GETDOCUMENT(XML_PARSER);
LOAD_SUPP(doc);
ELSE
DBMS_OUTPUT.PUT_LINE('DIRACTORY/FILENAME CANNOT BE NULL');
END IF;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('DATA NOTINSERTED'||sqlerrm);
ROLLBACK;
END
I am getting the following error
DIRACTORYL-/home/appldevORA-0000: normal, successful completion
FILE NAME-suppliersample_data.xmlORA-0000: normal, successful completion
DATA NOTINSERTEDORA-31001: Invalid resource handle or path name "/home/appldev/suppliersample_data.xml"
ORA-06512: at "SYS.XDBURITYPE", line 11
ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
ORA-29280: invalid directory path
ORA-29280: invalid directory path
ORA-29280: invalid directory path
It could be great if some one could give a suggestion/solution.
Thanks
AjeshBesides this is not the correct forum try to google the error message first before posting:
http://ora-29280.ora-code.com/
cheers -
Error while executing the Job for Objects :null Batch Risk Analysis
Hi All,
We've recently upgraded Virsa to version 5.3_14 . I'm encountering a problem when executing the Batch Risk Analysis job for users, roles and profiles. The job does not complete for some objects and it seems to be sporadic and shows this error: -
Background Job History: job id=395, status=2, message=Error while executing the Job for Object(s) :ABROWN:null
I've attached the log for your review.
Thanks in advance for your help.
Linda Lewis
Feb 9, 2011 1:47:53 PM com.virsa.cc.xsys.meng.ObjAuthMatcher <init>
FINEST: ObjAuthMatcher constructed: 4ms, #singles=2141, #ranges=0, #super=0
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.riskanalysis.AnalysisEngine riskAnalysis
WARNING: Job ID:395 : Failed to run Risk Analysis
java.lang.StringIndexOutOfBoundsException at java.lang.String.substring(String.java:1019)
at com.virsa.cc.xsys.util.RuleLoader.getPermRule(RuleLoader.java:573)
at com.virsa.cc.xsys.riskanalysis.AnalysisEngine.performActPermAnalysis(AnalysisEngine.java:1609)
at com.virsa.cc.xsys.riskanalysis.AnalysisEngine.riskAnalysis(AnalysisEngine.java:321)
at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchRiskAnalysis(BatchRiskAnalysis.java:1166)
at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchSyncAndAnalysis(BatchRiskAnalysis.java:1464)
at com.virsa.cc.xsys.bg.BgJob.runJob(BgJob.java:560)
at com.virsa.cc.xsys.bg.BgJob.run(BgJob.java:363)
at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.scheduleJob(AnalysisDaemonBgJob.java:375)
at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.start(AnalysisDaemonBgJob.java:92)
at com.virsa.cc.comp.BgJobInvokerView.wdDoModifyView(BgJobInvokerView.java:444)
at com.virsa.cc.comp.wdp.InternalBgJobInvokerView.wdDoModifyView(InternalBgJobInvokerView.java:1236)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:207)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
FINEST: Lock:1004
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock unlock
FINEST: Unlock:1004
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchRiskAnalysis
WARNING: Error: while executing BatchRiskAnalysis for JobId=395 and object(s):ABROWN: Skipping error to continue with next object: null Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BgJob updateJobHistory
FINEST: --- @@@@@@@@@@@ Updating the Job History -
2@@Msg is Error while executing the Job for Object(s) :ABROWN:null
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.dao.BgJobHistoryDAO insert
INFO: -
Background Job History: job id=395, status=2, message=Error while executing the Job for Object(s) :ABROWN:null
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
FINEST: Lock:1004
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock unlock
FINEST: Unlock:1004
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchRiskAnalysis
INFO: --- BKG User Permission Analysis (System: P20:020) completed --- elapsed time: 4522 ms
Feb 9, 2011 1:47:54 PM com.virsa.cc.xsys.util.Lock lock
Edited by: Linda Lewis on Feb 9, 2011 9:08 PMHi,
Was a solution found for this error?
Thanks,
Glen -
Error while writing the data into the file . can u please help in this.
The following error i am getting while writing the data into the file.
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="code">
<code>null</code>
</part>
<part name="summary">
<summary>file:/C:/oracle/OraBPELPM_1/integration/orabpel/domains/default/tmp/
.bpel_MainDispatchProcess_1.0.jar/IntermediateOutputFile.wsdl
[ Write_ptt::Write(Root-Element) ] - WSIF JCA Execute of operation
'Write' failed due to: Error in opening
file for writing. Cannot open file:
C:\oracle\OraBPELPM_1\integration\jdev\jdev\mywork\
BPEL_Import_with_Dynamic_Transformation\WORKDIRS\SampleImportProcess1\input for writing. ;
nested exception is: ORABPEL-11058 Error in opening file for writing.
Cannot open file: C:\oracle\OraBPELPM_1\integration\jdev\jdev\mywork\
BPEL_Import_with_Dynamic_Transformation
\WORKDIRS\SampleImportProcess1\input for writing. Please ensure 1.
Specified output Dir has write permission 2.
Output filename has not exceeded the max chararters allowed by the
OS and 3. Local File System has enough space
.</summary>
</part>
<part name="detail">
<detail>null</detail>
</part>
</bindingFault>Hi there,
Have you verified the suggestions in the error message?
Cannot open file: C:\oracle\OraBPELPM_1\integration\jdev\jdev\mywork\BPEL_Import_with_Dynamic_Transformation\WORKDIRS\SampleImportProcess1\input for writing.
Please ensure
1. Specified output Dir has write permission
2. Output filename has not exceeded the max chararters allowed by the OS and
3. Local File System has enough space
I am also curious why you are writing to a directory with the name "..\SampleImportProcess1\input" ? -
Consistently receive the following message after importing serveral songs from CD into iTunes (latest ver 11.1.5.5)...
"Error occurred while converting the file 'songname'. The required folder cannot be found."
CD/DVD ROM is no longer recognized until computer is restarted.I have the same problem. I recently moved my music from a Vista PC to a new Laptop with an external CD drive. It will copy one song from the CD and it will show in the Music file and then I get the message ' Error importing a CD - Folder not found'. I must unplug the CD drive and plug it back in. I have seen no fix for this problem.
-
An error occured while opening the connection: Object reference not set to
After I uninstalled Oracle Developer Tools for Visual Studio .NET 10.1.0.4 and installed Oracle Developer Tools for Visual Studio .NET with Oracle10g Release 2 ODAC 10.2.0.2.21 I got the error message below when I want to connect to my 10g database using Oracle Explorer.
Error:
An error occured while opening the connection: Object reference not set to an instance of an object
I use OracleConnection to open also cannot be done. But I use Oracle SQL Developer I can connect to orcl that I cannot connect using ODAC 10.2.0.2.21 in my laptop.
Please help me.
Ming ManSorry my mistake, I double checked, the one I uninstalled is ODAC 10.2.0.2.20 and not ODAC 10.1.0.4.
But I have that error.
Ming Man -
(409) Conflict Error while uploading the file into Sharepoint library
Getting the below error while uploading the file into Sharepoint library.
(409) Conflict. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl,
Stream stream, String etag, Boolean overwriteIfExists
I have used the below code:
ClientOM.File.SaveBinaryDirect(clientContext, "/Shared%20Documents/NewDocument.pptx", memoryStream, true);
Thanks in advance.May be issue is with path.
https://server/ should be there instead of
subsite path(https://server/path/path)
in the client context
Check the below link
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fbb38b10-1127-48a6-a65f-0301edd766c4/the-remote-server-returned-an-error-409-conflict-error-while-uploading-files-to-sharepoint?forum=sharepointdevelopmentlegacy -
Errors have occured while transferring the document into another system.
Hi GURUs,
Please help me to come out from this problem........
An error has occured in the system YDQCLNT100 while copying the document
Message no. CRM_ORDER_MISC 020
Diagnosis
Errors have occured while transferring the document into another system. Refer to the attached log for error messages.
Transmission log
Product cannot be recoded for R/3 System YDQCLNT100 (Notification E CRM_ORDER_MISC 015)
Product cannot be recoded for R/3 System YDQCLNT100 (Notification E CRM_ORDER_MISC 015)
Please suggest something ASAP....
i'll be highly Grateful to you.....
Regards,
AnkurHi Gangadhar,
Can you plz explain me elaborately, where should i check for partner function of the equipment and how this partner function is related to this issue.
I think partner function will be there only for BP. Can you plz clarify me.
Thanks in advance
Ankur -
NullPointerException was thrown while extracting a value from an instance
Dear all,
We have got a null point exception during commit call. According to the stack trace shown below, it seems that it is a problem due to instance variable accessor. As we know toplink use reflection to access the instance variable value. I am curious whether the exception we got is related to any class-loader setting. Thanks a lot.
=================
Stack Trace:
Exception [TOPLINK-69] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle
.toplink.exceptions.DescriptorException
Exception Description: A NullPointerException was thrown while extracting a valu
e from the instance variable [versionID] in the object [com.oocl.csc.frm.pom.tes
t.model.Company].
Internal Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[versionID-->COMPANY.VERSIO
NID]
Descriptor: Descriptor(com.oocl.csc.frm.pom.test.model.Company --> [DatabaseTabl
e(COMPANY)])
at oracle.toplink.exceptions.DescriptorException.nullPointerWhileGetting
ValueThruInstanceVariableAccessor(DescriptorException.java:1022)
at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor
.getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:68)
at oracle.toplink.mappings.DatabaseMapping.getAttributeValueFromObject(D
atabaseMapping.java:304)
at oracle.toplink.mappings.DirectToFieldMapping.iterate(DirectToFieldMap
ping.java:355)
at oracle.toplink.internal.descriptors.ObjectBuilder.iterate(ObjectBuild
er.java:1438)
at oracle.toplink.internal.descriptors.DescriptorIterator.iterateReferen
ceObjects(DescriptorIterator.java:258)
at oracle.toplink.internal.descriptors.DescriptorIterator.startIteration
On(DescriptorIterator.java:407)
at oracle.toplink.publicinterface.UnitOfWork.discoverUnregisteredNewObje
cts(UnitOfWork.java:1368)
at oracle.toplink.publicinterface.UnitOfWork.discoverAllUnregisteredNewO
bjects(UnitOfWork.java:1290)
at oracle.toplink.publicinterface.UnitOfWork.assignSequenceNumbers(UnitO
fWork.java:326)
at oracle.toplink.publicinterface.UnitOfWork.collectAndPrepareObjectsFor
Commit(UnitOfWork.java:664)
at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeS
et(UnitOfWork.java:1130)
at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOf
Work.java:956)
at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:771)
====================
====================
Mapping Description:
<?xml version = '1.0' encoding = 'UTF-8'?>
<project>
<project-name>POM-TEST</project-name>
<login>
<database-login>
<platform>oracle.toplink.oraclespecific.Oracle9Platform</platform>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<connection-url>jdbc:oracle:thin:@sjcngdb2:1521:cdrfrmdv</connection-ur
l>
<user-name>pomowner</user-name>
<password>BB742416276274A47F360CCDD2711570</password>
<uses-native-sequencing>false</uses-native-sequencing>
<sequence-preallocation-size>50</sequence-preallocation-size>
<sequence-table>SEQUENCE</sequence-table>
<sequence-name-field>SEQ_NAME</sequence-name-field>
<sequence-counter-field>SEQ_COUNT</sequence-counter-field>
<should-bind-all-parameters>false</should-bind-all-parameters>
<should-cache-all-statements>false</should-cache-all-statements>
<uses-byte-array-binding>true</uses-byte-array-binding>
<uses-string-binding>false</uses-string-binding>
<uses-streams-for-binding>false</uses-streams-for-binding>
<should-force-field-names-to-upper-case>false</should-force-field-names
-to-upper-case>
<should-optimize-data-conversion>true</should-optimize-data-conversion>
<should-trim-strings>true</should-trim-strings>
<uses-batch-writing>false</uses-batch-writing>
<uses-jdbc-batch-writing>true</uses-jdbc-batch-writing>
<uses-external-connection-pooling>false</uses-external-connection-pooli
ng>
<uses-external-transaction-controller>false</uses-external-transaction-
controller>
<type>oracle.toplink.sessions.DatabaseLogin</type>
</database-login>
</login>
<java-class>com.oocl.csc.frm.pom.test.model.Company</java-class>
<tables>
<table>COMPANY</table>
</tables>
<primary-key-fields>
<field>COMPANY.COMPANY_KEY</field>
</primary-key-fields>
<descriptor-type-value>Normal</descriptor-type-value>
<identity-map-class>oracle.toplink.internal.identitymaps.SoftCacheWeakI
dentityMap</identity-map-class>
<remote-identity-map-class>oracle.toplink.internal.identitymaps.SoftCac
heWeakIdentityMap</remote-identity-map-class>
<identity-map-size>100</identity-map-size>
<remote-identity-map-size>100</remote-identity-map-size>
<should-always-refresh-cache>false</should-always-refresh-cache>
<should-always-refresh-cache-on-remote>false</should-always-refresh-cac
he-on-remote>
<should-only-refresh-cache-if-newer-version>false</should-only-refresh-
cache-if-newer-version>
<should-disable-cache-hits>false</should-disable-cache-hits>
<should-disable-cache-hits-on-remote>false</should-disable-cache-hits-o
n-remote>
<alias>Company</alias>
<copy-policy>
<descriptor-copy-policy>
<type>oracle.toplink.internal.descriptors.CopyPolicy</type>
</descriptor-copy-policy>
</copy-policy>
<instantiation-policy>
<descriptor-instantiation-policy>
<type>oracle.toplink.internal.descriptors.InstantiationPolicy</ty
pe>
</descriptor-instantiation-policy>
</instantiation-policy>
<query-manager>
<descriptor-query-manager>
<existence-check>Check cache</existence-check>
</descriptor-query-manager>
</query-manager>
<event-manager>
<descriptor-event-manager empty-aggregate="true"/>
</event-manager>
<mappings>
<database-mapping>
<attribute-name>companyKey</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.COMPANY_KEY</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>contact</attribute-name>
<read-only>false</read-only>
<reference-class>com.oocl.csc.frm.pom.test.model.Contact</referen
ce-class>
<is-private-owned>false</is-private-owned>
<uses-batch-reading>false</uses-batch-reading>
<indirection-policy>
<mapping-indirection-policy>
<type>oracle.toplink.internal.indirection.NoIndirectionPoli
cy</type>
</mapping-indirection-policy>
</indirection-policy>
<uses-joining>false</uses-joining>
<foreign-key-fields>
<field>COMPANY.CONTACT_OID</field>
</foreign-key-fields>
<source-to-target-key-field-associations>
<association>
<association-key>COMPANY.CONTACT_OID</association-key>
<association-value>CONTACT.POID</association-value>
</association>
</source-to-target-key-field-associations>
<type>oracle.toplink.mappings.OneToOneMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>createdBy</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.CREATED_BY</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>creationClientID</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.CREATION_CLIENTID</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>creationTime</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.CREATION_TIME</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>employeeList</attribute-name>
<read-only>false</read-only>
<reference-class>com.oocl.csc.frm.pom.test.model.Person</referenc
e-class>
<is-private-owned>false</is-private-owned>
<uses-batch-reading>false</uses-batch-reading>
<indirection-policy>
<mapping-indirection-policy>
<type>oracle.toplink.internal.indirection.NoIndirectionPoli
cy</type>
</mapping-indirection-policy>
</indirection-policy>
<container-policy>
<mapping-container-policy>
<container-class>com.oocl.csc.frm.pom.impl.FWPersistentArra
yList</container-class>
<type>oracle.toplink.internal.queryframework.ListContainerP
olicy</type>
</mapping-container-policy>
</container-policy>
<relation-table>EMPLOYEMENT</relation-table>
<source-key-fields>
<field>COMPANY.COMPANY_KEY</field>
</source-key-fields>
<source-relation-key-fields>
<field>EMPLOYEMENT.EMPLOYER_KEY</field>
</source-relation-key-fields>
<target-key-fields>
<field>PERSON.POID</field>
</target-key-fields>
<target-relation-key-fields>
<field>EMPLOYEMENT.EMPLOYEE_ID</field>
</target-relation-key-fields>
<type>oracle.toplink.mappings.ManyToManyMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>lastUpdateClientID</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.LAST_UPDATE_CLIENTID</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>lastUpdatedBy</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.LAST_UPDATED_BY</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>lastUpdateTime</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.LAST_UPDATE_TIME</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>name</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.NAME</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>partner</attribute-name>
<read-only>false</read-only>
<reference-class>com.oocl.csc.frm.pom.test.model.Company</referen
ce-class>
<is-private-owned>false</is-private-owned>
<uses-batch-reading>false</uses-batch-reading>
<indirection-policy>
<mapping-indirection-policy>
<type>oracle.toplink.internal.indirection.NoIndirectionPoli
cy</type>
</mapping-indirection-policy>
</indirection-policy>
<uses-joining>false</uses-joining>
<foreign-key-fields>
<field>COMPANY.PARTNER</field>
</foreign-key-fields>
<source-to-target-key-field-associations>
<association>
<association-key>COMPANY.PARTNER</association-key>
<association-value>COMPANY.COMPANY_KEY</association-value>
</association>
</source-to-target-key-field-associations>
<type>oracle.toplink.mappings.OneToOneMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>persistentCtxt</attribute-name>
<read-only>false</read-only>
<reference-class>com.oocl.csc.frm.pom.impl.FWPOMPersistentContext
</reference-class>
<is-null-allowed>false</is-null-allowed>
<aggregate-to-source-field-name-associations>
<association>
<association-key>OWNERID</association-key>
<association-value>COMPANY.OWNERID</association-value>
</association>
<association>
<association-key>ROOTID</association-key>
<association-value>COMPANY.ROOTID</association-value>
</association>
</aggregate-to-source-field-name-associations>
<type>oracle.toplink.mappings.AggregateObjectMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>poid</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.POID</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>version</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.VERSION</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
<database-mapping>
<attribute-name>versionID</attribute-name>
<read-only>false</read-only>
<field-name>COMPANY.VERSIONID</field-name>
<type>oracle.toplink.mappings.DirectToFieldMapping</type>
</database-mapping>
</mappings>
<type>oracle.toplink.publicinterface.Descriptor</type>
</descriptor>
</descriptors>
</project>
====================
====================
Session Creation Method:
SessionBroker broker = (SessionBroker) manager.getSession(brokerName, Thread.currentThread().getContextClassLoader());
broker.getLogin().getPlatform().getConversionManager().setLoader(Thread.currentThread().getContextClassLoader());
====================
===================
Class Hierarchy:
Object extends> ..xxx.. extends> FWObject extends> Company
The problematic attribute -- versionID -- is defined at "FWObject" level.
===================
===================
Environment Configuration:
Application Server version: 10.1.2
TopLink version : 9.0.4.5
TopLink classpath: specified at container level
FWObject classpath: specified at container level
Company classpath: specified at application level
===================
Thanks and regards,
WilliamDear All,
We have loaded the toplink.jar to container level instead of application level. Don't know whether it is a possible source of error. Moreover, what is the purpose of loading antlr.jar? What is this jar for?
Thanks and regards,
William -
Azure Sql DB Export to Storage Container fails with "An error occurred while sending the request"
I've built a new VM from which I'm running PowerShell scripts to backup my databases. It had worked before on an old server for several months, and worked once on the new server, then I upgraded my Azure PowerShell cmdlets, and haven't been able to
get it to work again. The new version is 0.8.10.1.
Below is my source code, with sensitive stuff replaced with ?'s. When I display the $stctx and $dbctx, they seem to have reasonable values. I added the IP address of the server as an exception to the db firewall, and I've installed SQL Server
Mangement Studio and verified that I can connect to the database. I have a feeling there's something simple I've overlooked.
Here's are both error messages:
Start-AzureSqlDatabaseExport : An error occurred while sending the request.
At C:\Users\Public\PublicCmds\test.ps1:29 char:1
+ Start-AzureSqlDatabaseExport -SqlConnectionContext $dbctx -StorageContext $stctx ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-AzureSqlDatabaseExport], HttpRequestException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.StartAzureSqlDatabaseExport
Start-AzureSqlDatabaseExport : Error while copying content to a stream.
At C:\Users\Public\PublicCmds\test.ps1:29 char:1
+ Start-AzureSqlDatabaseExport -SqlConnectionContext $dbctx -StorageContext $stctx ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-AzureSqlDatabaseExport], HttpRequestException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet.StartAzureSqlDatabaseExport
Here is the source code:
param($dbname)
if ($dbname -eq $null) {
write-host "Database code must be specified"
return
$password = "????"| ConvertTo-SecureString -asPlainText -Force
$servercredential = new-object System.Management.Automation.PSCredential("????", $password)
$dbsize = 1
$dbrestorewait = 10
$dbserver = "????"
$stacct = $dbname
$stkey = "????"
$stctx = New-AzureStorageContext -StorageAccountName $stacct -StorageAccountKey $stkey
$dbctx = New-AzureSqlDatabaseServerContext -ServerName $dbserver -Credential $servercredential
$dt = Get-Date
$timestamp = "_" + $dt.Year + "-" + ("{0:D2}" -f $dt.Month) + "-" + ("{0:D2}" -f $dt.Day) + "-" + ("{0:D2}" -f $dt.Hour) + ("{0:D2}" -f $dt.Minute)
$bkupname = $dbname + $timestamp + ".bacpac"
write-host "db context"
$dbctx
write-host "storage context"
$stctx
write-host "Backup $dbname to $bkupname"
Start-AzureSqlDatabaseExport -SqlConnectionContext $dbctx -StorageContext $stctx -StorageContainerName databasebackup -DatabaseName $dbname -BlobName $bkupnameHi Brad,
Mentioned script, with appropriate values, works on my system.
I'm able to export an Azure SQL database to blob storage. Am using version 0.8.10.1 of cmdlets, so this the same version mentioned in this problem description.
Can you please try using Add-AzureAccount and check if that helps. This is indicated in a different third-party blog.
http://answers.flyppdevportal.com/categories/azure/azuretroubleshooting.aspx?ID=8aee89fe-430e-45fe-af54-7c8ed3ac60e1%29."http://answers.flyppdevportal.com/categories/azure/azuretroubleshooting.aspx?ID=8aee89fe-430e-45fe-af54-7c8ed3ac60e1
Does it work from a different machine with newly downloaded credentials.
Does it work for a newly created database (so minimal database size).
If above do not work, we may require additional details like RequestID, StorageAccountName, ServerName so an MS ticket may be more appropriate.
Girish Prajwal -
No Data Shown because an error occurred while running the query
Discoverer 10gR2 using Plus on Firefox:
I have one workbook. The first sheet summarizes by Vendor. Parameters are Type, Category, Vendor (all optional) and mandatory date range.
The second sheet summarized by Vendor and Model. Parameters are Type, Category, Vendor, Model (all optional) and mandatory date range.
All parameters except the extra "Model" are shared between the sheets.
When I run the Vendor sheet, parameters pop up, I put in dates and leave the rest blank. Results display. Yeah!
When I then run the Model sheet, parameters pop up again (because it has one more parameter). Dates carry forward, leave the rest blank. I get the error No Data Shown because an error occurred while running the query. Refreshing does not help.
If I click back to the Vendor sheet, then come back to the Model sheet, no parameter screen and the query runs.
Booooo.
Have tried multiple DBs, multiple EULs, multiple underlying data sources, replacing the offending parameter with a whole new one, no difference.
Has any body run into this behavior? Is there an answer?
-- Ron Olcott, Business Intelligence Product ManagerWhat about trying this. On the parameter definition, you have a section on the bottom left of the Parameters window, called "Do you want to allow different parameter values for each worksheet?". When you say in your posting that all but the Model parameter is shared, I assume you mean that you have set this section value to "Allow only one set of paratmeter values for all worksheets". Try setting this to "Allow different parameter values for each worksheet". See if that might make a difference for you. If that works, you may have to leave the option at this, as the lesser of your evils. From my limited experience, the "Allow only one set of parameter mvalues for all worksheets" is a bit flaky in how it works. So I pretty much have gone to always saying to allow different parameter values for each worksheet. Hope this helps a bit. If worse comes to worse, if you have not done so already, log a service request with support and see what they say. Good luck.
John DIckey -
Situation is this.. was using 8.1.6 EE and Oracle Portal.. was able to get the Oracle Portal page up and after a while the application died.. this happened numerous times. Found in one of these forums that a bug existed (UTL_HTTP) and recommended going to 8.1.7 EE because of a patch. I migrated my 8.1.6 EE to 8.1.7 EE(made sure procedures & packages were valid). I'm able to bring up the Oracle Portal page but when I go to login I get this:
Error: You cannot login because an error occurred while retrieving the login URL. (WWC-41441)
Thoughts?Hi,
I ran ssodatan again and got the following error:
ERROR: Setting Login Server Partner App
ORA-06508: PL/SQL: could not find program unit being called
I then found out that the wwsec_sso_enabler_private in the SSO
schema is invalid and this was causing the above error. I tried
recompiling the package but got the following error:
Errors for PACKAGE BODY WWSEC_SSO_ENABLER_PRIVATE:
LINE/COL ERROR
151/6 PL/SQL: SQL Statement ignored
151/13 PLS-00320: the declaration of the type of this
expression is incomplete or malformed
151/20 PLS-00336: non-object-table "SECI" illegal in this
context
160/4 PL/SQL: SQL Statement ignored
643/6 PL/SQL: SQL Statement ignored
643/13 PLS-00320: the declaration of the type of this
expression is incomplete or malformed
643/20 PLS-00336: non-object-table "SECI" illegal in this
context
LINE/COL ERROR
651/4 PL/SQL: SQL Statement ignored
713/4 PL/SQL: SQL Statement ignored
713/50 PLS-00382: expression is of wrong type
745/3 PL/SQL: SQL Statement ignored
746/10 PLS-00389: table, view or alias name "ENBCONFIG" not
allowed in this context
The same package in the Portal schema is valid. Will an
export of this package from a working instance and an import into
the above instance solve this problem?
Thanks and Regards,
Rupesh
Maybe you are looking for
-
Error in units of measurement conversion "BOM"
hello gurus gudmorning everybody i have problem in project regarding the units of measurement conversion BOM this is the scenario: 1000 ft2( BASE UNIT MEASUREMENT) = 1ea ( SALES UNIT) ( 2bed room flat) it is a higher level item sub items are
-
Oralce AP :check order to be ordered by amount in payment batch?
Is it possible to set the check order to be ordered by amount in payment batch? The only options available now are supplier name, supplier number, or postal code(Document Order) but I want to print by batch amount. Please advise. Lak
-
when ever i open my camera it shows me an error message sayin "Close all other applications" even all the apps are closed... can any one help me.?? i have done soft and hard reboot.. cleared my sd card and also updated my device software from 4 to os
-
I have been trying to import video from my panasonic pv-gs150. The imported video has major quality issues. It comes in all choppy with hugh pixel artifacts. I am using a white 24' imac that is just over a year old. This happens with both imovie 08 a
-
I cannot get the settings button on gmail to do anything!!