Picking file in sequence/Queuing   in  sender SFTP adapter.

Hi Experts,
I am using SFTP adapter in sender side, it has no option of quality of service ( EOIO)  and queue name as we have in  FTP adapter configuration .Is there any  predefined  module provided by Sap which i use in the modules Tab in communication channel configuration to get the functionality of queuing ? just like we use  strictXMlto plain bean etc.
I have 3 files which needs to  proccess in a sequence one after another in order.I CANT USE BPM or Even FTP because of Security reasons.
please share you ideas.
Regards,
Anika

Hi all,
I have tried using AF_Modules/DynamicConfigurationBean in module tab present is the sender SFTP adapter with the attribute qualityOfService.
  parameter name                  Parameter value
     key.0                         insert http://sap.com/xi/XI/System/Messaging  qualityOfService
    value.0                        ExactlyOnceInOrder
But in Moni i dont see the 3 messages didnt go in the same queue.But when i double click and open the dynamic configuration present in the soap header section i can see the values which i given in the module parameter.
Is there any way i can change the quality of service to EOIO at runtime ? how to change the default EO to EOIO.
Regards,
Anika

Similar Messages

  • Need to read source file without deleting it - Sender SFTP adapter

    Dear friends,
    The data from the source file needs to be read by PI on a daily basis. The file should not be deleted.
    Vendor  updates the file on a daily basis with file name DataFeed.xml
    How to acheive this in Sender SFTP adapter ?
    Kindly guide me
    Renu

    Hi Renu,
    Unfortunately as of latest release of SFTP adapter. Arching is not possible :(. really dont know why :).
    as a work around what you can do is  create a scenario as 1 sender and 2 reicever.
    here: 1 sender: will be the sender fileadapter which will pick the file from souce.
             1st receiver: will be a receiver file channel which will palce back the file in the source Archive folder.
             2ed Receiver: this will be the actual receiver to which the data has to be given.
    Or write a Module in Sender adapter which will archive the files in new location.
    Note: Here i am assuming that each time the source creates a new file with same name which contains new data in it everytime.
    Regards,
    Senthilprakash.

  • Dynamic directory for Sender SFTP adapter

    Hi All,
      Hope everybody is doing fine.
      I need urgent help for below requirement for SFTP adapter ,client requirement is
      We have deployed the SAP security Add ons (PGP-SFTP) for one of the requirements in our PI system (PI 7.11 SPS 11).
      The SFTP adapter is configured to read files from the source system.As per the guidelines from the source system , we need to determine the source directory dynamically and then poll the files.
    The source folder structure looks something like this :
    \Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface1
    \Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface2
    That is we need to pick up the file every day from a new folder, say, for 24th July 2013 - \Archive\FROM_System\2013\07\24\Interface1
    25 July - \Archive\FROM_System\2013\07\25\Interface2
    Will the PI SFTP adapter support this kind of requirement? As this is sftp sender adapter Operating system level command option is also not available.
    Do we have any standard module/Bean to dynamically change directory name in the sender SFTP adapter?
    i will really appreciate your quick help.
    Thanks
    Monica

    Hi Monica,
    Yes it should work. Did you check this thread:
    http://scn.sap.com/thread/3376137
    Also refer to the following documentation link for the SFTP sender adapter (scroll down to the adapter specific message attributes):
    http://help.sap.com/saphelp_nwposc/helpdata/en/2e/99f0fb5a9e45b3b148c90e87fafcd1/content.htm?frameset=/en/c5/56eb8e7ec04435a0d54d96a18231e5/frameset.htm
    Best Regards
    Harald

  • Sender sFTP Adapter - SSH Key

    Hi All,
    I have a small doubt regarding Sender sFTP Adapter. This is what we have done to connect with one of Vendor
    1.     Basis created a SSH key in NWA for Vendor and sent to them.
    2.     They linked the SSH key with user name and asked me to use the same.
    3.     We got the firewalls openepd b/w PI and Vendor
    4.     I provided the same detail in sFTP adapter, but I am not able to connect,
    I am getting below error:
    Error: Cannot connect to SFTP server. Host=########, port=22, username=#####. Private key store=########, private key alias=piPKCS12. Timeout=300000 msecs. Absolute home directory=.: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched. (Software version: 3.0.14.2)
    Please provide your inputs.
    Regards,
    Sachin Dhingra

    Hi,
    The first thing you have to do is use the same userid and the pwd and try to connect to the vendor system from your application layer and see if this is connecting or not. If there is a problem in connection then there are few steps that you have to follow. Below are the steps you need to follow:
    1. Open the port from your Vendor side as well as open the port from your XI system(there might be two ports)
    2. Generate the key of your vendor system and one you started login to the system then it will ask to instal the key , so acept it.
    the IS people can help you out over here.
    3. Try to push the one dummy file in that location manually using the command in application layer.
    4. check the authorization in the target directory and try to provide the proper authorization,, 777 is used for full authorization.
    5. use the same useid and the pwd and then try from your xi system processign a dummy file.
    hope this helps.
    cheers,
    jay

  • Sender SFTP adapter configuration

    Dear Experts,
    we have one requairement to convert CSV file to xml messages, we are using the sender SFTP adapter.
    kindly let me kow, how to convert csv to xml messages.
    Regards
    kiran

    Hi kiran kumar,
    There is no FCC in SFTP.you need to use Message Transfoem Bean in Module to convert csv file to XML.Configure module parameter as below:
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = text/xml;charset=utf-8
    xml.conversionType = SimplePlain2XML / StructPlain2XML
    xml.processFieldNames = fromConfiguration
    xml.documentName = MyDocument
    xml.documentNamespace = http://xi.com/DocumentTest
    xml.documentNamespaceScope = root (default Value)
    xml.structureTitle (SimplePlain2XML) = MyTitle
    xml.recordsetName (StructPlain2XML) = MyRecordset
    xml.recordsetNamespace (StructPlain2XML) = http://xi.com/RecordsetTest
    xml.recordsetNamespaceScope (StructPlain2XML) = root (default Value)
    xml.recordsetStructure (StructPlain2XML) = NameA,1,NameB,*,NameC,1
    xml.recordsetStructureOrder (StructPlain2XML) = asc (for Ascending) / var (for Variable)
    xml.allowEmptyRecordsets (StructPlain2XML) = YES / NO
    xml.recordsetsPerMessage (StructPlain2XML) = * (default Value)
    xml.documentSkipFirstRows (StructPlain2XML) = 0 (default Value)
    xml.recordsetBeginSeparator (StructPlain2XML) = ~ (blank by default)
    xml.recordsetEndSeparator (StructPlain2XML) = ~ (blank by default)
    xml.keyFieldName (StructPlain2XML) = MyKey
    xml.keyFieldType (StructPlain2XML) = CaseSensitiveString / Float / CaseInsensitiveString / Integer
    xml.fieldNames (*) = MyKey,field-name1,field-name2
    xml.fieldFixedLengths or xml.fieldSeparator (*) = 3,3,3 or ~
    xml.endSeparator (*) = u2018nlu2019
    xml.beginSeparator (*) = u2018nlu2019
    xml. enclosureSign (*) = ~
    xml.enclosureSignEnd (*) = ~
    xml.enclosureSignEscape (*) = ,
    xml.enclosureSignEndEscape (*) = ,
    xml.enclosureConversion (*) = YES / NO
    xml.checkForXMLPredefinedEntities (*) = YES / NO
    xml.checkForISOControls (*) = YES / NO
    xml.addBeginSeparatorAsField (*) = YES / NO
    xml.addEndSeparatorAsField (*)  = YES / NO
    xml.fieldContentFormatting (*) = trim (default Value), nothing
    xml.keyFieldValue (*) = 001
    xml. keyFieldInStructure (*) = add (default Value)

  • Sender SFTP Adapter channel is not polling for files

    Hello All,
    Couple of SFTP sender adapter channel was failing in Developent system with u201Cdirectory listingu201D error.All SFTP sender channels stopped polling for the files in Developent system  . We were unable to find the reason for adapter failure, Hence we restarted the j2ee server and adapter started polling files. Later we are facing the same issue in Quality system. THe adapter cahnnel is not polling files in Quality system even.
    All lean tool adapters were showing the u201CHost key was not accepted erroru201D on 27th of Feb . As per the other channel trace, the time stamp of last successful polling and error time stamp of lean tool sender channels are exactly same
    Eventhough two communication channels access the same SFTP adapter, one communicationchannel is getting 'Host key was not accepted error' but in other communication channel, files are getting picked.
    Please let me know the solution if you have come accross this issue previously
    Regards,
    DilipKumar

    Hi Mike,
    Thanks for your reply.
    Its not a standard SFTP adapter rather its a C-BURGER SFTP adapter.
    Sorry I did not mention this in my previous post
    Regards,
    DilipKumar

  • How to pick files from multiple directories via Sender File Adapter?

    Hi guys,
    I have a scenario File to IDOC. The Sender File Adapter has to take all files: .xml from Source directory E://Current/.
    Actually directories are like
    E:/Plant1/Current/
    E:/Plant1/History/
    E:/Plant2/Current/
    E:/Plant2/History/.
    Can I have one Sender File Adapter to pick all *.xml files
    from
    E:/Plant1/Current/ and
    E:/Plant2/Current/  and how can I write it in Source Directory of Communication Channel?
    Or do I have to have a Sender File Adapter for each Plant?
    Any suggestion please?
    Kind regards,
    Danijela Zivanovic

    Hey
    You might wanna have a look at "Additional selection for source file" parameter in sender file adapter.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/singleSenderFileCC4MultipleDirectories
    XI/PI: how to exclude files in a sender File adapter?
    Even though this method works but there are some constraints,please check help.sap.com for constraints.
    Thanx
    Aamir

  • How to process a text file (mail attachment) using the sender mail adapter?

    Hi guys,
    Is it possible to process mail attachments using the sender mail adapter? Let's say I have a structured text file (attachment) which needs to be mapped and sent to target system.
    Post please any thoughts or experience.
    Thanks,
    Olian

    Hi Olian,
    Have a look at these helpful links -
    1. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05&overridelayout=true
    2. http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    3. http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Regards,
    Sunil Chandra

  • SFTP adapter : generating certificates

    Hi Gurus,
    In our project we have file to file scenarios were we are using SFTP adapter.
    The authentication has to be done uding keys.
    The adapter has been installed properly I can see it in nwa-> component info.
    PI will be picking up files form SFTP server.
    I am confused If I should be sharing PI public keys from them or they will give their public keys to me.
    I am refering document,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?overridelayout=true
    But, I am not able to find any keys under Configuration ->Certificates and Keys for SFTP adapter.
    Does it automatically comes over there or do we need to create them?
    Thanks,

    Hi Dilip,
    refer below blog :
    Using PGP in Process Integration
    Public Key: 
    Your public key is used by all your business partners to encrypt a message when sending that message to you.  Therefore, you must send the public key to your partners first.
    Your partner’s public key is used to verify the digital signature in the message when you receive that message from your business partner.  Therefore, your partner must send you his public key first.
       Private Key:
    Your private key is used to decrypt a message when receiving it from your partner.  Your business partner will use your public key to encrypt the message.
    Your private key is used to digitally sign a message when sending it to your business partner.  Your business partner will use your public key to verify the digital signature
    - Harshit

  • Urzent: Delete files in FTP server using FTP receiver adapter

    Hi Experts,
    We are doing 2 asyncronous scenarios. frst scenario should delete existing file and place the request file. Second scenario should pick(delete) response file and delete request file it placed also.
    Scenario 1 : File(NFS) to FTP  (Asynchronous)
    Scenario 2: FTP to NFS  (Asynchronous)
    Scenario 1: (Receiver FTP Adapter )
    step-1: PI has to delete all existing files in FTP server
    step-2: PI has to place Request file in FTP
    Scenario-2: ( Sender FTP Adapter)
    step-1: PI has to Delete request file i FTP server
    Step-2: PI has to pick and delete response file in FTP server
    Doubts:
    How can we do above steps in PI
    Thanks,
    Murali

    Hi Krish - For scenario -1 You have to make use of the OS commands to delete the files on FTP server before placing the request file.
              -> write some script which wil connect to the FTP server and delete the files.
              -> call that script from the file adapter "using execute OS commands" option
    For scenario -2 :
    pick both the files(request and response) and set the processing mode to delete..
    during the receiver determination, process only request files(based on filename/content)

  • Receiver SAP SFTP adapter-errorlog on SFTP server

    Experts,
    I am using receiver SAP SFTP adapter to connect to an SFTP server and send files.Receiver SFTP server is a VMS system.I could able to write the files to home directory of the user that has been given,but apart from writing the files I am seeing warning log file in the the target folder on SFTP server like below description.I am giving dot(.) in the file path to write the files to the default directory that has been assigned to the user given by receiver SFTP server team.
    WARNING: ssh_file_server_receive_proc: platform cannot stat() filename /home/dir1/dir2 ./TestFile(TestFile is my file name) .
    Just to test,we placed files in the receiver SFTP server using same user and password as the PI recv SFTP channel with command line and winsCP client tool,but we don't see any error logs on the server with WinSCP tool or command line transfer of the files.Log file with above  warning is generating only when we place files on the server using SAP SFTP adapter in the recv channel of PI.
    Please let me know,if you have any insight or seen similar issue.
    Thank you,
    Sri

    Hi Poonam - Blogs on SFTP : Just search for SFTP and filter by blogs/documents.. you can find many..
    >>> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?QuickLink=index&overridelayout=true&57075820413417
    http://scn.sap.com/docs/DOC-35572
    I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
    >>> Yes. It is only possible with NFS.
    You have to define multiple channels/interfaces...

  • How to file mask in sender seeburger SFTP adapter

    Hello Gurus,
    Please help on
    How to perform a file mask in sender seeburger SFTP adapter? eg. I want to pick all the files but not *.tmp files.
    thanks
    Kishore

    Kishore
    A work around:
    Use another interface File to file (By pass) using file adapter which does the mask exclusion of the file which are not required.
    Regards
    Raj

  • Issue while archiving the processed file in sender communication channel using SFTP adapter

    Hi All,
    In one of my scenario (File to IDOC), we are using SFTP sender communicationchannel.
    we are facing an issue while archiving the processed file. Some times PI processed the file successfully but unable to archive it and in the next poll PI process & archives the same file successfully which will creates duplicate orders in ECC.
    Please let us know how to resolve this issue.

    Hi Anil,
    Refer Archiving concepts in below links.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/content.htm?frameset=/en/44/6830e67f2a6d12e10000000a1553f6/frameset.htm
    http://scn.sap.com/docs/DOC-35572
    Warm Regards,
    DNK Siddhardha.

  • Sending empty files using SFTP Adapter

    I am trying to send empty files using SFTP adapter. The interface has to send the file whether its empty file or containing data using SFTP adapter. I am using BizTalk Server 2013 R2. Is it a bug or the hotfix is already there for this issue.

    The issue here is not your SFTP not able to send 0KB files, but the file receive adapter that is receiving the file. The file adapter deletes 0 KB files and doest not transmit it further.
    If u have a ftp receive for example you should be able to send 0KB files.
    If u have a custom file receive adapter , is it handling 0KB files ?
    Regards &lt;br/&gt; When you see answers and helpful posts,&lt;br/&gt; please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

  • BizTalk 2013 SFTP Adapter Dynamic SFTP send port exception: Open remote file for write error

    I am using BizTalk 2013 SFTP adapter. I defined a Dynamic One-Way
    send port on BizTalk server administration.
    Below is the error I'm getting on BizTalk while trying to write files to a designated folder on a client's SFTP server.
    When defining the same path and properties on a Static One-Way send port everything works properly and the files are being saved on the SFTP server.
    A message sent to adapter "SFTP" on send port "ComverseSFTP_1.0.0.0_ComverseSFTP.SendFileToSFTP_SendFileToSFTPServer_f6b86b86a22079f8" with URI "SFTP://abc.xyz.com:22/upload/%SourceFileName%"
    is suspended.
    Error details: Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Open remote file for write error.
     Server stack trace:
       at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker.OpenRemoteFileWrite(String fileName, Int32 fileOffset)
       at Microsoft.BizTalk.Adapter.SftpInvoker.SftpFileWriterStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at Microsoft.BizTalk.Adapter.Sftp.SftpOutputChannel.Send(Message message, TimeSpan timeOut)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
     Exception rethrown at [0]:
       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
     Exception rethrown at [1]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at System.ServiceModel.Channels.IOutputChannel.EndSend(IAsyncResult result)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendCallback(IAsyncResult result)
    MessageId:  {926F44F2-9180-4B33-96FF-9E4CBC459382}
    InstanceID: {36A50A7F-63C4-48D9-903D-A33C85DDAE36}
    Can you please assist with explaining why are we getting this exception?
    Thank you for your help.

    Below is the error I'm getting on BizTalk while trying to write files to a designated folder on a client's SFTP server.
    When defining the same path and properties on a Static One-Way send port everything works properly and the files are being saved on the SFTP server.
    A message sent to adapter "SFTP" on send port "ComverseSFTP_1.0.0.0_ComverseSFTP.SendFileToSFTP_SendFileToSFTPServer_f6b86b86a22079f8" with URI "SFTP://abc.xyz.com:22/upload/%SourceFileName%"
    is suspended.
    Error details: Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Open remote file for write error.
    Hi Yaeli1,
    From the error message above,  please check the permission for file writing , it seems that this issue is related to access permission.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Unable to change Date Created in Metadata

    Please help with my first post... Unable to change Date Created field in Metadata. I am a newspaper photographer sending .jpg pics with captions to my office from my iMac. They are viewed at the office on Windows PCs using SCC MediaGrid. When changin

  • MRP for MRP type VB

    Hi, In order to run MRP for the materials related to consumption based planning (VB) in transaction MDBT / MD01 i have followed below link and activated user exit but when i run MRP, it is considering even MRP type PD. When we try to put break point

  • External monitor initially flashes on waking from sleep

    I recently upgraded to 10.4.8. My PowerBook is connected to an external monitor and now often flashes when I wake the machine from sleep. It takes a while too settle down but then works fine. If I wake from sleep without the external monitor, there a

  • Cfexchange and character encoding

    Hi! I'm developing an application using the new cfexchange-tags. The app outputs a list of calendar events from an MS Exchange 2003 server. It works nicely, as long as the event subjects don't contain any non-english characters. As soon as the subjec

  • QM-Delivery Inspection lot clubbing

    Dear Gurus, Is it possible to club the diiferent deliveris in to one inspection lot. For example, presently system creates 1 inspection lot per delivery. If user wants next delivery also linked to previous lot and no need of getting a new lot for the