File2Mail Scenario

Hello,
Can someone point me to a good blog about file2mail,
i have a xml file which i need to do on it content conversion and send by mail.
TX

Hey Gaurav,
TX for answering,
I know about Receiver determination, the condition wasn't working.
i figured out the problem in the end, the company that produced the xml file sent it with attributes and not elements, also the  structure was incorrect.
so i formed a new xml and sent to then to change in there system.
TX for all your help.
Edited by: Zevik Heinoch on Dec 16, 2008 8:18 AM

Similar Messages

  • File attachment at File2Mail scenario

    Hi All,
    I'm trying to config a File2Mail scenario, I want the file read by the file adaptor will be send as mail attachment (with csv suffix). Last thing, the attached file name should be identical to name of the source file read by file adaptor.
    Plz advise / provide useful links
    Best Regards
    Uri

    in the mail adapter make sure that keep attachments option is checked.
    Also to solve the file name issue ref: The specified item was not found.

  • Dynamic mail subject in File2Mail Scenario

    We are doing File2Mail scenario. We r sending 5 files in 5 mails with 5 diff subjects by MAIL adapter.
    Can anyone guide me how to send 5 files as attachment in one single mail with different mail subjects :
    File names are - Employee_Leave,Base,Super,Loss,Profit.

    Hey,
         you can use dynamic addressing wherein you can provide the mail related information in your mapping.
    for example the to, from, subject and content.
    so you can map these fields form the input structure or you can have a constant to map it.
    refer to this blog it will really help.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    the only differerence in your case is that you need file as attachment so mark the keep attachment field.
    it will ask you for a mail structure.
    use this structure as your target structure.
    <?xml version="1.0" encoding="utf-8" ?>
    - <!--
    SAP takes no position regarding the validity or scope of any intellectual property or
    other rights that might be claimed to pertain to the implementation or use of the
    technology described in this document or the extent to which any license under such
    rights might or might not be available; neither does it represent that it has made any
    effort to identify any such rights.
    Copyright © SAP 2003-2004. All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative
    works that comment on or otherwise explain it or assist in its implementation may be
    prepared, copied, published and distributed, in whole or in part, without restriction of
    any kind, provided that the above copyright notice and this paragraph are included on all
    such copies and derivative works. However, this document itself does not be modified in
    any way, such as by removing the copyright notice or references to SAP.
    This document and the information contained herein is provided on an u201CAS ISu201D
    basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
    IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
      -->
    - <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30" xmlns:xi="http://sap.com/xi/XI/Mail/30" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <!--
    Mail
      -->
    - <xs:element name="Mail">
    - <xs:annotation>
      <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
      </xs:annotation>
    - <xs:complexType>
    - <xs:sequence>
      <xs:element name="Subject" type="xs:string" minOccurs="0" />
      <xs:element name="From" type="xs:string" minOccurs="0" />
      <xs:element name="To" type="xs:string" minOccurs="0" />
      <xs:element name="Reply_To" type="xs:string" minOccurs="0" />
      <xs:element name="Content_Type" type="xs:string" minOccurs="0" />
      <xs:element name="Date" type="xs:dateTime" minOccurs="0" />
      <xs:element name="Message_ID" type="xs:string" minOccurs="0" />
      <xs:element name="X_Mailer" type="xs:string" minOccurs="0" />
    - <xs:element name="Content" minOccurs="0">
    - <xs:annotation>
      <xs:documentation>any type</xs:documentation>
      </xs:annotation>
      </xs:element>
      </xs:sequence>
      <xs:attribute name="encoding" type="xs:string" />
      </xs:complexType>
      </xs:element>
    - <xs:element name="MailReceipt">
    - <xs:annotation>
      <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
      </xs:annotation>
    - <xs:complexType>
    - <xs:sequence>
      <xs:element name="Server" type="xs:string" />
      <xs:element name="Format" type="xs:string" />
      <xs:element name="UseMailPackage" type="xs:boolean" />
      <xs:element name="Encoding" type="xs:string" />
      <xs:element name="Subject" type="xs:string" minOccurs="0" />
      <xs:element name="From" type="xs:dateTime" minOccurs="0" />
      <xs:element name="To" type="xs:string" minOccurs="0" />
      <xs:element name="Date" type="xs:dateTime" minOccurs="0" />
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:schema>
    reward points if useful.
    regards,
            Milan.

  • File2mail - No output

    Hi,
    I have done file2mail scenario.I put a file in source directory and it is picked by sender file adapter.I have checked comm.channel monitoring in runtime workbench and in sxmb_moni i got success flag.But i didn't get the mail as output.
    Please suggest me where i did mistake.

    Hi,
    Sending Emails Using XI Mail Adapter
    Go through this ..
    http://www.riyaz.net/blog/index.php/2008/02/23/xipi-sending-emails-using-xi-mail-adapter/
    Configuration of SAP XI Mail Adapter on the receiver side. The receiver mail adapter resides on the J2EE stack and converts the XI messages into emails and transfers them to email server or in simple words sends them as emails to intended recipient(s).
    The adapter supports SMTP as well as IMPA4 protocol. Message protocol provides two options, namely XIALL and XIPAYLOAD. In the former entire SOAP message is sent as an attachment in mail along with the payload while in the latter only the message payload is sent.
    Configuring the Receiver Mail Adapter
    Let’s say you want to send incoming XML message as an email. The mail adapter provides two options – one using the mail package and one without using mail package. When you do not use mail package you have to provide the email header details (like To and From addresses, Subject line etc) in the adapter itself. There is no restriction on the XML message format or namespace. However, when you use mail package, you have to adhere to a specific format of the source XML.
    The figure above on the left shows a typical message structure that should be used while configuring receiver mail adapter with mail package. The Message Type must be named as ‘Mail’ and it must be present under the Namespace ‘http://sap.com/xi/XI/Mail/30’. Your message is bound to fail in adapter engine if this is not adhered to. This helps you to dynamically set email parameters like sender, receiver mail subject etc.
    The URL of the mail server should be specified as shown below depending on whether you use SMTP or IMAP4.
    smtp://EmailServer or imap://EmailServer/UserInbox
    If your server required User Authentication, you can specify the same while configuring the adapter. If you want to request a delivery receipt, check the ‘Send Delivery Status Notification’ checkbox. The delivery receipt is delivered to the email address specified in the ‘To’ field. base64 content encoding is possible. The figure on the right shows a typical configuration of the receiver mail adapter.
    As with any other J2EE adapter, you can enhance the adapter further using the adapter modules which can be specified in the module tab of the communication channel.
    Thanks,
    Satya Kumar

  • Parameters in  ResponseOnewayBean Module

    Here is my scenario: I have file adapter and configured with the following modules, my receiver is RFC and RFC response is mapped to JDBC . On RFC application error receiver channel is supposed to be Mail Adapter
    1 - AF_Modules/RequestResponseBean - Local Enterprise Bean -
    2 - CallSapAdapter-Local Enterprise Bean
    3 - AF_Modules/ResponseOnewayBean-Local Enterprise Bean
    1 - passThrough - true
    3 - adapterType - JDBC
    3 - receiverChannel -  Receiver File Adapter Name
    3 - receiverService -  Receiver Business System Name
    3 - receiverOn -  Mail Receiver
    If I change my receiverOn channel everything works fine.
    P:S receiverOn = receiverOnFault
    Thanks
    Chandra
    Edited by: Chandra Bhandaru on May 1, 2008 12:29 AM

    You're saying if you change the ReceiverOnFault parameter for a receiver file channel, for example, it works?
    Make sure the mail receiver adapter is not being used by any receiver agreement.
    But maybe, it actually doesnt work for mail adapter (it uses another adapter module, not CallSapAdapter like file&jdbc adapters).
    If that's really the case, you could configure a receiver file adapter to some local folder and do a simple File2Mail scenario to achieve the desired behavior.
    Regards,
    Henrique.

  • Binary file exchange

    My customer interested in exchange of binary files.\
    Is it possible in XI? File2File and File2mail scenarios?
    I think theoretically yes because File Adapter has property data type - binary | text. But how to define data type?

    Hi,
    take a look  at this great weblog by Felix:
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    this is a complete solution
    Regards,
    michal

  • Logical System in IDOC-XI scenario

    Hi,
         I need help to understand few things in IDOC-XI scenario, could any one help me in this regard.
        we use Adapter specific identifiers to map services, we have following type of identifiers 1) Sys.ID & Client No.  2) Logical System. 
    my questions are
    a) Are we use Logical System in B to B scenario ?
    b) Are we use LS in reference to the SAP system or Non SAP system ? if a non SAP system....how a non SAP system send an IDOC and why a non SAP system receive an IDOC ( conversion is possible in XI ) ?
    Thanks and Regards
    Mahesh.

    Hay Kumar,
    Logical systems can also be used for SAp sytems wich are not installed yet as a virtuall placeholder.
    a) yes. if on of your business is a non sap system or a propritery system that you developed yuo'll ue LS.
    b) non SAP system can send and recieve IDOCs. so it's possiable to get an IDOC from a system and turn it into an RFC for SAP or get an IDOC from an SAP system and then turn it into something else for another system.
    Have a Good One,
    Uri Lifshitz.

  • Sale Order Scenario - Report in PS Budget /Actual/Variance

    Dear Experts,
    Please help me understand solve the scenario given below
    Step 1
    Work order issued to a contractor ( contract includes Service and Material from the contractor) - Service being the labour part
    and Material being the cement
    But cement is supplied by the client as a sale of cement at a basic price agreed between the two parties.
    Eg:
    There are 2 WBS
    WBS 1 - has a PR released converted to PO with value 100 ( inclusive service + material)
    Material procured through me51n , Me21n - GR done and stock has come to GNST ( 40 rs)
    material converted to sale order stock mb1b - 412 E after creating sale order with reference to WBS 2
    WBS 2 -  reports cost incurred for procurement ie; 40rs
    Actual booked against WBS1 based on GR 100
    Once the billing is done for rs 20 ( basic price) report in budget actual variance shows as below
                    Budget    Actual    Variance
    WBS 1      200          100          100
    WBS 2                       40           -40
    Report should show 120 as the project cost rather than 140 - since 20 is lost against selling at lower cost.
    How to get the cost to 120 which is the actual cost for the work

    Dear Experts,
    Please help me understand solve the scenario given below
    Step 1
    Work order issued to a contractor ( contract includes Service and Material from the contractor) - Service being the labour part
    and Material being the cement
    But cement is supplied by the client as a sale of cement at a basic price agreed between the two parties.
    Eg:
    There are 2 WBS
    WBS 1 - has a PR released converted to PO with value 100 ( inclusive service + material)
    Material procured through me51n , Me21n - GR done and stock has come to GNST ( 40 rs)
    material converted to sale order stock mb1b - 412 E after creating sale order with reference to WBS 2
    WBS 2 -  reports cost incurred for procurement ie; 40rs
    Actual booked against WBS1 based on GR 100
    Once the billing is done for rs 20 ( basic price) report in budget actual variance shows as below
                    Budget    Actual    Variance
    WBS 1      200          100          100
    WBS 2                       40           -40
    Report should show 120 as the project cost rather than 140 - since 20 is lost against selling at lower cost.
    How to get the cost to 120 which is the actual cost for the work

  • Possible to do if/then scenarios?

    I work for a large company that has many sales branches throughout the US (40+). Each branch has a MPLS circuit and a local ISP. We have prioritized data that is sent over the MPLS circuit, and all other data over the ISP, with failover configured for either circuit to fail over to the other one. Right now all of the sales branches internet traffic (along with all non-priority traffic such as email) comes back thru the ISP (via a VPN tunnel) to our main location, so we can monitor the internet links. We would like configure the normal internet traffic to go out the ISP directly, but still have the email and so come back via the VPN tunnel. We know how to configure this, however, when we do this we would like to install a PC with some monitoring software on it (surf control), that way we can still monitor the internet traffic. We would like to set it up so that if the PC with Surf Control goes down, that the router will send traffic back over the VPN tunnel or MPLS traffic. So the basis of what I want to do is:
    If PC Goes Down = False, Send Traffic To PC
    If PC Goes Down = True, Send Data To VPN tunnel or MPLS circuit.
    Is it possible to do such a scenario?
    We do not currently have the budget for a pix or anything like this, so we are trying to figure it out. I have attached a very basic diagram of the basic network configuration that we have. Any suggestions would be appreciated.
    Also we do have a Ciscoworks LMS 2.6 available as well if that would help at all.

    http://www.cisco.com/en/US/products/sw/iosswrel/ps5413/products_feature_guide09186a00801d862d.html
    good luck,
    Peter

  • Using a variable in the call scenario

    I´m using ODI 10.1.3.6.8.
    I´m calling the scenario as follows:
    ./startscen CENARIO_PRINCIPAL 001 GLOBAL -v=5 GLOBAL.EVENTO=12345
    This is my CENARIO_PRINCIPAL within it calls two scenarios using the global variable GLOBAL.EVENTO.
    When I ran, appears the following error:
    "java.lang.Exception: Specified variable not found in the Repository: GLOBAL.EVENTO"
    I tried to create a step in CENARIO_PRINCIPAL, declaring GLOBAL.EVENTO (this variable is set to the most recent value).
    I ran the scenario again and appears no error, but the variable did not receive the value specified on the "./startscen CENARIO_PRINCIPAL 001 GLOBAL -v=5 GLOBAL.EVENTO=12345" .
    Can anyone help me?

    As I said, I declared the variable in CENÁRIO_PRINCIPAL and ran.
    But the variable GLOBAL.EVENTO not received the amount that I reported the call of the stage was GLOBAL.EVENTO = 12345.
    Remembering that this variable is being used within the scenarios that are executed within the CENARIO_PRINCIPAL.

  • Error while invoking a scenario from another scenario through ODIStartScen

    hi,
    my requirement is to call a scenario from another scenario. the main scenario contains an interface to get data from jms que and put that in DB and then invoke the inner scenario through ODIStartScen and am executing the scenario through an agent which is on another machine. when am trying to execute the main scenario then i get following error while invoking inner scenario in ODIStartScen step ....
    ERROR:::::
    oracle.odi.runtime.agent.invocation.InvocationException: HTTP/1.1 500 Internal Server Error
         at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:271)
         at oracle.odi.runtime.agent.invocation.support.InternalRemoteRuntimeAgentInvoker.invokeStartScenario(InternalRemoteRuntimeAgentInvoker.java:149)
         at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java:266)
         at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java:155)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1414)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1818)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:559)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:481)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$StartScenTask.doExecute(StartScenRequestProcessor.java:1040)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    the error that is in ODI server log is:
    Root cause of ServletException.
    org.springframework.jdbc.CannotGetJdbcConnectionException: Create DwgConnectConnection to master repository failed; nested exception is java.sql.SQLException: Pool connect failed : java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators, IntegrationAdministrators, AdminChannelUsers]
         at oracle.odi.core.persistence.dwgobject.DwgRepositoryConnectConnectionUtils.doGetMasterDwgConnectConnection(DwgRepositoryConnectConnectionUtils.java:93)
         at oracle.odi.core.persistence.dwgobject.DwgRepositoryConnectConnectionUtils.doGetMasterDwgConnectConnection(DwgRepositoryConnectConnectionUtils.java:49)
         at oracle.odi.core.persistence.dwgobject.DwgRepositoryConnectConnectionUtils.doGetMasterDwgConnectConnection(DwgRepositoryConnectConnectionUtils.java:58)
         at oracle.odi.core.security.SecurityManager.doODIInternalAuthentication(SecurityManager.java:348)
         at oracle.odi.core.security.SecurityManager.createAuthentication(SecurityManager.java:331)
         at oracle.odi.runtime.agent.servlet.AgentServlet.processRequest(AgentServlet.java:494)
         at oracle.odi.runtime.agent.servlet.AgentServlet.doPost(AgentServlet.java:454)
         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.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.sql.SQLException: Pool connect failed : java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators, IntegrationAdministrators, AdminChannelUsers]
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:133)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
         at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
         at com.sunopsis.sql.SnpsConnection.createConnection(SnpsConnection.java:380)
         at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgRepositoryConnectConnectionUtils.doGetMasterDwgConnectConnection(DwgRepositoryConnectConnectionUtils.java:88)
         at oracle.odi.core.persistence.dwgobject.DwgRepositoryConnectConnectionUtils.doGetMasterDwgConnectConnection(DwgRepositoryConnectConnectionUtils.java:49)
         at oracle.odi.core.persistence.dwgobject.DwgRepositoryConnectConnectionUtils.doGetMasterDwgConnectConnection(DwgRepositoryConnectConnectionUtils.java:58)
         at oracle.odi.core.security.SecurityManager.doODIInternalAuthentication(SecurityManager.java:348)
         at oracle.odi.core.security.SecurityManager.createAuthentication(SecurityManager.java:331)
         at oracle.odi.runtime.agent.servlet.AgentServlet.processRequest(AgentServlet.java:494)
         at oracle.odi.runtime.agent.servlet.AgentServlet.doPost(AgentServlet.java:454)
         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.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.sql.SQLException: Pool connect failed : java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators, IntegrationAdministrators, AdminChannelUsers]
         at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:258)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:160)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:652)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:127)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:355)
         at org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter.doGetConnection(UserCredentialsDataSourceAdapter.java:162)
         at org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter.getConnection(UserCredentialsDataSourceAdapter.java:133)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ConnectionProcessor.run(LoginTimeoutDatasourceAdapter.java:217)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    Caused By: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators, IntegrationAdministrators, AdminChannelUsers]
         at weblogic.security.service.SecurityServiceManager.seal(SecurityServiceManager.java:835)
         at weblogic.security.service.IdentityUtility.authenticatedSubjectToIdentity(IdentityUtility.java:30)
         at weblogic.security.service.RoleManager.getRoles(RoleManager.java:183)
         at weblogic.security.service.AuthorizationManager.isAccessAllowed(AuthorizationManager.java:375)
         at weblogic.jdbc.common.internal.JDBCUtil.checkPermission(JDBCUtil.java:231)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:357)
         at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:317)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:93)
         at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:106)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:149)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:652)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:127)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:355)
         at org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter.doGetConnection(UserCredentialsDataSourceAdapter.java:162)
         at org.springframework.jdbc.datasource.UserCredentialsDataSourceAdapter.getConnection(UserCredentialsDataSourceAdapter.java:133)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ConnectionProcessor.run(LoginTimeoutDatasourceAdapter.java:217)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    kindly help me out.
    thanks in advance.

    In the batch File write this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen EXT_DATA 002 GLOBAL In case you are providing the values (EXT_DATA 002 GLOBAL) as parameter
    then call the startscen this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen %1 %2 %3

  • ERROR WHILE RUNNING ODI SCENARIO FROM BAM ALERT

    We are using oracle data integrator 11g and have created an ODI Scenario and able to run the scenario from ODI studio client.
    We have done the configuration for BAM-ODI integration as mentioned in http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bam_odi.htm#BABEJIGD
    We have started ODI Agent, soa and bam servers. Created a BAM alert -> select action - Run ODI Scenario -> selected the same scenario.
    Alert ran at scheduled time but failed with following error:
    java.io.IOException : truncated data integrator frame received
    Error Message (if any)
    [2012-08-06T11:24:21.046+05:30] [bam_server1] [WARNING] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Error occured while running a ODI Scenario.
    [2012-08-06T11:24:21.250+05:30] [bam_server1] [ERROR] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Action exception: EEInstEv2 EEInstAct1 Rule
    Id: 2 exception: java.io.IOException: truncated Data Integrator Frame
    received
    [2012-08-06T11:24:21.250+05:30] [bam_server1] [WARNING] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Exception stack trace: [[
    at
    oracle.bam.eventengine.engine.event.action.RunScenario.invokeScenario(RunScena
    rio.java:145)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.runScenario(ActionP
    rocessor.java:891)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.actionHandler(Actio
    nProcessor.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
    ava:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.bam.system.Delegate$Sink.invoke(Delegate.java:80)
    at oracle.bam.system.Delegate.dynamicInvoke(Delegate.java:186)
    at
    oracle.bam.common.threading.threadpool.ThreadPoolController$PoolQueueItem.proc
    essWorkRequest(ThreadPoolController.java:155)
    at
    oracle.bam.common.threading.threadpool.ThreadPoolController$PoolQueueItem.run(
    ThreadPoolController.java:128)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java
    :886)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908
    at java.lang.Thread.run(Thread.java:619)
    Any help on this is highly appreciated...
    Thanks
    Rajdip Mukherjee

    Hi,
    Forgot to include the ODI classes RunScenario.invokeScenario() is invoking odi scenario using odi sdk api. Please see the below stack trace :-
    java.io.IOException: truncated Data Integrator Frame received
    at
    oracle.odi.sdk.invocation.internal.AgentNetworkCmd.readCmd(AgentNetworkCmd.java:303)
    at
    oracle.odi.sdk.invocation.OdiInvocation.invokeCommand(OdiInvocation.java:176)
    at
    oracle.bam.eventengine.engine.event.action.RunScenario.invokeScenario(RunScenario.java:140)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.runScenario(ActionProcessor.java:891)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.actionHandler(ActionProcessor.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Thanks
    Rajdip Mukherjee

  • Error while executing a JDBC to Idoc scenario : No standard agreement found

    Hello SAP PI Gurus, 
    I am having a JDBC to idoc Scenario .And the interface is running at 10 min of duration. 
    <SAP:AdditionalText>No standard agreement found for ,
    BS_EXT_CTBSREPDB, , BS_ERPQAS_QE1_320, http://XYZ.com/FI/FI_FI_01/Charges, FIDCC2</SAP:AdditionalText>.
    While i test the configuration...i get an error in reciever agreement as mentioned above.
    Can you pls help me in resolving this issue.
    Regards,
    Ravi

    Hi,
        I think the problem is with namespace....for IDOC the namespace will be "urn:sap-com:document:sap:idoc:messages"...but in your case it is different.....i.e http:....etc.....please check whether you 've used the same IDOC withe above mentioned namespace in all the configuration objects like interface determination, receiveragreement etc.....
    Thanks
    Priyanka

  • Error while executing a scenario from CMD

    I am trying to execute a scenario from CMD using the starctscen command.
    when I use the below command
    E:\OraHome_ODI\oracledi\bin\startscen EXT_DATA 002 GLOBAL
    it is executing correctly
    but I tried to create a sceduler for the execution where i used the below command
    C:\Documents and Settings\Desktop>"E:\OraHome_ODI\oracledi\bin\startscen.bat" EXT_DATA 002 GLOBAL
    and it is giving me the following error
    The system cannot find the path specified.
    OracleDI: Starting scenario EXT_DATA 002 in context GLOBAL ...
    'oracle.odi.Agent' is not recognized as an internal or external command,
    operable program or batch file.
    can someone help me on this.
    Thanks,
    Sri

    In the batch File write this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen EXT_DATA 002 GLOBAL In case you are providing the values (EXT_DATA 002 GLOBAL) as parameter
    then call the startscen this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen %1 %2 %3

  • Interesting scenario- user facing error while deleting a sales order

    Hello All,
    I have one interesting scenario and want feedback from your side as soon as possible
    Scenario-
    One of my clients is facing a problem while deleting a sales order.
    the sales order he is trying to delete is the old order created in 2007.
    when i see the document flow the user has created the export order, then delivered it, invoiced and sent it to accounting, accounting document is also cleared. then he cancelled the invoice, reverse PGI and deleted the delivery. the status of the sales order system is showing is being processed. but please note in this case after reversing PGI and deleting a delivery the delivery document disappears from the document flow.
    document flow looks like this
    Order - 200004715                     Being processed
    invoice- 700005310                    completed
    accounting 700005311                 cleared
    Cancel Invoice 700005315            completed
    Accounting 700005316                 cleared
    Now, in 2008 user is trying to delete the sales order but he is unable to do the same. system is giving him message "unable to delete sales order because of subsequent document 70005310 (which is invoice number)"
    Can somebody please throw some light on this problem.
    Thanks in advance.

    Hi,
    As fas as I know, this is standard system behaviour. The reason - you have done PGI (which has created a material document as well as accounting doc) and invoiced & reversed (which again has created accounting documents & rversal documents). All these documents are referencing the sales order.
    If you delete sales order, sales order number gets deleted from VBAK /VBAP tables.
    Hence, in relational data base scenario (meanin SAP in this context), deletion of sales order after creation of subsequent documents is not feasible.
    Hope it clarifies the issue.
    Regards
    Murali

Maybe you are looking for