Mapping proc output to vars gets error extracting result into a variable of type (DBTYPE_UI2)

Hi, we run std 2012.  I have a proc (sets nocount on) whose params r shown in the first block .   My execute ssis sql task mapping is shown in the block following that (same order as shown, the param sizes are all -1).  The variable
characteristics and initial values are shown in the 3rd block.  The execute sql task command is
exec usp_fileArrivalStatus ?,?,?,?,?,? output,? output,? output
when I run the proc in ssms followed by a select on the output fields, I get stat 0, instance id -1 and file name empty string (aka tick tick aka '')
The error is:
[Execute SQL Task] Error: Executing the query "exec usp_fileArrivalStatus ?,?,?,?,?,? output,? ou..." failed with the following error:
"An error occurred while extracting the result into a variable of type (DBTYPE_UI2)".
Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Does anybody know what is wrong?
CREATE PROCEDURE [dbo].[usp_fileArrivalStatus] @NewFilePattern varchar(500),
@PkgName varchar (257),
@appid int,
@MsgHistCreateDate date,
@messageFriendlyName varchar(500),
@arrivalStatus int output,
@instanceId bigint output,
@fileName varchar(500) output
VariableName Direction DataType ParamName
User::TranFilePattern Input VARCHAR 0
System::PackageName Input VARCHAR 1
User::AppID Input SHORT 2
User::todaysDate Input DATE 3
User::TranFileArriveStatus OUTPUT SHORT 5
User::TranFileInstanceId OUTPUT LARGE_INTEGER 6
User::TranFileName OUTPUT VARCHAR 7
User::TranFileFriendlyName Input VARCHAR 4
User::TranFilePattern,string,tranfile05-Nov-2014
User::fileDate,string,05-Nov-2014
System::PackageName,
User::AppID,int32,12
User::todaysDate,DateTime, set by select getdate()
User::TranFileArriveStatus,int32,0
User::TranFileInstanceId,Int64,0
User::TranFileName,string
User::TranFileFriendlyName,string,Tran File

I may have gotten past this.  The ui showed the first execution of that proc as the aborting component but when I looked at my error code (-1073548784), and component name in the
message sent with notification email, I noticed the second component name.  It too executes that proc and still had ushort for appid in sql task mapping and long for instance id.  I changed these characteristics to match what I posted and got green
on the seq container that runs both.
I think I go thru this kind of adventure every time I try to map proc output to ssis vars.   

Similar Messages

  • Get error (0x80092013) logging into iTunes store, can someone help?

    Getting error (0x80092013) trying to get into iTunes store. Can anyone out there help me.

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • How to get values from a stored package variable of type record ?

    Sir,
    In my JClient form, I need to get values from a database stored package variable of type record. And the values are retained in the JClient form for the whole session. The values are copied only once when the form is started.
    What is the best way to do that ?
    Thanks
    Stephen

    Stephen,
    not sure what your model is, but if it is Business Components, I think I would expose the properties as a client method on the application module. This way all JClient panels and frames will have access to it. You could use a HashMap to store the data in teh app module.
    If JDBC supports the record type, then you should be able to call it via a prepared SQL statement. If not, you may consider writing a PLSQL accessor to your stored procedure that returns something that can be handled.
    Steve Muench provides the following examples on his blog page
    http://otn.oracle.com/products/jdev/tips/muench/stprocnondbblock/PassUserEnteredValuesToStoredProc.zip
    http://otn.oracle.com/products/jdev/tips/muench/multilevelstproc/MultilevelStoredProcExample.zip
    Frank

  • Linker error 2005 when using member variable of type CNiGraph in CW++

    Hi,
    when I try to use a member variable of type CNiGraph I receive linker errors LNK2005, e.g.:
    msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __CrtDbgReport already defined in libcmtd.lib(dbgrpt.obj)
    The project was created with the NI Measurement AppWizard.
    CW Version 3.0.1(549)
    OS: Windows 2000
    Thank you for your help.
    Uwe Gratzke

    This really isn't enough info about your project to give a definative answer, but one possibility is that you could have set up your project to be statically linking to the MFC libraries which we don't support. It could be a lot of other possibilities also. If you would like, you could have our support engineers help you with the project by sending it to us via http://www.ni.com/ask.
    Best Regards,
    Chris Matthews
    Measurment Studio Support Manager

  • Easy RFC lookup from XSLT mapping using a java class (getting Error)

    Hi All,
    I am trying to implement the sample scenario for calling RFC from xslt with the help of wrapper class. I am getting following error.
    com.sap.aii.mapping.lookup.LookupException: Internal lookup service is not registered. Invoking the lookup service is only supported in the Integration Builder test environment or in the Integration Server runtime environment. at com.sap.aii.mapping.lookup.LookupService.getService(LookupService.java:400) at com.sap.aii.mapping.lookup.LookupService.getChannel(LookupService.java:285) at com.sap.aii.mapping.lookup.LookupService.getChannel(LookupService.java:318) at dk.applican.xi.mapping.lookup.RfcLookup.execute(RfcLookup.java:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.execute(JLBFunction.java:145) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:125) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:256) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.callTemplate(XSLStylesheet.java:1310) at com.sap.engine.lib.xsl.xslt.XSLCallTemplate.process(XSLCallTemplate.java:102) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:241) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:241) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:256) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:445) at com.sap.engine.lib.xsl.xslt.XSLApplyTemplates.process(XSLApplyTemplates.java:158) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:256) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:445) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:381) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234) at com.sap.aii.ibrun.server.mapping.MappingTransformer.transform(MappingTransformer.java:153) at com.sap.aii.ibrun.server.mapping.XSLTMapping.executeStep(XSLTMapping.java:67) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor482.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy22.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162
    I am SAP XI 3.0 SP-9

    Hello,
    I have the same issue as stated above.
    At runtime sometimes the mapping fails however when executing the mapping from ESR (test operation mapping) with the same payload it is executed succesfully (lookup is to system that is the senderservice of the scenario).
    Anybody a clue.
    Also clearing mapping cache etc. did not solve the problem.
    Thanks,
    Emile

  • Getting error 025036 while setting bind variable value

    Hi,
    I have created a view object (ViewObj) having bind variable (Bind_Val).
    I am writing custom java method in AppModuleImpl.java, so that I can use that in serviceInterface.
    my method is:
    public void Met(String a){
    ViewObjImpl vo=new ViewObjImpl();
    vo.setBind_Val(a);
    I tried the below method also:
    public void Met(String a){
    ViewObjectImpl vo=new ViewObjectImpl();
    vo.setNamedWhereClauseParam("Bind_Val",a)
    But when I am running the AppModuleServiceImpl.java and select the Met method and pass the value for a. It is giving me error 02036.
    How to set the bind variable value in AppModuleImpl.java??
    Thanks,
    Rohit

    Hi Frank,
    Thanks for reply. It was helpful.
    Please go through the below mentioned two queries.
    My sql query is:
    SELECT Message.MESSAGE_ID,
    MessageProp.VALUE,
    MessageProp.MSG_PROP_ID
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Key='From' OR MessageProp.Key='To')AND Message.MESSAGE_ID = MessageProp.MESSAGE_ID And MessageProp.Value='B'
    and I have created one view criteria where I am giving the condition as MessageId=:Bind_MessageId.
    And then I am executing my findViewCriteria method from AppModuleServiceImpl where I am passing the value for Bind_MessageId and I am getting the output as I want.
    Now I am modifying my query as:
    SELECT Message.MESSAGE_ID,
    MessageProp.VALUE,
    MessageProp.MSG_PROP_ID
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Key='From' OR MessageProp.Key='To')AND Message.MESSAGE_ID = MessageProp.MESSAGE_ID And MessageProp.Value=:Bind_Value
    and setting the value for :Bind_Value programatically as:
    public void test(String s){
    ViewObjectImpl view = this.getViewObj1();
    VariableValueManager vm = view.ensureVariableManager();
    vm.setVariableValue("Bind_Value",s);
    **Note- I have written this custom method in AppModuleImpl.java class
    Then firstly I am executing test method from AppModuleServiceImpl to set the value for :Bind_Value. After that I am executing findViewCriteria method but then I am not getting any record.
    **Note-I am not getting any error.
    I want to set Bind_Value programatically and then I want to execute my FindViewCriteria from serviceInterface.
    Thanks,
    Rohit

  • Getting Error message"Result set already closed"

    i am getting java.lang.reflect.InvocationTargetException when i write code as
    rs.clearWarnings();
    rs.close();
    rs = null;
    but i am not getting any exception when write as
    rs.close();
    rs = null;
    java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.rbi.aas.util.BusinessDelegateBean.service(BusinessDelegateBean.java:119)
      at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
      at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.service(Unknown Source)
      at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl_CBV.service(Unknown Source)
      at org.rbi.aas.util.CommonWebUtil.processRequest(CommonWebUtil.java:48)
      at org.rbi.aas.trans.actionclass.BankMergerAction.execute(BankMergerAction.java:149)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.sql.SQLException: Result set already closed
      at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:144)
      at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:97)
      at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.clearWarnings(Unknown Source)
      at org.rbi.aas.util.DAOManagerImpl.resetResultSet(DAOManagerImpl.java:72)
      at org.rbi.aas.trans.dao.BankMergerDAO.getMerger(BankMergerDAO.java:95)
      at org.rbi.aas.trans.model.BankMergerFacadeBean.service(BankMergerFacadeBean.java:73)
      at org.rbi.aas.trans.model.BankMergerFacade_2lp38w_ELOImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
      at org.rbi.aas.trans.model.BankMergerFacade_2lp38w_ELOImpl.service(Unknown Source)
      ... 41 more
    [17.07.2013 16:07:00]-[INFO]-[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)']-[BusinessDelegateBean]-[[TRC] - service - BusinessDelegateBean:service: Reached at InvocationTargetException class java.sql.SQLException]
    BusinessException Caught
    java.lang.Exception: Result set already closed
      at org.rbi.aas.util.BusinessDelegateBean.service(BusinessDelegateBean.java:137)
      at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
      at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl.service(Unknown Source)
      at org.rbi.aas.util.BusinessDelegate_mpm9t2_EOImpl_CBV.service(Unknown Source)
      at org.rbi.aas.util.CommonWebUtil.processRequest(CommonWebUtil.java:48)
      at org.rbi.aas.trans.actionclass.BankMergerAction.execute(BankMergerAction.java:149)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    rs.clearWarnings();
    rs.close();
    rs = null;
    above code works perfectly well in jdeveoper 10g .....i am facing problem in JDeveloper 11.1.2.4.0...recently we have migrated to new weblogic server

  • Error when fetching into a variable of ROWTYPE

    I came across with a vied error when creating the body of a method.
    Problem:
    I have a Type called Emp_typ and a corresponding table Emp_tab.
    When I create the body of get method it gives the following error msg :
    Compilation errors for PACKAGE BODY CHAMITH.EMP_API
    Error: PLS-00386: type mismatch found at 'EMP_ROW' between FETCH cursor and INTO variables
    Line: 9
    Text: fetch get_emp_rec into emp_row;
    Get Method body :
    function get(id_ number) return emp_tab%rowtype IS
    cursor get_emp_rec IS
    select * from emp_tab;
    emp_row emp_tab%rowtype;
    begin
    open get_emp_rec;
    fetch get_emp_rec into emp_row;
    close get_emp_rec;
    return emp_row;
    end;
    However when I do the same without having a type upon the table emp_tab, it works fine.
    Pls give me a solution for that.
    Thanks,
    Chamith

    Hi,
    Let me know the Oracle Database Version.
    Regards,
    Sailaja

  • How to get ODI execution results into ESS log file

    Hi,
    In out project, we are launching ODI scenario from ESS. Once, we launch the scenarion from ESS, we did not know whether the scenario got executed successfully or not. Is there any way to get the ODI execution result (i.e,. Failure message or success message which we can able to see in Operator window of ODI) into ESS log file.
    Thanks,
    Ganesh

    Hi
    As per your query, You need see log file for failure execution and for successful execution, you can also use odisendmail option, below is and example, it may helps you
    Please arrange below 3 in pkg
    1) OdiSqlUnload
    2) OdiSendmail ( Odisendmail1 and Odisendemail2 )
    3) create an excel file in your local machine (eg: in D: drive Error_log_Report )
    Flow in Pkg:
    Interface --->OK ----> Odisendmail1
    |__>KO ---->OdiSqlUnload ---> OK ----> Odisendmail2
    Please enter below details in SqlUnload properties
    Target File: Provide Error_log_Report.xls file location (Eg: D:\Error_log_Report.xls)
    JDBC Driver: Provide Target DB Drivers
    JDBC URL: Provide Target DB JDBC URL
    User: Provide Target DB username
    Password: provide target DB password
    SQL Query: write select query of SELECT FROM targetDB_Schema.E$_table_name (write select query for E$ table)
    Note: In OdiSendmail2, attached above .xls file for interface execution failure as error report
    Regards,
    Phanikanth

  • How do I get the loaded file_name into a variable?

    Hi,
    I am busy loading multiple flat files into my Oracle Database. I have defined a File Format for this and it works fine. However, there is a FILE_NAME field in my table, which should contain the name of the file where a specific record was loaded from.
    My question is, how do I store the file name in a variable so that i can use it to fill the FILE_NAME field in my table? I have defined my global variable $FileName but I don't know how to write the script to fill this variable.
    Your assistance will be highly appreciated.
    Ndahafa

    In DI 11.7 this is very simple because there's a new option in the file reader instance that adds the file name as an additional output column. You will find this option when you use a file format in a dataflow and check the file reader options (last set of options in the list). More information can be found in the Designer guide (File Formats chapter).
    In previous versions this is more difficult to accomplish.
    You would need to:
    1) use script and the exec() function to write al file names to a text file (something like dir *.txt > filelist.txt).
    2) read this file and write to a table
    3) in a loop read the file name from the table (with sql() function) and store in a variable
    3) in the file reader use the variable to acces the file
    It might be worth upgrading to DI 11.7 is you need the simple solution .

  • How to get the entire result into an XMLDocument??

    Hello,
    I would like to get the result of a DB Query as XMLDocument. Here's the code I use:
    ResultSet rset = stmt.executeQuery();
    OracleResultSet orset = (OracleResultSet) rset;
    while (orset.next()) {
    XMLType poxml = XMLType.createXML(orset.getOPAQUE(1));
    Document doc = poxml.getDOM();
    The problem is, that I can only get a XMLDocument per table row, but not an XMLDocument of the entire result.
    Regards,
    Dominik

    I got the answer myself:
    In the xsql-query, use the xmlagg() function to group the all records into one record.
    Use the same Java code.
    Regards,
    Dominik

  • Using OWB in MOC map i am getting error:java.lang.reflect.invoc

    Hi All,
    When i am trying to deploy any of the ammping using OWB for oracle MOC.
    As part of the deployment, when I tried for the first following mapping:
    using MTH-->MTH_TARGET--> Mapping
    · List of deployable objects and category (EBS-Specific / Non-EBS Specific)
    · EBS Specific-Maps : MTH_WO_OI_INIT_DMF_MAP
    I am gettinge the following error while opening the map :
    java.lang.reflect.invocationtargetexception
    Because of that its not deploying at all for any of the mapping.
    I am sometimes getting error nested transactions are being carried out .But if I logging in and logging out this error doesn't comes but the error which I mentioned comes. (java.lang.reflect.invocationtargetexception)
    Will appreciate, if anybody gets teh same error or have some solution.
    Regards,
    Ashok.

    your error seems to indicate that your embeddedLdap isnt in sync with the Database ? Did you either delete files from your file systems or cleanup the portal db or finally used a copy of some existing database for your domain?

  • !! Getting error while using function in where clause

    Hi,
    I have created a function as below
    create function find_cnt(n varchar2)
    return number is
    cnt number;
    begin
    execute immediate 'select count(1) from '||n into cnt;
    return nvl(cnt,0);
    end;
    and when running the below select
    select find_cnt(object_name),object_name from user_objects where object_type='TABLE' and find_cnt(object_name)=0
    I getting
    ERROR:
    ORA-04044: procedure, function, package, or type is not allowed here
    ORA-06512: at "SCOTT.FIND_CNT", line 5
    can anyone help????????
    thanks
    Harish

    In 11g you could simply do
    SQL> select table_name, trim(column_value) cnt
      from user_tables, xmltable(('count(ora:view("'||table_name||'"))'))
    TABLE_NAME                     CNT      
    DEPT                           4        
    BONUS                          0        
    SALGRADE                       5        
    DEMO_USERS                     2        
    DEMO_CUSTOMERS                 7        
    DEMO_ORDERS                    10       
    DEMO_PRODUCT_INFO              10       
    DEMO_ORDER_ITEMS               16       
    DEMO_STATES                    51       
    DEMO_PAGE_HIERARCHY            18       
    TABLE1                         6        
    TABLE2                         6        
    CREATE$JAVA$LOB$TABLE          0        
    CLICKS                         1        
    T                              0        
    EMP                            14       
    PLAN_TABLE                     2        
    17 rows selected.

  • Why do I get Error 1048?

    I'm getting error code 1048  but my variables names are not reserved words. I have also replaced my matscript.dll with the new one provided in the KnowledgeBase document 2C1AH6DM.
    What else could be going wrong? The script is running without any problems in Matlab itself.
    Here is the very simple scipt.
    for k=1:6
        f(k,=pow(2,((n(k,-9)/2))*13,75;
        fa(k)=98;
        fb(k)=196;
        fc(ki)=392;
        Va(i)=0;
        Vb(i)=5;
        Vc(i)=10;
        A=[fa(k)^2,fa(k),1;
              fb(k)^2,fb(k),1;
              fc(k)^2,fc(k),1];  
       B=inv(A)* [Va(k);Vb(k);Vc(k)];
       s(k, = B(1)*f(k,.^2 + B(2)*f(k,+B(3);
    end
    Does anyone have a suggestion?
    Thanks in advance!
    Georg

    Georg,
    please post the entire code.
    The variables n, ki and i are not specified.
    Thanks,
    Tom
    http://www.newgistics.com

  • Updating to iOS 5, getting error 1602 message...

    Hey all,
    as like many i've been having trouble updating my iPhone to iOS 5.
    I've been getting the error code 1602.  I've read online that everyone is getting error 3200 resulting from overloaded servers.
    Is the 1602 error happening because of the servers or is this a different error altogether?
    Anyone know how to get around this? My phone is currently in Recovery Mode...updates continue to get the same error 1602
    Any help would be appreciated!!
    Thanks!

    I have the same problem, error 1602, when trying to update to the latest iOS 5.
    I have a Macbook Pro running Windows 7 64-bit, running Kaspersky anti-virus, the new iTunes (12 October 2011), and an iPhone 4 (32 GB).
    1) Last night the first problem I had was a failure to backup the iPhone, so I gave up.
    2) Today, I managed to backup the iPhone, but then it froze in the Recovery Mode (see image #4 in the 2nd article below), and was unrecognized by iTunes.
    - I disabled my Kaspersky anti-virus software (which has caused problems always in the past with all other iPhone iOS updates and downloads)
    - I restarted iTunes twice, but it failed to recognize the iPhone
    - I did a forced restart (holding the home button + on/off button) and it managed to finally get it recognized, and then it asked to restore, which it is doing.
    - It restored to factory settings, and it is now recognized in iTunes again and it is restoring from the backup (5 mins +/-).
    - Now it has rebooted and is finalizing the Restore (very long and vague amount of time, depending on the size of data (music, apps, etc) to transfer.
    I have clicked through these Apple Support articles already for guidance:
    http://support.apple.com/kb/TS1275 - The first support I read, but I knew my USB wasn't the problem.
    http://support.apple.com/kb/TS3694#error1602  - The most helpful so far
    http://support.apple.com/kb/HT1808 - This is what I then tried, by doing a forced restart
    http://support.apple.com/kb/TS1538 - Additional resources if needed
    This seems to have worked for now, it is still copying over the content from the backup. I hope it is iOS 5 on it!
    Good luck, such an annoying process, I really hate installing the new iOS, there are ALWAYS problems.
    DMR.

Maybe you are looking for