File Adapter Acknowledgement in BPM - NEW Question

This is in cntinuation of my earlier question:
File Adapter Acknowledgement in BPM
Now I understand that the send step should wait to get the acknowledgement from file adapter.
As I understand This ack may be +ve or -ve.
<b>So my question is how do we test for + ve acknowledgement in the next step / switch?</b>
Thanks,
HImadri

hi,
in condition editor of this switch step you need to choose technical objects
and check it they = true
for sender apps
you can also use Main/MessageClass field 
have a look at the bottom of this page to
check their values:
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • File Adapter Acknowledgement in BPM

    Himadri,
    You cannot achieve this unfortunately
    Reason is that file adapter supports only Transport Acknowledgements. What this implies is that the BPM checks only if the message is sent from the BPE to the Adapter Engine Successfully. It does not check to see if the file is written in the target destination.
    Just try this, give an incorrect folder ( or something of this sort ) in the file adpater and try Transport Acknowledgement. Wrap this around an exception block. You will be surprised that the exception block is not called.
    Reason like i told is that the BPE thinks it is successful as the message has been passed to the adapter engine.!
    Regards
    Bhavesh

    Sandro,
    Thanks for that input. Actually tried the same on my XI box and what you have told is absolutely correct.
    Until the transport acknowledgement is not received for the first send step, the next send step will not be called! I seem to have forgotten something somewhere or my observation which I had given earlier was with respect to some othe scenario which am not able to recollect!
    Himadri~~ Apologies for the incorrect answer. Transport Ack's should do the trick for you like correct pointed by Sandro.
    Thanks,
    Regards
    Bhavesh

  • Acknowledgement from receiver file Adapter with out BPM

    Hi Gurus,
    I am trying to get Acknowledgement from Receiver file Adapter with out Using BPM.
    Here is the scenario. I am sending files from different Sender Adapters. There is only one target that is File Adapter. After each successfull and failure transaction I need an Acknowledgement that needs to trigger another receiver adapter and send the the file name and timestamp to that file.
    Hope this is a complicated scenario. Please help me.
    Thanks,
    Kevin

    from sap note 821267
    6. Acknowledgements
        * Q: Does the File Adapter support acknowledgements?
        * A: You need to distinguish system acknowledgements (indicating that a message has been received by the target system) and application acknowledgements (indicating that the message has been successfully processed by the application on the receiver side).
               The receiver of an XI message will only send an acknowledgement back to the sender if the sender has requested one. However, the File Adapter has no functionality that relies on the receipt of an acknowledgement, so it never requests one.
               On the other hand, if a File Adapter Receiver receives a request to send an acknowledgement, it will do so for a system acknowledgement request. Application acknowledgements are not supported at all as the File Receiver has no way to determine if the written file has been correctly processed by the back-end application, which is what a positive application acknowledgement would imply.
    this means that your requirement is ideally not possible without a BPM

  • File adapter instances for BPM processing

    I have two doubts. If I have a single file adpater polling an Input folder and the reciever is the BPM,and i have multiple files in the same folder to be picked up by the File adapter. Will the files be qued up to be picked by the file adpter, or will there be a multiple instances of the file adapter internally ?
    The second issue is that, if i have multiple instances of BPM using the same outbound file adpater, then will the outbound messages be qued up or sent parallely
    Please share any ideas on this.
    Regards

    Hi,
    1) Files with the same name cannot be in 1 folder. so if you need to pick up (say 3 files) u need to create 3 File sender channels and associated these channels to the corresponding sender agreements. So when ever an adapter find sthe file it will pick it up. So there will be queuing up at Adapter level.
    2)In the secod case, all instances of BPm will send to the same file adapter, and the files will get overwritten unless you specify somethign like "append messad" or "add time stamp"
    3)Each instance of your BPM is an indivual process. It doesn't care if the instace1 RFC has been suceessfully processed or not. So when file2 is sent, BPMInstance2 is created and RFCadapterInstance2 gets started processing....
    Hope this helps you.
    Cheers,
    Siva Maranani.

  • File adapter. Only get new files

    Hi there,
    I have a small problem that I'm not able to solve that easily with XI.
    I have some directories that I need to get files from on a remote server. The only problem is i need to get only the new files and I am not allowed to delete the old files. Since we are not the only one getting those files.
    So far I have not found any option to keep the old files and only get the new ones. Does anybody know a neat trick to get only the new ones?
    Regards,
    Wietse

    > Hi again Wietse,
    > After configuring the file adapter the way i
    > mentioned,check for performance, you might need to
    > install remote Adapter engine if you have some FW
    > problems or other security barriers that turn the
    > processing of this file to a hassel over the net.
    >
    > Nimrod
    Problem still is I am not allowed to do anything else then ftp/get on the files. I can't install a remote adapter engine or change anything to the files.
    I hoped that it would be possible to store the filenames somewhere and compare a dir listing to the stored filenames before the real get is done. But even when writing an adapter module, the file will already be in the adapter once the module kicks in. And I don't want to get old files that I've already processed into my system since there is a huge history of files on the machine.
    I think I might end up writing a perl script that searches for the new files and gets them and them sends them through to XI using a SOAP call.

  • File Adapter Acknowledgment

    Hi,
    My scenario is Proxy -> PI -> File
    I am returning an acknowledgment but we have a strange problem. At first when the scenario was successful it was returning code (status) 77 and when there was a error it returned code (status) 75. But know when we test it, it returns 75 but the scenario is successful. The file gets written to the FTP.
    Has anybody more knowledge on these status codes and on file acknowledgment?
    Best Regards.

    My mistake. It returned "0", meaning no acknowledgement yet received.

  • File Adapter inserting New Line

    All -
    I'm stuck on this one.  Would anyone know why the File adapter would insert a New Line at the beginning of my file?  The file is output correctly with the exception of a blank line at the very beginning of the file.
    Are there any conversion parameters I need to supply for the receiver file adapter?  I currently have:
    data.endSeparator = 'nl'
    data.fieldFixedLenths = 30,30,15,3
    data.fieldNames = F1,F2,F3,F4
    data.fixedLengthTooShortHandling = Cut
    Thanks,
    Dave

    Ok, found the issue!
    The File Adapter is configured as FTP and when the file is FTP'd to the target directory and viewed using Internet Explorer, a carriage return/line feed is added to the beginnig of the file.  When I FTP the file from the remote directory to my local directory and then view the file, it's fine.  Not sure why Internet Explorer changes the formatting of the file.
    Bottom line - the remote file is fine.
    Cheers,
    Dave

  • Sender File Adapter picking the same file twice

    We are facing a weird issue with File Sender Adapter
    We are using PI File Adapter ( NFS ) to read files for a NFS folder and
    processing those in PI.Normally it works fine. But for a scenario we
    are noticing it sometimes process the same file twice before archiving,
    thus duplicating the financial postings.
    What we have is :
    File Sender Adapter - NFS, Polling interval 60 secs, and Processign
    mdoe Archive. File name includes Wildcards - JE_Upload*.txt
    what we are noticing is that :
    when it picks up a file, it immediately polls again to check for
    another file, and sometimes the file is not yet archived so it picks up
    and reprocess the same file.
    If you see the message below, both belong to the same file, and it
    picked up the same file again in 12 secs after processing it the first
    time
       Successful 02.11.2009 15:01:00 02.11.2009 15:01:01   APMANUAL     urn:bl:i2g:003:100
    SI_SKF_FIDOC_OB XI Message
       Successful 02.11.2009 15:00:49 02.11.2009 15:00:50   APMANUAL     urn:bl:i2g:003:100
    SI_SKF_FIDOC_OB XI Message
    Anyone seen this behavior before?

    Hi,
    Please check the script which creates file in source NFS Folders. There is possibility that script is making change in file when PI is picking up the file.
    When PI picks the file first time it creates one message ID in system. After that if script is making any change in file without file name change (This need not necessary data change), for PI it becomes new file and new message gets generated in PI for same file.
    This error normally comes when File adapter is not able to archive file succesfully. For eg. file with same name alredy exists in Archive folder.
    File adapter generates the new message id whenfile get modified(eg.change in its length or data change) even though
    the file name is same and when file get change ,XI file adapter thinks that its new file and hence generate the new message id for same file.
    If file has same name and notmodified then XI adapter will not generate new message id and will keep on throw the error till you remove that file with same name from the
    archieve directory.
    -Warm Regards,
    Gouri

  • Weird problem in File Adapter polling

    Hi Guys,
    My BPEL process is working fine not until today wherein the File Adapter cannot poll for new files in the target directory. I tried restarting the bpel server and still my bpel process was not able to poll for new files. I tried creating a test bpel process and configure the file adapter (see below):
    Operation Type: Read
    Archive processed files: Enable
    Delete files after successfule: Enable
    Include files with pattern: *.csv
    Publish messages in batches of: 1000
    Polling frequency: 5 seconds
    Minimum file age: 0 seconds
    Sample File: test.csv
    12345,12345,12345
    When I tried testing it, the file was deleted but it was not able to archive the file and bpel process did not appear in the instance tab of BPEL console. I have check the domain.log and orabpel.log files and it didn't show any exceptions or error (log level is set to error)
    Any idea how to fix this problem?
    FYI, I'm using the version 10.1.3.1.
    thanks,

    What does your process do other than poll files, does it call any other adapter / service. This is more likely the issue although I have seen issues with the file and ftp adapter in 10.1.3.3 and 10.1.3.1. I never sorted the issue it just seemed to affect that process.
    10.1.3.1 is really out of date and has a number of issues you should look at upgrading to 10.1.3.4 or 10.1.3.5 but I have seen some posts that have issues with 10.1.3.5.
    cheers
    James

  • ESB - How to add filter to avoid file adapter to start executing?

    I have an esb project with first a file adapter that reads incoming XML files. Mapped with a database adapter that calls a stored procedure that inserts data in certain tables. The output parameter of this stored procedure is of type pl/sql table and contains data of an error if an error has occurred while processing the procedure. A new file adapter will create a new file with the content of the output parameter. But if the outputparameter is empty it will give an error.
    Is there a possibility to add a filter to avoid that the file adapter starts trying to create the error file?
    Thanks,
    Els
    Message was edited by:
    user644760

    Hi Els,
    A possibility is to add a routing service in between the database invocation and file adapter with a single routing rule. Add a filter to the routing service to test whether the input is empty.
    Regards, Ronald

  • Schedule file adapter

    Hi All,
       <b>Is it possible to Schedule file adapter without using BPM.
       Ex for same scenario:
       file 1
        field 1 = 'a'
       file 2
        field 1 = 'b'</b>
    I want to post 'file 2' only after 'file 1' successfully posted in SAP.
    If 'file 1' not posted successfully then 'file 2' will not post and wait in XI for 'file 1'.
    <b>Note:</b>Thease two file's using same Message Type in SAP, i.e. both are belong's to same scenario's.

    As Udo said it is not possible without using (as of now).
    If you have not seen these docs, check them out.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d458a870-0601-0010-caab-b99c79741964
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4f61fddf-0601-0010-7ab5-fb749538f6ab
    regards
    Shravan

  • Acknowledgment in File Adapter

    Hi,
    I tried a BPM that receive from a SOAP and
    writes into a file. I need BPM because of
    alerts.
    Because I started a s/a-bridge, I would like
    to send the soap adapter a response (like an
    errorcode). The sender step got a field
    Acknowledgement. How can I use this? In SAP XI
    documentation it says that the receiver got to
    send an acknowledgement, but I can't find how
    a file communication channel can send an acknowledgement.
    Any experiences??
    thanks
    chris

    I think there would be an alert if the file adpater
    could not reach the file system if I build my
    integration prozess like this:
    -> block with exception -> open s/a-bridge -> send to file -> close s/a-bridge
    The exception should close process with a control step.
    So, if I would like to close the message with a message that included an errormessage field and fill this field with a constant, how can I do this? Do I have to add a transformation step?
    I have:
    Message-types:
    - a request for soap
    - a response for soap
    - a request for file (it's not necessary, but I would like to split of web service from writing structure)
    Interface:
    - a sync out for web service
    - a sync abs for BPM
    - a request abs for BPM (web service)
    - a response abs for BPM (web service)
    - a request abs for BPM (file)
    Mapping:
    - sync out to sync abs (web service)
    - request abs (web service) to request abs (file)
    - ??? One for mapping constant into repsonse?
    how can I do the mapping of the constant, if I don't
    have a file response??
    thanks
    chris
    Message was edited by: Christian Riekenberg

  • Setting directory dynamically in File adapter in BPM 11g

    Hi,
    I am using file adapter in BPM 11g for writing perpose. While configuring, it is required to provide the directory location, which can be either physical path or logical. The location where the new file will be stored/saved is written in a text file. I want to fetch the location from that text file and want to store the new file in that particular location at run time. Please help !!!!

    Hi,
    You can dynamically set -among others- the outbound directory and outbound file name for a File Adapter. See: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#CIACICFD. If you need to retrieve the information beforehand from another file, you could use a synchronous read. See: http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#BABDCEBE.
    Ronald

  • New Bee, Help File Adapter

    Hi ,
       I am new to XI , I have a basic question on file adapter.
        I have configured a file adapter to pick a file with name abc.txt and delete it. Assumes my total scenario takes 30 min to complete. If i get another file in the source folder after 5 min. Does XI process the second file also parallel. Or does it finish first file and then process the second file?
    Regards
    Monika Dietz

    Hi,
    >>>>Or does it finish first file and then process the second file?
    the file adapter will pick the file as soon as possible
    from the folder but you can set quality of service
    EOIO so it will wait until the first one will finish
    (and other parameters in the integration eigine
    so your flow will be processed by one queue only)
    but basically it will be processed in paralel
    (with standard config)
    reference:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards,
    michal

  • Problem receiving acknowledgement: abap proxy == file adapter

    Hi experts,
    I am developing an asynchrone interface using PI 7.0. The scenario is: SAP ==> FILE.
    In SAP I have created an abap proxy in wich I requested an acknowledgement when calling from the abap code. In PI I have created an Integration Process with a receive step, and a send step. In de send step I am asking for a transport acknowledgement.
    When I test the interface and I look in the SXMB_MONI in PI, I see the acknowledgement given back to the IP, but in the SAP backend system I don't receive anything in the abap proxy which had send the original message. In de SXMB_MONI from SAP I see a "?" Still awaiting  acknowledgement.
    Can anyone help me with this scenario? I really need an acknowledgement from the file adapter in the calling abap proxy.
    Regards, Jeroen

    You need to crate a REceiver Agreement for this sender...
    The Integration Server sends an acknowledgment message back to the sender (CENTRAL_BACK). It uses the name of the sender system for logical and technical backward routing.
    If the sender is addressed using an ABAP proxy, you must define a corresponding receiver agreement for this sender.
    http://help.sap.com/saphelp_nw04/helpdata/en/29/345d3b7c32a527e10000000a114084/content.htm
    -SM

Maybe you are looking for