Pick up Files based on Timestamp???.

HI All,
Is it possible to pick up the files in the order of which they are put in a shared folder ?.
Our client system will put the xml files in a shared folder with timestamps..PI will pick these files one by one..but if the PI server is down.. the files will keep coming in the shared folder from the client system..and when PI come back up they need to be picked in the order in which they have been put according to timestamp.
I'am using the NFS functionality.
I dont want to output files from PI based on timestamp added.. I want to pick files up based upon sender timestamp.
Is this funcationality supported in PI?.
Thanks.

HI
You can write script to do this. Script can copy files based on time stamp from the folder where client system is putting the file to the folder PI is poling based on timestamp.
With this as Ratan said. If the file creation date for file system is in date and time format(timestamp) File processing sequence by Date can help. It process file starting from oldest file.
Thanks
Gaurav

Similar Messages

  • Pick a file based upon its extension

    Hi Experts,
    I have a requirment. I have to pick a file based upon its extension, i.e., the file having a particular extension, should be picked up before fiiles having a diferent extension.
    Is this possible using only the adapter configuration?
    Thanks and Regards,
    Sanjeev.

    Hi Sanjeev ,
    Have a look at following PDF .These will be helpful to create your Road map
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4f61fddf-0601-0010-7ab5-fb749538f6ab
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d458a870-0601-0010-caab-b99c79741964
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    BPM Steps..
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/frameset.htm
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    Reward points if it is useful
    Thanks
    Sunil Singh

  • How to pick the file which is created with current date

    Hello All,
    I have an FTP server where files are created with current date as PO_CONFIRM_20100701.txt.
    Need to pick the file based on current date. How to pick the above file format using file sender adapter. i.e what file pattern can we use so that file will be picked only on today's date
    Regards,
    Sreenivas.

    Hi Srinivas,
    It depends upon the OS you are using. If unix you can see an example script here:
    http://www.computing.net/answers/dos/batch-file-to-rename-files-by-date/5517.html
    If windows an example here:
    http://en.kioskea.net/forum/affich-87157-finding-and-using-file-date-in-batch-command
    You may need to change slightly to fit your exact requirements. But this would make you to start. Else you can also google to get the script. Here is one link:
    http://www.google.com/#hl=en&source=hp&q=scripttorenamefileshavingtodaysdate&aq=f&aqi=m1&aql=&oq=&gs_rfai=CRE9SwTMsTNjiDpzGhgTm65iFCwAAAKoEBU_QC2i-&fp=e0fa4b5da4f245a4
    Regards,
    ---Satish

  • Picking files based on the requested URL

    Hi Experts
    I have a requirement where I need to pick image files from SAP DMS server based on the URL requested.
    The scenario :
    Third-party sends a URL  corresponding to a particular image in DMS as request and PI needs to Pick the image
    file and send it as response.
    Due we need BPM? How to set up sender file adapter source directory as  the file name/directory   to be picked is dynamic in nature and there is no specifc pattern .We need to pick the exact file base on the Unique URL.
    Can we do this requirement in a synchronous interface by using HTTP or SOAP attachments for image? What about
    the performance impact as we have img files here.
    Regards,
    Srinivas
    Edited by: Srinivas on Sep 27, 2010 11:36 AM

    Third-party sends a URL corresponding to a particular image in DMS as request and PI needs to Pick the image
    file and send it as response.
    BPM would be required....We had a similar requirement wherein a URL was given at runtime to PI....then PI had to call the location and get back the details and we used SOAP for this (SYNC Call to the URL using SOAP channel from the BPM).
    Can we do this requirement in a synchronous interface by using HTTP or SOAP attachments for image?
    Not sure how the attachment will function inside a BPM....in my case I got the details as part of the message...even it was an image but it was stored as a base64 encoded message.
    Regards,
    Abhishek.

  • Sender File adpater to Pick Two files at a time based on the file name

    Hi Everyone,
    I have a scenario where I need to pick two files at a time using file adapter where the two files names have a common string in between their names.For example , the file names can be sets like
    H123.txt and L123.txt
    H345.txt and L345.txt.
    Now how do we handle this in the File Adapter ?

    Anu,
    Two approaches.
    1.     Use BPM: use a collect pattern to pick those files: L and H files , use multi mapping to merge those files and map to IDoc. Constraint is that there must be a mandatory correlation field in both the files. Say a same po id  in L and H file.
    2.     Use an Adapter module with additional files option in file Adapter. Operate on the Main payload and attachment inside your module code to get a combined contents of both files and proceed.
    Module is preferable in terms of performance, but maintenance is difficult. Deployment after each changes, transport issues, etc.
    BPM is resource intensive, but easy to maintain, transport.
    Choose based on your requirement.
    Regards,
    Sudharshan N A

  • How to pick the multiples based on file size

    Hi All,
    my sender file adapter needs to pick up 5 files based on file size.
    for example 1file size is 500kb,2nd file size 300kb,3rd file size 400kb, 4file size 100kb and 5file size 600kb.
    here my requirement is, my file adapter needs to pick in the below order like 5th file,1st file,3rd file 2nd file and 4th file.
    means based on file size, i need to pick up my file adapter.
    could you please ang inputs on this requirement.
    Thanks & Regards,
    AVR

    Hi AVR,
    for case 2:
    1. At specific time each day  "23:58:00" hours ,count the number of files in directory say "c:\apps\acm".
    2. sort the files on basis of their size.
    3. place the files one by one after definite  time interval (more than polling time of the sender communication channel).
    in target directory say "c:\apps\acm1" from where PI server  picks up the files for further processing. The file with smallest size is placed last.
    4. In this case you need to ensure all files are present in the directory "c:\apps\acm" before "23:58:00" hours.
    for case 2  java code
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    public class sortFilesOnSpecificTime {
    * @param args
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    try
    * In Unix/Linux OS, dir1="/usr/apps/test"  etc
    int pollingInterval=10,sleepTime=1*60;
    String dir1="c:\\apps\\acm";
    String dir2="c:\\apps\\acm1";
    File fread=new File(dir1);
    File fwrite=new File(dir2);
    if(fread.canRead()==false)
    System.out.println("error: "+dir1+" does not have read permission. Program Terminates.");
    return;
    if(fwrite.canWrite()==false)
    System.out.println("error: "+dir2+" does not have write permission. Program Terminates.");
    return;
    String fileNames[],fileNamesOut[];
    long fileSize[];
    int i,j;
    byte b[];
    int t=4;
    Calendar cal;
    int hour24,min,fileCopyHour=23,fileCopyMin=58;
    long waitSeconds=1,currentTime=0;
    while(t>0)
    cal = new GregorianCalendar();
    hour24 = cal.get(Calendar.HOUR_OF_DAY);     // 0..23
    min = cal.get(Calendar.MINUTE);             //0..59
    System.out.println("current time="+hour24+":"+min);
    /*loop unless time reaches a specific predetermined value
    * predetermined values are provided by values
    * fileCopyHour=8,fileCopyMin=30 i.e say 08:30 hours
    currentTime=(hour24*60+min)*60;
    waitSeconds=(fileCopyHour*60+fileCopyMin)*60 - currentTime;
    if(waitSeconds>0)
    * in case you wanna to make this thread sleep for
    * say sleepTime(10) minutes before it checks the files once again
    * because looping continuously causes wastage of CPU cycles.   
    Thread.sleep(waitSeconds*1000);
    //read list of files
    fileNames=fread.list();
    if(fileNames.length;=0)
    * time is up but there are no file
    * in dir1 to copy. Then this program
    * goes to sleep for some time and
    * checks only at 11:55 hours. That is
    * end of the day
    continue;
    fileSize=new long[fileNames.length];
    fileNamesOut=new String[fileNames.length];
    //read their sizes
    for(i=0;i<fileNames.length;++i)
    fileNamesOut<i>=fileNames<i>;
    fileNames<i>=dir1+System.getProperty("file.separator";)+fileNames<i>;
    fileSize<i>=new File(fileNames<i>).length();
    System.out.println(fileNames<i>+" size="+fileSize<i>);
    //sorting on basis of file size descending order
    long value;
    String temp;
    for(i=1;i<fileSize.length;++i)
    value=fileSize<i>;
    temp=fileNames<i>;
    for(j=i-1;j>=0 && fileSize[j]<value;--j)
    fileSize[j+1]=fileSize[j];
    fileNames[j+1]=fileNames[j];
    fileSize[j+1]=value;
    fileNames[j+1]=temp;
    //now copy files to dir2
    b=new byte[512];
    for(i=0;i<fileNames.length;++i)
    System.out.println(fileNames<i>+" size="+fileSize<i>);
    for(i=0;i<fileNames.length;++i)
    File f=new File(fileNames<i>);
    FileInputStream in=new FileInputStream(f);
    FileOutputStream out=new FileOutputStream(dir2+System.getProperty("file.separator";)+fileNamesOut<i>);
    int len=0;
    while(2>1)
    if((len=in.read(b))<0)
    break;
    out.write(b,0,len);
    in.close();
    //delete files after copying from dir1
    f.delete();
    out.close();
    //put each file after polling interval is over
    Thread.sleep(pollingInterval*1000);
    catch(Exception e)
    e.printStackTrace();
    The code runs in infinite loop. You need to run them in command line in DOS environment as you indicated that you OS is WIN XP.  I have a few print statements which I kept for debugging, you can safely remove them and run the codes. This code is independent of the Operating System you are using. Only change is required in values of "dir1","dir2", timings and file count, which I think you can take care easily.
    Hope this solves your problem.
    regards
    Anupam

  • Reading Files from an FTP location based on Timestamp

    Hi,
    I have a requirement of reading files from an FTP location. The files should be read in the order they were saved in the folder. Can someone tell me how to solve this?
    Thanks,
    Ravi

    Hi Arik,
    Thanks for your reply. I tried doing what u said, but it isn't working. My requirement is to List the files in the folder using FTP adapter and get the file name with the least file stamp from the FTP adapter and pass the FileName dynamically to another FTP adapter which reads the file based on the FileName. When i tested after including the property (for listing the files) you mentioned, it is giving the following error (copied from flow trace):
    <messages>
    <input>
    <Invoke_getFileListFTP_FileListing_InputVariable>
    <part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/APP_SequentialFileTransfer/PRJ_SequentialFileTransfer/WS_GetFileList_FTP"/>
    </part>
    </Invoke_getFileListFTP_FileListing_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured
    during invocation of JCA binding: "JCA Binding execute of
    Reference operation 'FileListing' failed due to: Exception
    occured when binding was invoked. Exception occured during
    invocation of JCA binding: "Could not instantiate
    InteractionSpec
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec due
    to: Cannot set JCA WSDL Property. Error while setting JCA
    WSDL Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property. ". The invoked JCA
    adapter raised a resource exception. Please examine the above
    error message carefully to determine a resolution. ". The
    invoked JCA adapter raised a resource exception. Please
    examine the above error message carefully to determine a
    resolution.</summary>
    </part>
    <part name="detail">
    <detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL
    Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property.</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    Thanks,
    Ravi
    Edited by: Ravi Santosh on Apr 24, 2012 11:02 PM

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Problem using file based JNDI with JMS Bridge, WL 6.1sp3

              I am trying to connect an MQ queue to a Weblogic JMS queue using the JMS bridge,
              WLS6.1sp3. I have the CR081404_61sp3.jar and CR081511_61sp3.jar patches.
              I am having trouble getting the bridge to look up the MQ queue in the file based
              JNDI. According to the log it is trying to use a weblogic.jndi.WLInitialContextFactory
              instead of a com.sun.jndi.fscontext.RefFSContextFactory, which is what it is configured
              to use. I am getting the following error:
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              Bridge" is getting the connections to the two adapters.>
              <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              RUNTIME! Bridge Provd Messaging Bridge In getConnections: isStopped = false>
              <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              RUNTIME! Bridge Provd Messaging Bridge Getting source connection: sourceConnSpec
              = weblogic.jms.adapter.JMSConnectionSpec@27166f>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              Principal for Container Managed Security Context.>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              Principal for Container Managed Security Context.>
              <Sep 29, 2002 12:16:22 PM EDT> <Warning> <Connector> << Weblogic Messaging Bridge
              Adapter (XA) > ResourceAllocationException of javax.resource.ResourceException:
              ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest on createManagedConnection.>
              <Sep 29, 2002 12:16:22 PM EDT> <Error> <Connector> <Error granting connection
              request.>
              <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              Bridge" failed to connect to the source destination and will try again in 25 seconds.
              (javax.resource.spi.ResourceAllocationException: CreateManagedConnection Error:
              ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest)>
              <
              The configuration of the bridge, printed out in the log, is:
              <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              STARTUP! Bridge Provd Messaging Bridge's source properties are:
              AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              Classpath=null
              ConnectionFactoryJNDIName = PMS.mqQcf
              ConnectionURL = file:/opt/mqm/java/mq-jndi
              InitialConnectionFactory = com.sun.jndi.fscontext.RefFSContextFactory
              DestinationType = Queue
              DestinationJNDIName = PMS.mqProvdRequest>
              <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              STARTUP! Bridge Provd Messaging Bridge's target properties are:
              AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              Classpath=null
              DestinationType = Queue>
              Am I correct in assuming it should be using the fscontext connection factory?
              Why is it using the weblogic one?
              Jason
              

    CR081511_61sp3.jar patch should fix the problem. Make sure that the
              jar file is picked up. It should be put before other weblogic jar files.
              You should be able to tell if it is picked up by looking at the first
              couple of lines of your server log file.
              Dongbo
              Jason Kriese wrote:
              >
              > I am trying to connect an MQ queue to a Weblogic JMS queue using the JMS bridge,
              > WLS6.1sp3. I have the CR081404_61sp3.jar and CR081511_61sp3.jar patches.
              >
              > I am having trouble getting the bridge to look up the MQ queue in the file based
              > JNDI. According to the log it is trying to use a weblogic.jndi.WLInitialContextFactory
              > instead of a com.sun.jndi.fscontext.RefFSContextFactory, which is what it is configured
              > to use. I am getting the following error:
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              > Bridge" is getting the connections to the two adapters.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > RUNTIME! Bridge Provd Messaging Bridge In getConnections: isStopped = false>
              > <Sep 29, 2002 12:16:22 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > RUNTIME! Bridge Provd Messaging Bridge Getting source connection: sourceConnSpec
              > = weblogic.jms.adapter.JMSConnectionSpec@27166f>
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              > Principal for Container Managed Security Context.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to locate context: java:/comp/env/wls-connector-resref>
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <Connector> <Unable to determine Resource
              > Principal for Container Managed Security Context.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Warning> <Connector> << Weblogic Messaging Bridge
              > Adapter (XA) > ResourceAllocationException of javax.resource.ResourceException:
              > ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              > url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest on createManagedConnection.>
              >
              > <Sep 29, 2002 12:16:22 PM EDT> <Error> <Connector> <Error granting connection
              > request.>
              > <Sep 29, 2002 12:16:22 PM EDT> <Info> <MessagingBridge> <Bridge "Provd Messaging
              > Bridge" failed to connect to the source destination and will try again in 25 seconds.
              > (javax.resource.spi.ResourceAllocationException: CreateManagedConnection Error:
              > ConnectionFactory: failed to get initial context (InitialContextFactory =weblogic.jndi.WLInitialContextFactory,
              > url = file:/opt/mqm/java/mq-jndi, user name = guest, password = guest)>
              > <
              >
              > The configuration of the bridge, printed out in the log, is:
              >
              > <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > STARTUP! Bridge Provd Messaging Bridge's source properties are:
              > AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              > Classpath=null
              > ConnectionFactoryJNDIName = PMS.mqQcf
              > ConnectionURL = file:/opt/mqm/java/mq-jndi
              > InitialConnectionFactory = com.sun.jndi.fscontext.RefFSContextFactory
              > DestinationType = Queue
              > DestinationJNDIName = PMS.mqProvdRequest>
              > <Sep 29, 2002 12:16:00 PM EDT> <Debug> <MessagingBridge> <Messaging Bridge Debugging
              > STARTUP! Bridge Provd Messaging Bridge's target properties are:
              > AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDIXA
              > Classpath=null
              > DestinationType = Queue>
              >
              > Am I correct in assuming it should be using the fscontext connection factory?
              > Why is it using the weblogic one?
              >
              > Jason
              

  • B2b unable to pick the file from xml gateway

    Hi All,
    I am taking a scenario where B2B picks the files from xml gateway and drop the files in FTP folder. I modified the XML gateway inbound and outbound, i has given my user credentials(unmae, host ,pwd ,sid, port). In agreement in the place of internal delivery channel i has given XML gateway outbound.
    Still its unable to pick the files from xml gateway.
    Clarify my understanding please
    While b2b picks the files from xml gateway, It will pick from ECX_Inbound or ECX_Outbound?
    Here i am attaching the logs:
    2010.01.15 at 07:32:51:101: B2BStarter thread: B2B - (DEBUG) B2BStarter - Context Initialized
    2010.01.15 at 07:32:56:366: B2BStarter thread: B2B - (DEBUG) B2BStarter - Start B2B
    2010.01.15 at 07:32:56:369: B2BStarter thread: B2B - (DEBUG) B2BStarter - Starting B2B
    2010.01.15 at 07:32:56:392: B2BStarter thread: B2B - (DEBUG) B2BStarter - configuration obtained
    2010.01.15 at 07:32:56:395: B2BStarter thread: B2B - (DEBUG) B2BStarter - clear global cache
    2010.01.15 at 07:32:56:547: B2BStarter thread: B2B - (DEBUG) XEngine not running. So no need to clear cached objects inside XEngine.
    2010.01.15 at 07:32:56:821: B2BStarter thread: B2B - (INFORMATION) Repository:print: [0] HL7 over MLLP Exchange
    2010.01.15 at 07:32:56:824: B2BStarter thread: B2B - (INFORMATION) Repository:print: [1] EDI X12 over AS1
    2010.01.15 at 07:32:56:826: B2BStarter thread: B2B - (INFORMATION) Repository:print: [2] Custom Document over Generic Exchange
    2010.01.15 at 07:32:56:829: B2BStarter thread: B2B - (INFORMATION) Repository:print: [3] EDI EDIFACT over Generic Exchange
    2010.01.15 at 07:32:56:832: B2BStarter thread: B2B - (INFORMATION) Repository:print: [4] RosettaNet over RNIF
    2010.01.15 at 07:32:56:835: B2BStarter thread: B2B - (INFORMATION) Repository:print: [5] EDI X12 over Generic Exchange
    2010.01.15 at 07:32:56:837: B2BStarter thread: B2B - (INFORMATION) Repository:print: [6] Custom Document over MLLP Exchange
    2010.01.15 at 07:32:56:840: B2BStarter thread: B2B - (INFORMATION) Repository:print: [7] Custom Document over AS1
    2010.01.15 at 07:32:56:842: B2BStarter thread: B2B - (INFORMATION) Repository:print: [8] EDI EDIFACT over AS1
    2010.01.15 at 07:32:56:845: B2BStarter thread: B2B - (INFORMATION) Repository:print: [9] HL7 over Generic Exchange
    2010.01.15 at 07:32:56:848: B2BStarter thread: B2B - (INFORMATION) Repository:print: [10] Custom Document over Internet
    2010.01.15 at 07:32:56:851: B2BStarter thread: B2B - (INFORMATION) Repository:print: [11] Custom Document over ebMS
    2010.01.15 at 07:32:56:853: B2BStarter thread: B2B - (INFORMATION) Repository:print: [12] EDI X12 over Internet
    2010.01.15 at 07:32:56:856: B2BStarter thread: B2B - (INFORMATION) Repository:print: [13] EDI EDIFACT over Internet
    2010.01.15 at 07:32:57:649: B2BStarter thread: B2B - (DEBUG) Repository:constructCertSQL SELECT cert.ID, cert.CLASSTYPE FROM TIP_Certificate_ra cert, TIP_Party_ra party, TIP_DocumentExchange_ra docex WHERE cert.ID = docex.signingcredential AND cert.tradingpartner = party.ID AND party.ishosted != 'Y'
    2010.01.15 at 07:32:57:785: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin:initialize Enter
    2010.01.15 at 07:32:58:077: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin:initialize Exit
    2010.01.15 at 07:32:58:824: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Enter
    2010.01.15 at 07:32:58:827: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize resetListener = true
    2010.01.15 at 07:32:58:831: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initdcx = true
    2010.01.15 at 07:32:58:891: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initialize TPAProcessor
    2010.01.15 at 07:32:59:010: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Clear TPA Cache
    2010.01.15 at 07:32:59:013: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initialize DataContext. Pool Size 0
    2010.01.15 at 07:32:59:038: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:initialize Treat Response as Request = false
    2010.01.15 at 07:32:59:041: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:initialize Exit
    2010.01.15 at 07:32:59:043: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize initialize Transport
    2010.01.15 at 07:32:59:046: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:initialize Initialize Transport Logger.
    2010.01.15 at 07:32:59:059: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:initialize Transport LogLevel = ERROR
    2010.01.15 at 07:32:59:294: B2BStarter thread: B2B - (DEBUG) Repository:Repository:getDeliveryEndPointList() Wallet Location /apps/elshad4/aelshad4/elshad4_OracleB2B/Apache/Apache/conf/ssl.wlt/default/ewallet.p12
    2010.01.15 at 07:32:59:297: B2BStarter thread: B2B - (INFORMATION) Repository:getDeliveryEndPointList: No Archive dir
    2010.01.15 at 07:32:59:300: B2BStarter thread: B2B - (INFORMATION) Repository:getDeliveryEndPointList: marker :false
    2010.01.15 at 07:32:59:314: B2BStarter thread: B2B - (INFORMATION) Repository:getDeliveryEndPointList: Putting ftp://elshad1.emerson.com//ftpdata/elshad1/ice/infile/850/PO
    2010.01.15 at 07:32:59:322: B2BStarter thread: B2B - (INFORMATION) oracle.tip.adapter.b2b.transport.TransportInterface:initialize: Props: ftp://elshad1.emerson.com//ftpdata/elshad1/ice/infile/850/PO file.receiver.wallet_location = /apps/elshad4/aelshad4/elshad4_OracleB2B/Apache/Apache/conf/ssl.wlt/default/ewallet.p12
    file.receiver.wallet_password = *****
    file.receiver.polling_interval = 5
    file.receiver.path = /ftpdata/elshad1/ice/infile/850/PO
    file.receiver.marker = false
    marker = false
    ccc = false
    file.receiver.channel_mask = None
    file.receiver.minimum_age = 0
    filename_format = %FROM_PARTY%_%TIMESTAMP%.dat
    file.receiver.van = false
    file.sender.channel_mask = None
    file.receiver.user = eiced1
    PROTOCOL_ENDPOINT = null
    file.receiver.password = *****
    file.receiver.preserve_filename = false
    transport_callout_waittime = 30
    preserve_filename = false
    file.receiver.ccc = false
    van = false
    polling_interval = 5
    2010.01.15 at 07:32:59:491: B2BStarter thread: B2B - (DEBUG) initialize TransportReceiver: [Emerson_Robin_FTP_TransportServer < ftp > < Emerson >]
    2010.01.15 at 07:32:59:858: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.AppTransportInterface:initialize Initialize AppTransport Logger.
    2010.01.15 at 07:32:59:864: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.AppTransportInterface:initialize AppTransport LogLevel = ERROR
    2010.01.15 at 07:32:59:949: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 Outbound - initialize
    2010.01.15 at 07:32:59:953: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 Obtaining outbound connection...
    2010.01.15 at 07:32:59:956: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 outbound connect string: jdbc:oracle:thin:@essdbdu31.emrsn.com:36001:ROBIND1
    2010.01.15 at 07:32:59:960: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:32:59 GMT+00:00 2010 outbound username: apps
    2010.01.15 at 07:33:04:319: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 07:33:04 GMT+00:00 2010 Outbound - initialize exit
    2010.01.15 at 07:33:04:322: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Enter
    2010.01.15 at 07:33:04:326: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Exit
    2010.01.15 at 07:33:04:329: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run Thread start
    2010.01.15 at 07:33:04:332: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Exit
    2010.01.15 at 07:33:04:335: B2BStarter thread: B2B8:15:32:157: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:32 GMT+00:00 2010 inbound username: apps
    2010.01.15 at 08:15:33:757: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 inbound initialize exit
    2010.01.15 at 08:15:33:761: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 Outbound - initialize
    2010.01.15 at 08:15:33:764: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 Obtaining outbound connection...
    2010.01.15 at 08:15:33:767: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 outbound connect string: jdbc:oracle:thin:@essdbdu31.emrsn.com:36001:ROBIND1
    2010.01.15 at 08:15:33:770: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:33 GMT+00:00 2010 outbound username: apps
    2010.01.15 at 08:15:34:473: B2BStarter thread: B2B - (DEBUG) : Fri Jan 15 08:15:34 GMT+00:00 2010 Outbound - initialize exit
    2010.01.15 at 08:15:34:476: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Enter
    2010.01.15 at 08:15:34:479: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:startListen Exit
    2010.01.15 at 08:15:34:481: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run Thread start
    2010.01.15 at 08:15:34:484: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize Exit
    2010.01.15 at 08:15:34:487: B2BStarter thread: B2B - (DEBUG) B2BStarter - B2B initialized
    2010.01.15 at 08:15:35:928: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run initialize Enter
    2010.01.15 at 08:15:36:132: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run initialize B2BListen turned off, will not listen on IP_OUT_QUEUE for messages
    2010.01.15 at 08:15:36:139: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:run start listening on message
    regards
    cnu

    Anuj,
    The log which i placed on top, thats the complete log and DC log is given below
    2010.01.18 at 12:58:06:117: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:11:130: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:16:143: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:21:153: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:26:169: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:31:164: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:36:173: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:41:182: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:46:194: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:51:210: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:58:56:217: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:01:244: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:06:254: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:11:256: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:16:283: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:21:276: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:26:285: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:31:297: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:36:314: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:41:324: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:46:327: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:51:341: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 12:59:56:352: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered.
    2010.01.18 at 13:00:01:359: Thread-14: (ERROR) FTPClient.listNames(): unexpected 550 is encountered

  • SAP PI 7.3.1 File Adapter - Select file based on content

    Hi all,
    I have a scenario where I need to process a file differently based on the content within the payload.
    For example a file called File_IS,xml is sent to a folder that PI is polling. Within this file is a field <TYPE> which I want to use to determine whether the file should be used  . I have two mapping scenarios that each have a file sender communication channel polling for the same file name "File_IS.xml" .  This is because a message will come from a 3rd party with the same file name but the content can be different meaning different mapping scenarios are required.  IF Com_Channel_1 sees the File I only want it to be picked up if say <TYPE> = 'A' - if not then Com_Channel_1 should do nothing with this file.  Similarly Com_Channel_2 should only use the file if <Type> = 'B'. 
    Scenario:
    File_IS.xml       -> File sender 1  -> <TYPE> = 'A'  - Pick up file - do mapping - archive.  <TYPE> <> 'A' - do nothing and leave file in folder
                          ->  File sender 2  -> <TYPE> = 'B'  - Pick up file - do mapping - archive.  <TYPE> <> 'B' - do nothing and leave file in folder
    Is the above possible at all ?
    Thanks for your time.
    Best Regards.
    Gary

    Hello,
    In case content of input files are different (for both the scenarios) even then also u can use one file sender channel. Check below approach:
    Interface Determination condition
    Thanks
    Amit Srivastava

  • Sener file adapter has read/pick the files first in first out method.

    HI
    In my Interface I am Using Sender as File adapter. As per my requirement Sender file adapter has to read the file from file directory. This directory having 1000u2019s of files with some files are same name (time stamp is different) and some files are different name here file adapter has to pick the file with mentioned name   in File sender adapter like ZMPSMSGSTATUSMST-.xml .
    But source file name is like <TABLENAME>-<TIME_STAMP>.XML (ZMPSWRKFLOWHIST-20090527-150522-628) in file directory.
    The file adapter in XI will poll to this directory and picks the file in first- in first-out by sorting according to timestamp.
    To do this configuration what I have to do in sender file adapter please give me your valuable inputs.

    HI Abhi,
    Thank you for your spot replay.
    I tested now but i am geting below error.
    Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID f4ca4f86-9c5d-4bdd-1fb1-a6bd7cda99a8(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: [NWMss][SQLServer JDBC Driver][SQLServer]Violation of PRIMARY KEY constraint 'PK__XI_AF_MSG__491A1D0B'. Cannot insert duplicate key in object 'dbo.XI_AF_MSG'..
    Could not archive file 'E:\file\in\ZMPSMSGSTATUSMST-20090527-150522-628.xml' after processing
    but i am able to see this file in Archive foleder. once file is archivied sucessfully the same file is delted from source directory?
    I given processing parametes queue name is TEST.
    Thanks
    srinivas
    Edited by: srinivasreddy p on May 28, 2009 8:43 AM
    Edited by: srinivasreddy p on May 28, 2009 8:52 AM

  • How to configure Sender File Adapter to pick couples files in order !!

    Hi Folks,
    I am really looking for one requirement like, Sender file adapter has to pick multiple files by file name based with some time gap? Can we?
    I have got one BPM in this, I have tried with Process mode : Name and Date, with wait step on BPM, but no use. The way how PI behaving, if 40 files in file directory, it is picking all files in one shot. Start processing but not in order.
    The problem is on Receiver system side. The receiver system is SNC system, if old data receives later than earlier date data; we get data obsolete application error.
    Ex: If I receive 25th and 26th files, first I need to process 25th first on PI sends to SNC, I need to give some time gap and pick another file or even  PI picks and process 26th file, no problem but  I need to give some time gap to send SNC to this 26th date file?
    Please how guys, throw me your great ideas
    Thanks in advance!!
    Regards
    San

    @ Sandhya
    If there are 40 files , can you please specify how many types of files are ther like say first A type shud be picked then B type then C type and so on so forth ?
    LIke in my case I had only three types of files file1 and file 2 file 3
    and in the directory also only three  files will be placed at a time
    you need to have some logic to separate the type of files in  differnt folders and then  process them
    @ farooq yes . it will create problem if 40 files are kept at a time .
    Regards
    Ninad

  • Want to pick old files first (First In First Out  mode)

    Hi,
      My scenario is File to Idoc Scenario getting multiple  files in batch mode  into  source FTP server. But  i want to pick which file has first loaded into ftp server that particular file only i want to process first.
    my source file name doesn't contain any Timestamp value . but by considering the FTP server timings we  have to pick the file.
    From the source I'm getting files like ( Jain_1.xml , Jain_2.xml ,Jain_3.xml.... ect...) so in my sender adapater i have mentioned that file name as Jain.xml*
    For picking earliest file suggest me some solution.
    for this how can achive this. and what are the things we have to do. 
    Regards
    Jain

    Hi Jain,
    I havent exactly tried doing this one. I used file*.txt once but i didn't need it to pick in any order. My scenario had to pick all the files...
    but i found this for you.....
    File Adapter , Processing Sequence
    EDIT :
    picking files in Order?
    Read the above link Jain. File adapter does not give a processing sequence for FTP protocol.
    But it reads files in alphabetical order. So you have 2 choices.
    1> Either use NFS to run your scenarios
    2> Else rename your files to Jain_a.xml, Jain_b.xml, Jain_c.xml. This way they will be in alphabetical order and hence will be picked in the order you want.
    If you want to rename your files dynamically at runtime. Look at the variable substitution concept.
    That can be found here...
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    To learn more about it...just search with the string variable substitution in the forums and you will find answers.
    Best Regards,
    Kshitij
    Edited by: Kshitij Sharma on Feb 3, 2009 9:12 AM

  • BPM - merge files based on file name

    Hi All,
    i need to collect two source files based on the file name in BPM and then process it.
    Lets say, i need to collect a header file and a items file. but any point of time, there can be more than one header and more than one item file in the source folder. and i need to collect the header and its corresponding/related item file.
    can anyone help me how to achieve it in BPM? whats the correlation i need to give? is it possible to have a java code executed in BPM?
    Is it possible to take care of this at adapter level itself while picking the file? if so, whats the file name scheme can i give?
    Faster reply is very much appreciated.
    Thanks n regards,
    Rashmi

    hi,
    we can have the header file as header and item file as item. basically based on our convenient we can suggest the file name to the sender. so scheme can be anything that fits our requirement

Maybe you are looking for

  • Help for runtime change in list item

    hi i have created a tabuler form and have list_items on it i want when i select category monitor then in next list i get monitor's serial numbers in next record when i select printer then in next list i get printer's serial numbers i had tried it on

  • Check field values wad

    Hi everyone, I'm working on a template in wad and I have to check whether the user has choosen values in different dropdown boxes or not. How do I do this? I tried different things with the command wizzard and javascript but don't know how to impleme

  • Text/Character Counter

    It quite annoys me that the iPhone doesn't have this very simple feature. Because you can type 'normally' with a full keypad available, I find it very easy to write long text messages that may span 2 or 3 texts, which was not the case when I had a no

  • Consume ABAP Webservice using AJAX javascript

    Hi, We created webservice for  ABAP BAPI. And I want to consume this using AJAX javascript. But I am getting "Access Denied" javascript error. Please let me know how to pass the credentials while trying to consume this webservice I tried below code,

  • I have installed the premiere pro app but its not getting launched

    i have installed the premiere pro app but its not getting launched. I have installed a trial version and it took one full night to get installed. it finally got installed in the morning but now its not getting launched. please help me out with whats