FTP adapter with application acknowledgment

Hello,
I like to send a file with an FTP adapter to an "in" folder and configure a sender FTP adapter to pick up files from an "out" folder.  I'd like to us a BPM and have the BPM determine if the returning file is pointing to an error and send an alert.  This is my manual way to create an application acknowledgment.
So my BPM needs a Receive, Send and then another Receive step.  Has anyone done this before?  Or is there some good documentation on this process?
Thanks,
Matt

Some misunderstanding I guess
I was explaining to use UDF to raise alert message, say for example using this
Triggering XI Alerts from a User Defined Function
Checking file for error should be based on the business logic used by the receiver system. XI won't understand in itself that the file has error. There must be some business requirement that should be checked.
Regards,
Prateek

Similar Messages

  • FTP Adapter with Runtime OS Command before Message Processing

    Hi PI Techies,
    I have a confusion in using Sender FTP Adapter with Runtime OS Command before Message Processing.
    Scenario is like this:
    Ftp Adapter has to pick a file from FTP server after it checks that a Blank Marker file exists on PI server AL11 directory say "tmp directory".
    For this I am using Runtime OS Command before Message Processing where a shell script will check the existence of Blank Marker file on PI server AL11 and if found , it exits the script and FTP Adpater will then pick the Actual Data File and Process it.
    Now Confusion:
    I am confused in technical execution of steps by FTP Adapter..
    Whether FTP Adapter polling initiates the Interface or Runtime OS command checking the File existence will initiate the Interface?
    May be its follish to you guys... but please answer ..
    Regards,
    Anurag

    Hi,
    I will take it other way as we need to process the Data File not Marker File ( its just for checking the Data File is completely written on FTP server).
    Other way mean " Will Poll for Data.txt File and if  found then Runtime OS Command will do connect to FTP and check if Marker File exists, if yes then delete the marker file and read the actual Data File for processing.
    Please let me know, if Marker File does not exists on FTP folder, will it still read the Data File or will it exit the Adapter execution?
    Your help is much appreciated.
    Regards,
    Anurag

  • ESB: inbound file and outbound ftp adapter with multiple directories

    Basically I want to scan directories and write new files ftp directories. I could figure out how to do that for one directory. However I need to scan multiple directories and ftp upload files contained in those directories to corresponding ftp directories. Number of directories and their names are only known at run time. All directories are under one parent directory, both locally and the remote ftp site. We can assume all ftp directories exist.
    I could not figure out how to this. Is this possible at all? Directory names seem to be only specified at design time, for both inbound file adapters and outbound ftp adapters.
    Pranab

    Chris, I am not really sure this is the right place to ask this question. But hopefully you might have something in your armour to help me out.
    My requirement is to configure an inbound File/FTP adapter to read from a Directory which can be known only at runtime. A webservice call returns the file name and network path of the file to be read, but that happens only during the run time. I guess one way possible is, you configure a File/FTP Adapter with a logical name for directory and set the physical directory path using the endpoint property. But in that case, I should know the Physical directory @ deployment time.
    I would like to know whether it is possible to manipulate the Endpoint property of an ESB Service (SOAP Service/Routing Service/Adapter Service) during runtime.
    So is there any way to get the enpoint property configured during runtime??? Otherwise dO you recommend some other solution for this use case???
    Any help would be appreciated.
    -Sudheer

  • SOAP Adapter with application/x-www-form-urlencoded

    You can use the content type "application/x-www-form-urlencoded" in a SOAP adapter?
    Thank you.

    I did the configuration below:
    "Here you have to use below configuration parameters for Module
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = application / x-www-form-urlencoded "
    However, got the following error:
    =======================================================================================================
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.ClassNotFoundException: com.sap.aii.messaging.adapter.Conversion -
    Loader Info -
    ClassLoader name: [sap.com/com.sap.aii.af.mod.trans.app] Living status: alive Direct parent loaders: [system:Frame] [service:servlet_jsp] [service:ejb] [library:engine.j2ee14.facade] [library:com.sap.base.technology.facade] [library:com.sap.aii.af.lib] [library:com.sap.aii.af.sdk.lib] [service:com.sap.aii.af.cpa.svc] [service:com.sap.aii.af.svc] [service:com.sap.aii.adapter.xi.svc] [library:com.sap.aii.adapter.lib] Resources: C:\usr\sap\PI1\DVEBMGS04\j2ee\cluster\apps\sap.com\com.sap.aii.af.mod.trans.app\EJBContainer\applicationjars\com.sap.aii.af.mod.trans.ejb.jar -
    </SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    =======================================================================================================
    Any suggestion?
    Thank you.
    Regards,
    Bruno

  • FTP adapter with option as attachment

    Hi,
    I transfer file from FTP get operation using as attachment to database CLOB column of table, and than read the file from that clolumn and FTP put operation to transfer the file to different FTP location. It was successful and i can see the file.
    <property name="FileType" value="ascii"/>
    1. ) I am curios to know i get some alphanumeric string saved in table CLOB data type, How can i have exact file abc.txt in table ?? - I can see 'EA7299605C5511E1BFE52BBC8C7D2022' in this value in table.
    2.) Can some one explain how this attachment works internally ??
    Edited by: 885874 on Feb 21, 2012 8:10 PM

    Check the database CLOB documentation...
    http://www.oracle.com/technetwork/database/enterprise-edition/documentation/database-093888.html
    hth,
    Peter Paul

  • Error with Archiving Faulty Source File in Sender FTP adapter

    Hi All,
    I have configured a Sender FTP adapter with Processing Mode as Archive.
    I am able to read the files from FTP server and archive all the successfuly processed file in the PI aplication server directory XXX/success.
    We need all the error files also to be archived on PI application server in directory XXXXX/Fail so I have checked the option Archive faulty Source Files and provided the application directory  XXXXX/Fail .
    I have unchecked the option Archive Files on FTP server.
    But the problem is when FTP adapter is getting any error files it is not able to archive it to application directory  XXXXX/Fail .
    In RWB it is showing the error
    Unable to archive faulty input file /data/abc.txt to /XXXX/fail/abc.txt
    Cause: com.sap.aii.adapter.file.ftp.FTPEx: 550 rename: No such file or directory
    This directory is existing and works fine when I give this directory name in Archive directory of processing mode.
    Sender FTP adapter is trying to archive the file in FTP server which I dont want and giving us this error.
    If I give any Directory which is present in FTP server my error files are getting archived on FTP server but not in the archived folder.
    I have already unchecked the option Archive Files on FTP server.
    Please help......
    I am on PI 7.11
    Regards
    Henery H

    Hi Henery,
    Check the below thread, this should help you to fix the issue.
    FTP adapter: exc. 550 : No such file or directory
    Thanks,

  • FTP Adapter: Inbound and Outbound flat files

    Having lots of trouble trying to Send messages (via Subscribe event) with my FTP adapter, with this specific error:
    Thu May 12 11:39:10 MDT 2005: Bridge { agent=oracle.oai.agent.client.AgentImpl@2f48d2 application=PAGOFTPAPP partition=null active=true #d3ls=1 } cannot handle OAI message of type newFacility.
    I am successfully processing my flat file messages into OAI (via Publish event) and they are being properly written to the OAI_HUB_QUEUE. The message gets all the way to the Bridge, which posts the above error. Can anyone tell me how the Bridge attempts to determine what to do with the messages?
    In creating the subscribe event I specified my desired D3L file as the application view, before doing the mapping. I then tried creating mappings at both the top (struct via ObjectCopy) and granular (fields via CopyFields) levels, and always get the same error.
    Under "Modify Fields" for the subscribe event I confirmed that ota.isDL3=true and ota.d3lPath points to the D3L XML file that I used to specify the application view (and incidentally is the same one used to process the files that I am processing with the Publish event). I'm trying to get up to speed with OAI and my first test is simply to read in a tab-delimited file and turn around and write it back out to the same structure (but of course to a different target directory).
    Much thanks for any assistance anyone can offer! Due to some kind of administrative hiccup we seem to have lost our iTAR capability and it's taking forever to get it back (of course at the worst possible time...)
    Richard

    Richard,
    Not sure if you have found a way around this problem yet, but it sounds like you may have a mismatch bewteen iStudio and your D3L XML that's used to define and transform the message.
    In the XML, name should be set to your iStudio defined 'event name', object should be set to the 'business object' and the type should be set to related 'App Data Type'.
    As an example of a subscribed event
    Subscribe(GLCosts.maintain_costs)
    using an ADT called CostRecord...it's a good idea to name your message the same as the type when defining the Application view using the Subscribe Wizard, i.e. don't manually change anything.
    So your message header in the D3L XML would look like this:
    <message name="maintain_costs" type="CostRecord" object="GLCosts">
    HTH
    Nick

  • How to give a dynamic File Name for Receiver File/FTP Adapter.

    Hi Experts,
        I have one scenario in which we are creating a flat file of IDOC which is coming from R/3 & sending it to FTP location. For this we have configured Receiver FTP adapter with File Name Scheme as "NT.out"  & in File Consturction mode i have given as "Add Time Stamp".
        therfore while creating a file it is creating as NTyyyyMMdd-HHmmss-SSS.out
    where as my requirement is only to to add Time & not the Date. (NThhmmss.out)
        How to do this ?
        for your info we are using ABAP Mapping.
        Pl help me
    Regards,
    Umesh

    Hi Umesh,
          Add one more field to your target structure for your file name and populate that field as per your requirement like NTyyyyMMdd.out. In receiver communication channel use Variable subtiution option and give the refrence of Payload and file construction mode set as create.
    And refer the below weblogs for Variable Subtiutuion File Name Scheme
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Hope this way would be solve u r problem.
    Cheers
    Veera
    >>>Reward points, if it is needful

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • Need to send an email (after the FTP adapter does the transfer)

    I have a simple ESB project. It uses FTP adapter to pick a file and encrypt it (by using a webservice) and then transfers that
    file to a different server. As mentioned FTP (SFTP) adapter is used to do this.
    After the file is transfered ( by using the PUT mode of the FTP adapter) , i
    need to send an email to a given address telling about the succes of the file
    transfer. But the problem is I can not link or attach a router to FTP adapter
    in PUT Mode. A FTP adapter in Get mode comes with a Router but a FTP adapter
    with PUT mode does not come with a router. How can I attach a router (or a web
    service to a FTP adapter which is in PUT mode)
    Prakash

    I'm fairly certain you'll have to use BPEL to accomplish this. I'd put the FTP Adapter inside a BPEL process then you can drop the email activity in after the ftp operation.

  • Move operations of FTP adapter

    Hi,
    I have used a FTP adapter with move operation to move file from one directory to another directory of different server. As per the Oracle document , I have specified the source directory , destination directory, source file name and destination file name in the BPEL source code. And it is working fine. But I have a requirement to be having the options to change these source directory , destination directory, source file name and destination file name from the EM console. But in this case it is not working. It is quite obvious , it will not be available from EM as it is driven by the BPEL code. So can anyone please suggest me whether we can use these move operation of FTP adapter driven by the adapter JNDI?

    Hi,
    You can add preferences to your composite, they can be changed on EM and your BPEL will retrieve the values.
    Have a look into this entry on Eric's blog...
    http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    Hope this helps...
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question
    https://forums.oracle.com/forums/ann.jspa?annID=330

  • FTP Adapter - Overwrite file

    Hi All,
    Quick help!
    I am using dynamic FTP adapter and want to overwrite the already existing file in the destination FTP server.
    I know there is an option to append,  is there any option to overwrite the file ,  may be by using 'Before Put' to delete the file. Any idea on the exact syntax and procedure ?
    thanks,
    varun
    Thanks, Varun

    Hi Varun,
    You cannot (IMHO) do this at the FTP Adapter level.
    IMHO you'd have to create a custom FTP Adapter with a specific config option to check for duplicates and what to do if you find it.
    Regards,
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Urgent ! BPEL file and ftp adapter problem.

    Hi All!
    I have created a bpel process having two partner links.One for the ftp adapter and one for the file adapter. I want the ftp adapter to poll the *.pdf files in the specified directory on the remote machine periodically and get them to my local machine here. For this I am using ftp adapter with read operation and with opaque schemas(because I want the files as they are without any transformation). I am using a receive activity with the ftp adapter, with the create instance box checked.
    To write the file to the local machine I am using file adapter and write operation.File adapter also uses opaque schema.With this file adapter I am using invoke activity.Invoke is below the receive activity in the bpel process. I deployed this successfully on the default domain. I want the bpel process to run automatically,depending on the polling frequency given and create instances and bring the files to my machine.
    But it is not happening.
    Can anybody tell me where I am going wrong.How to accomplish this? It is very urgent issue for me.
    Thanking in advance,
    Regards,
    Deepika.

    Hi All!
    Now I am able to write files and also read files successfully with the remote server. I followed the same method described above.I am using binary format itself for pdf files.But I have to check the option 'to delete files after successful retrieval' to make this happen.I created several partnerlinks with the option in the ftp adapter not checked,but it is not working. Has anybody done successful retrieval without deleting the files at the remote server? If so please let me know.
    Thanking in advance,
    Regards,
    Deepika.
    Message was edited by:
    Deepika

  • Outbound FTP adapter directory dynamic path

    Hi,
    I tried creating FTP adapter with logical directory names.
    When I create inbound FTP adapter (get activity) and provide logical directory path, it creates activation agent and on deployment it works fine. However when I try to create FTP adapter for outbound FTP adapter (put activity) and provide logical directory path, it could not create activation agent for the same….When I add activation agent manually, I am able to compile the service locally on J Developer, but could not deploy the service into SOA Instance.
    Please update me, if anybody has made outbound FTP adapter directory dynamic path.
    Best Regards,
    Dhaval Khamar

    Dipal's note is correct for setting the output directroy dynamically, but I just want to clarify the steps you are taking.
    You say that you create the activation agent manually for the put FTP adatper. This is not required, the activation agent is used to poll locations to invoke a process. The put activity is invoked from the BPEL process and not required.
    If you are using logical directorys you partner link should look like this in the bpel.xml
    <partnerLinkBinding name="writeFile">
    <property name="wsdlLocation">writeFile.wsdl</property>
    <property name="OutboundDir">/app01/oracle/outbound</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    The nasty thing about BPEL is that if you edit this manually and you make chnages BPEL will over write this. To avoid this create a property in the partner link. Right-Click the partner link select property tab, enter the logical directory name, e.g. OutboundDir and provide a value.
    If you want to chnage this location dynamically during runtime follow Dipal's note.
    cheers
    James

  • How to change JNDI dynamically in DB adapter and FTP adapter

    Hi every one,
    Please any one explain "How to change JNDI dynamically in DB adapter and FTP adapter" with screen shots
    Thanks in advance

    YES, very much possible. Only with CRUD operation on a table is possible.
    Please refer the below URL, where you can see the multiple check box selected under "Perform an operation on a table" under Operation Type.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#BDCGADFJ
    *7) Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.*
    Going forward, please raise this as a separate thread. So that people will get benefited.
    Thanks,
    Vijay

Maybe you are looking for

  • How to remove prompt for Allow or Block message when opening a web link?

    THE ENVIRONMENT: User audience running version of Adobe Reader 5.x-8.x on Microsoft Windows XP Professional SP2 platform. Our web platform is Windows 2003 server, web site address: http://www.uzlicek.cz/default.aspx?ido=95&sh=216233947 THE ISSUE: We

  • Storing 2000 chinese characters in a column

    Hi, I have declared VARCHAR2(4000 CHAR) in my table. But it is still allowing me to store only 1333 chinese characters (4000/3byte). How do I achieve to store 2000 chinese characters in my table? Thanks. Regards DARMA Edited by: Darma on Oct 2, 2009

  • Make iMessage online

    My image has gone offline and I can't get it back online. Please help as I use for work...

  • Simple question Of variable scope

    If u do not define any scope for a variable waht is the default scope for the variable. is it private Public or some thing in between the two ????

  • Application fmobi install error

    Hi all, Just  purchased the new Fb app Fmobi from the OVi store.  I downloaded it, but when it tries to install if comes up with a error, download again.. then I get ' Unable to complete installation, download again.... did that.. still the same eror