Trigger File Option in SFTP Advantco Sender Adapter

Hi ,
What is the purpose of Trigger file option in sender SFTP adapter?When i enabled Advance selection for source file we have this functionality.Can i use this option to delete the multiple files in the same directory instead of using File Name Mask.
We have scenario to delete 4 files from application server in that only one file should be sent to partner and the rest should be delete from application server.
Actual solution is to use to use script to delete the rest of the files do we have any other alternative.
Thanks

Hi,
Another alternativet is to write your own customer adapter module and using java programming you can delete remaining 3 files. This is bit complex comapre to script writing but one advantage is with adapter module is that, you can provide the deteted file names with time stamp in the audit log of XI message, which will help in troublshooting if some issue happens.
Regards,
RK

Similar Messages

  • Issues  in  File Content Conversion  in a Sender Adapter

    Hi Folks ,
    The XMl Structure of my input file is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:file_sender_mt xmlns:ns="urn:filetofiledemo">
      <recordset>
        <data>
          <name />
          <city />
          <age />
        </data>
        <adress>
          <fnaame />
          <lanme />
        </adress>
      </recordset>
    </ns:file_sender_mt>
    In my file conversion paramaters i have mentioned
    data.fieldSeparator ,
    data.fieldNames name,city,age
    adreess.fieldSeparator ,
    adreess.fieldNames fnaame,lanme
    ignoreRecordsetName  true
    recordset.fieldSeparator ,
    data.endSeparator ,
    I fail to understand when in my input file
    i give
    1,2,3
    4,5
    ie value of data and adrees on diff lines it works fine
    bt when i give the imput as 1,2,3,4,5
    it fails in adapater
    giving the exception
    Sender Adapter v1014 for Party '', Service 'filetofile_bs':
    Configured at 12:11:43 2006-07-18
    Last message processing started 05:22:34 2006-07-19, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'data':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
      last retry interval started 05:22:34 2006-07-19
      length 10,000 secs
    I dont understand why i am getting this error as my data.endSeparator is ,
    any inputs on this would be of grt help 
    Thanks
    Amit

    Mam if you look at my XML
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:file_sender_mt xmlns:ns="urn:filetofiledemo">
      <recordset>
        <data>
          <name />
          <city />
          <age />
        </data>
        <adress>
          <fnaame />
          <lanme />
        </adress>
      </recordset>
    </ns:file_sender_mt>
    I have 5 paramaters
    name ,city ,age , fnaame , lname
    and i am pasing those 5

  • File not getting picked with Sender Adapter

    Hello Experts,
    i have configured file sender adapter which is polling configured directory every 60 sec. But i could see file not getting picked up. when looked into Communication channel monitoring i could see following error:
    Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException : Message ID aa2ec9a0-44b3-11dc-9c5b-0003baa19669(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPDX1DB.SYS_C00120924) violated.
    is this due to adapter cache. we are on SP20.
    has anybody faced this problem earlier?
    Thanks in advance.
    Regards
    Rajeev

    Hello
    actually there was small problem in file generation and hence it was failing in message mapping which is resolved. but still that problem is there when it is attempting to delete the file. hence it is not able to delete that file.
    can we manually clear the send queues or should we refresh CPA cache?
    Thanks
    Rajeev

  • File Content conversion at the sender adapter without Key field

    Hi All,
    I have a requirement ....We are using Message Transform Bean at the sender adapter (we are not going for FCC as we are tranforming a decryption) ..its is a flat file...
    we dnot have a key field for one of the node .....we have total 5 nodes under parent node and one of the node does not have key field ....
    NOTE: I guess we have to do either Java mapping or XSLT ..but not getting proper weblogs with program...
    and not well versed with coding...i got few codes which were either not fulfilling requiremment or they use stream tranformation where it is decaprecated in NWDS and does not allow to compile it properly .
    Can somebody get me a code for Java which uses Abstract tranformation ...which can full fill below requirement
    parent node
                  Node1
                       node 1a
                       node 1b
                  Node 2
                  Node 3
    Input Flat file is in below format
    example:
    Employee Headre Flat files
    Employee Detail Flat Files(this repeates numerous times as much as number of employees)
    Employee  Trailer Flat Files
    Loan Headre Flat files
    Load Detaisl Flat Files (this repeates numerous times as much as number of employees)
    Loan Trailer Flat files
    Assitance much appreciated thanks .
    Regards
    Kiran

    Hi Stefan,
    I will rephrase the question i guess its communication gap...
    1) we have an existing interface in 3.0..we are not copying the same interface to 7.1 as it was not according to standards and they are phasing out that system.
    2) In 3.0 they are reading the Flat files under one record .. the structure is as follows:
    Parent Node
               Node
                   Row
    They are reading all the flat files row by row.
    and even in receiver they are reading in the similar fashion
    3) In the current structure according to the FS we have to create a structure defined by them which is as below
          Employee
              Header
              Details   node 1
                 Details  node 1a
                  Details  node 1b
              Trailer
              Loan Header
              Loan Detail
              Loan Trailer
    Receiver structure is
    Employee
          Node (this will have the receiver fields which is about 30 fields)
    4) We have pulled a sample file from 3.0 for the existing interface as we din get the sample file for existing one in FS and Iam not sure whn are they gonna send it.
    5) In the existing interface payload we have everything matching even the field lengths and postions and even key fields and key fields we got from the FS
    6) problem is we donot have key fields for the Details node 1a and 1b even in FS or the existing payload and we got an update from the FS consultant that we will be receiving these fields but without keyfields...
    see i donot have any problem taking out the details 1a and 1b out of the details header and create the structure ,,,,but the main issue is without key field we will not be able to generate the 1a and 1b nodes or read it in the FCC or MTB (i have to use MTB as we are decryting the file from the sender).
    Or is there any other method apart from java mapping or module development to handle these files

  • File Content Conversion on the Sender Adapter in PI 7.1

    Hi Experts
    I am working on a file to Proxy scenario where my file is fixed format length which will have only one Structures (Details Records) that would be coming from the text file but in the message type I have delcared Header, Detail , Trailer,
    However I would be receiving the only Detail part (No header and Trailer) in some instances  what value should I give for the header and trailer in the Content conversion part,
    Thanks
    PR

    Since you are going to get values only some instances  for header and trailer node, you can create
    Header  structure   &  Trailer structure  - make the occurence 0 to 1
    Note: if your Header and Trailer values are empty for some instances then no worries. You declare FCC fields for header and trailer similar to Details.
    Refer SAP FCC help link.

  • Sender Adapter File Content Conversion - question

    Hi!
    Could you help me to make xml-file from csv?
    I have file like:
    12345#254#9765#89654
    55#9066#77127#47
    And i need file like:
    <dealings>
            <deal>
                    <field1>12345</field1>
                    <field2>254</field2>
                    <field3>9765</field3>
                    <field4>89654</field4>
            </deal>
            <deal>
                    <field1>55</field1>
                    <field2>9066</field2>
                    <field3>77127</field3>
                    <field4>47</field4>
            </deal>
    </dealings>
    I haven't key fields - all fields are accidental. And lengths of all fields are accidental.
    How to put content conversion parameters?
    Thank you.

    HI
    File Content prameters for the Sender Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    File content conversion sites
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    The specified item was not found. - FCC
    File Content Conversion for Unequal Number of Columns
    File Content Conversion for Unequal Number of Columns - FCC
    Content Conversion (Pattern/Random content in input file)
    Content Conversion (Pattern/Random content in input file) - FCC
    XI Configuration for MDM Integration - Sample Scenario - FCC - MDM
    XI in the role of a FTP
    XI in the role of a FTP
    File content conversion sites
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    The specified item was not found. - FCC
    cheers

  • Mail-Sender-Adapter, FetchReport

    Hello,
    can anyone explain me how to use the FetchReport option in the Mail-Sender-Adapter?
    In the Adapter-Audit-Protocol the Adapter I always get an error.
    The SAP-Help pages are not very helpful, an in SDN there are no articles about this.
    kind regards
    Thorsten Gawantka

    Hi Chris,
    the Definition is imported already.
    Here are the message-data:
    Message-Daten
    Attribut     Wert
    Status     fehlerhaft beendet
    Wiederholbar     Nein
    Beendbar     Nein
    Fehlerkategorie     XI_J2EE_ADAPTER_XI_HANDLER
    Fehlercode     CALL_CONSUMER_ERROR
    Start     30.04.2008 13:27:03
    Ende     30.04.2008 13:27:03
    Sender-Partner     
    Sender-Service     opx
    Empfänger-Partner     
    Empfänger-Service     
    Interface     http://sap.com/xi/XI/Mail/30
    FetchReport
    Quality-of-Service     Best Effort
    Message     5b2e4a20-16a8-11dd-c67c-00145e36a4e4
    Referenz     
    Konversations-ID     
    Version     0
    Bearbeitet     Nein
    Serialisierungskontext     
    Richtung     OUTBOUND
    Message-Typ     Call
    Profil     XI
    Verbindung     Mail_http://sap.com/xi/XI/System
    Transport     HTTP
    Endpunkt     http://op-sap-xi:8000/sap/xi/engine?type=entry
    Berechtigung     SAPPasswordCredential(PIAFUSER):password=********:sapclient=001:saplang=
    Sequenznummer     0
    Anz. Wiederh.     0
    Fehlg.     1
    Wiederh.     0
    and the audit-protocol:
    Audit-Protokoll für Message: 5b2e4a20-16a8-11dd-c67c-00145e36a4e4
    Zeitstempel     Status     Beschreibung
    2008-04-30 13:27:03     Erfolgreich     Mail: calling the module processor for channel CC_AeroDB_Mail_Send
    2008-04-30 13:27:03     Erfolgreich     MP: Tritt in den Modulprozessor ein
    2008-04-30 13:27:03     Erfolgreich     MP: Lokales Modul localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean wird verarbeitet
    2008-04-30 13:27:03     Erfolgreich     Mail: message leaving the adapter (call)
    2008-04-30 13:27:03     Erfolgreich     Die Anwendung versucht eine XI Message synchron zu senden über Mail_http://sap.com/xi/XI/System
    2008-04-30 13:27:03     Erfolgreich     Versuch die Message in die Call-Queue zu stellen
    2008-04-30 13:27:03     Erfolgreich     Message erfolgreich in Queue gestellt
    2008-04-30 13:27:03     Erfolgreich     Die Message wurde erfolgreich aus der Call-Queue abgerufen
    2008-04-30 13:27:03     Erfolgreich     Der Status der Message wurde auf DLNG gesetzt
    2008-04-30 13:27:03     Fehler     XI-Systemfehler erhalten. ErrorCode: NO_RECEIVER_CASE_BE ErrorText:   ErrorStack: No receiver could be determined
    2008-04-30 13:27:03     Fehler     Rückgabe synchroner Fehlerbenachrichtigung an rufende Anwendung: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:.
    2008-04-30 13:27:03     Fehler     Die Übertragung der Message über http://op-sap-xi:8000/sap/xi/engine?type=entry ist fehlgeschlagen, weil: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    2008-04-30 13:27:03     Fehler     Der Status der Message wurde auf FAIL gesetzt
    2008-04-30 13:27:03     Fehler     Zurück zur Anwendung. Ausnahme: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    2008-04-30 13:27:03     Fehler     Mail: error occured: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    2008-04-30 13:27:03     Fehler     Mail: error occured: com.sap.aii.af.mp.module.ModuleException: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE: caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    2008-04-30 13:27:03     Fehler     MP: Ausnahme aufgetreten mit Grund com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    2008-04-30 13:27:03     Fehler     Mail: failed to call the module processor: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
    Now the question is, how do i define the receiver in an asynchrounious scenario? And what does the FetchReport option exactly?
    thx for your help
    Thorsten

  • File sender adapter: trigger mail if file is not there

    Hi,
    I have an scenario where I have a file sender adapter, and I need to look for a file in a specific folder from a specific FTP site.
    If the file is not present there, I need to trigger an alert to let some people know that the file was not found.
    Is this possible? If so, how should I do it?
    Thanks!

    You could also write an abap in your PI system to call the function 'EPS_GET_DIRECTORY_LISTING' against the FTP site/folder/filename(s) at a required interval if you don't want to use a BPM. This abap could also send an email if you so desired.
    The general theory should be that if you can do something a simpler way then don't use BPM's if you can avoid them.

  • Sender File Adapter should run only when trigger file is found PI 7.1

    I am using PI 7.1 . I have a File Sender Adapter communication channel that needs to poll for a trigger file - input.trg  . Only If that is found then it needs to pick up the actual data file -  input.dat   .  The Transport Protocol is  FTP not NFS, so I cannot use standard features like   'Addtional Files'. 
    Is there any other workaround for this ? OS Commands etc?
    I have also read that I can use BPM for this . Could anyone help me out with the steps and if you have any good blog on BPM.
    Thanks !

    Hi Dev,
    You can use BPM for this. The steps benig
    1. Fork with two receive step (one for trigger file and one for dat) . The end condition of fork is when both brach is completed.
    2. transformation step
    3. send step
    you can use a dummy correlation between the two input files (trigger and dat input file)..
    Regards
    Suraj

  • Trigger file in Sender File CC

    Hi All,
    I have a query regarding the usage of trigger file in Sender File CC.
    I am triying to pick .XML files only if respective .trg file is existing. My question is when ever there are 10 files where 9 are completely written and have respective .trg but 10th file still being written(which does not have a .trg file), the other 9 files are also not getting picked.it is waiting for the 10th .trg file throowing an error. But in real time these are dynamic files, when one is completed there may be other file being written. Is there any possibility to pick the 9 files which have .trg and leave the 10th file to be written completely and pick that in the next polling.
    Please find the below attachment of configuration.
    Kindly post your solutions on this.
    Thanks & Regards,
    Sandhya

    Hi
    If i understand correctly your 10th file is placing into the folder and it was not completely placed yet.For this as suggested you need to use File Modification Check.
    Coming to trigger file,once your files are ready (File Modification check success) then using some background job, we used Autosys tool to place the trigger file then PI will pick the files.There should be a gap between the background jobs which places actual data files,trigger file and polling of PI channel.
    Please try with SAP SFTP adapter which has more functions compared to normal FILE.In Case of SFTP you no need to use any modules for the payload conversion.
    Thanks

  • File sender adapter (FTP) - processing mode "Archive"

    Hello all
    We're polling files from an external FTP server. For this I created a scenario on XI according to this thread:
    When setting processing mode to "Archive" in the file sender adapter (ftp) it polls the file, stores it to the archive directory I specified and then tries to delete the file on the FTP server side. This returns me an error because we're not allowed to delete the retrieved files on the FTP server!
    Because of this error the file adapter stops further processing and does not poll all the other files.
    How can I disable this deletion mechanism while keeping processing mode to "Archive"?!?!?
    We do not want to use processing mode "Delete" or "Test" and we don't see other options to influence this behaviour.
    Thanks for any guideance on this one in advance!
    Kind regards,
    Renaud

    Hi Bhavesh
    Sorry for the late answer. Unfortunately I can't ask the application system to provide file names containing a timestamp within. The files are provided by an external partner and are retrieved by several others as well.
    In the meantime I managed to achieve this:
    In repository I created dummy data types, message types and message interfaces. No mapping programs and interface mappings!
    In configuration I created the necessary communication channels (1 ftp sender, 1 file receiver) and the required receiver and interface determinations as well as the sender and receiver agreements.
    The result of this is:
    I'm able to poll some specific files via ftp from remote host. The file names are file1.arj, file2.arj, file3.arj and file4.arj. All 4 files have the same SourceFileTimestamp (e.g. "20060727T053900Z").
    I'm able to store those 4 files 1:1 in a target directory with the same file names. Until here I did NOT need to follow this blog: <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14: The same filename from a sender to a receiver file adapter - SP14</a>.
    As of this blog it is possible to access adapter specific attributes and make them available in message mapping using user defined functions. This way I'm able to get the SourceFileTimestamp from the polled files and use it in a message mapping. This way I'm also able to use it in variable substitution on file receiver adapter (syntax = "payload:root,1,fileTS,1") in order to dynamically create a directory with this syntax: YYYYMMDD.
    So far so good... but the only remaining BIG problem now is, that as soon as the mapping is activated and assigned in the interface determination, the created files contain the XML payload instead of the original binary content. Where has it gone? How should the target message type look like so that it can carry over the original binary file content?
    BTW: isn't it possible to post screenshots? Would be much more easier to explain things... so sorry to anyone if I wasn't clear enough!
    TIA and best regards,
    Renaud

  • File sender adapter is not working

    Hello All,
    We are facing a problems with file sender adapter. Communication channel is not picking the files from the directory, but the status in RWB for that channel is 'Functioning'. We are not sure whether the channel is locked or any other problewm with adapter. (In Alternate option, we have created copy of that channel and when it is activated, it picked the file )
    Can anyone help us how to identify whether channel is locked and any other solutions in this case.
    Regards,
    Sreenvias.

    Hi Srinivas,
    The file adapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender file adapters as well. I would recommend to do a check in al sender file communication channels)
    You can see/delete the locks in Visual admin.
    Go to Server>Services->Locking adapter  and click refresh
    The entries for file adapter ( with name $XIAFFileAdapter) should be deleted by selecting those particilar entries and click delete selected locks.
    If you have more than one node, then same should be done in all server nodes.
      The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
    But, the lock may be created again which potentailly stops all your file based interfaces. Hence i would suggest to use Timeout parameter avialable in file sender adapter which termiates FTP session as you defined, This should solve your issue permanently.
    The FTP server do have thier own time out settings but if you don't defne any particulat time out in PI, the FTP server forcefully disconnects the FTP sessions which created locks in PI.
    Hope this solves your issue.
    PS: The same bahaviour would expected for all sender JDBC adapter as well

  • Is it possible get special file in file sender adapter?

    Hi every SDNer.
    I want to get special file. for example like PJ<today>_return.dat
    Well, to paraphrase Marx, One folder has too many files. but I want one file in that folder.
    The rule is simple. if today is 20/07/2007 then I get the file as "PJ20070720_return.dat".
    How can i configuration File Sender Adapter?

    Dont have an XI system in front of me, but if I recall correctly, your options are pretty limited. The list of parameters in Advanced Selection for Source File does not include a date Better selection parms with the receiver channels.
    As such you may have to resort to writing a script on the OS that will do the following every minute... (basically run it more frequently than your channel)
    - look in that directory through all the PJ* files containing date = 'today'
    - rename the file to REAL_PJ_..... (for example)
    In your channel, pick the file REAL* and archive accordingly so it's not picked again by your script.
    If you find alternatives via cchannel - publish your results.
    sincerely,
    --NM

  • Attachment of original message in file sender adapter content conversion

    Hi,
    does anybody know how I can configure a file sender communication channel (with content conversion) so that the original file is added to the XI SOAP message as attachment? Maybe this is just a parameter in "Advanced" tab. (The content conversion itself is not an issue.)
    The result should be the "Main Document" (XML-message) and the "original document" as two attachments in the SOAP payload.
    The reason for this is that the original file should be archived with the XML message as it was before the XML content conversion of the file sender adapter took place.
    Thanks,
    Philipp

    original file is added to the XI SOAP message as attachment?
    The "Advanced" tab -> additional files added in file adapter should act as the attachment to soap receiver adapter if u select the "Keep Attachments" option in soap receiver communication channel.
    What do u want to do in FCC is a bit unclear?
    Regards,
    Prateek

  • How to skip a blank  row in File Sender Adapter - while mapping ?

    Hi friends ,
                     While i am reading a test file it contains some Blank Lines i need to skip that blank lines and i have to read only full line .
                        Do i need to give any configuration in File Sender Adapter ?
                        Expecting your reply asap
    Best Regards .,
    V.Rangarajan

    <i>Hi friends ,
    While i am reading a test file it contains some Blank Lines i need to skip that blank lines and i have to read only full line .
    Do i need to give any configuration in File Sender Adapter ?</i>
    >>>>
    currently the only option that the file adapter provides you is to skip lines at the starting of the file but not in the middle of the file.
    in case these blank lines are at the starting of the file then you can use the following option
    <i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    else the best way would be to handle the same in your mapping (test if the xml node is empty, in tht case do not map it) or use a module to delete all blank lines in the file.

Maybe you are looking for