Empty file in sender comm channel

i have issue with the empty files coming from the sender which are getting processed and getting saved in given file location.
Now the problem is,these files donot contain data and rather just gets outputted with header and trailer with some dummy data usually spaces,some zeros,-- like this...,this makes the file size of some 444 bytes or 834 bytes but as it is not having any data,we need to goto SXMB_MONI everyday,check for files,if its empty,needs to  cancel them manually because it appears in red flag.
To avoid this,i was thinking of setting the empty file option in processing of communication channel to SKIp messages or delete messages.
Am i right in this approach?
From other thread:
"Currently when a process fails in PI due to an empty file the process needs to be manually set to u201Ccancelledu201D,where to locate in PI,what could be the problem and how it is to be solved.i have asked a similar question and hope that this error will help."
please reply and show me right way of resolving this.
thanks!
cheers!
Edited by: Prateek Raj Srivastava on Aug 19, 2010 10:54 AM

Hi,
As per ur req, its nt possible in this way.
The empty file handling means the whole file is empty, the size is 0k.
So in ur req, empty file means Header and Trailer present, but no data Records.
we can achive this in following ways also,
1.write an adapter module, to check if at all there is atleast there is 1 Data record, if not throw exception there itself.
2.In the mapping check if at all there is any Data Record. If no Data Records raise exception and also the Alerts.
Babu

Similar Messages

  • Sender Comm channel issue

    Hi to All.
    I am facing a issue sender comm channel?
    comm channel is picking the file before placing the file in the source dir, the file size is some times coming morethan 6MB.
    Could you please help me on this?
    Thanks in advance.

    Hi Yadav,
    sapnote_0000821267 (as suggested by Kris)
    3. File Locking / Incomplete Processing
    Q: I sometimes observe that files are processed only partially, i.e., only a fragment from the file's start is converted into an XI message. Nevertheless, the file is usually archived completely. Does the File Sender Adapter honor if another process has locked a file for exclusive use?
    A: Unfortunately, the J2EE 1.3 technology the File Adapter is built upon does not support file locking. This limitation affects the File Adapter's operation. Depending on whether the JRE implementation for the operating system under which the adapter runs uses mandatory file locking or advisory file locking, opening a file that is currently being written to by another process will fail or not.
    If opening the file fails, no problem exists and the adapter will try to open the file each poll interval until it succeeds.
    However, if opening the file is not prevented by the operating system, the adapter starts to process the file although it is still being modified. Since XI 3.0 SP11 / PI 7.0 there is a parameter named "Msecs to Wait Before Modification Check" in the advanced settings of the File Sender channel configuration to work around this issue. This setting causes the File Adapter to wait a certain time after reading, but before sending a file to the Adapter Engine. If the file has been modified (which is basically determined by comparing the size of the read data with the currentfile size of the input file) after the configured interval has elapsed, the adapter aborts the processing of the file and tries to process the file again after the retry interval has elapsed.
    If this option is not available for the settings you would like to use, the following algorithm (to be implemented in your application) may be used to ensure that the File Adapter only processes completely written files:
    - Create the file using an extension, which does not get processed by the File Adapter, e.g., ".tmp"
    - Write the file content
    - Rename the file to its final name, so the File Adapter will notice its existence and pick it up
    Regards,
    Raghu_Vamsee

  • File adapter in comm.channel green, but no message collecting

    Hello,
    looks like this is something really at the roots.
    Ok, we are in NW2004s PI 7.0.
    One IDOC process is successfully implemented.
    Now we started with a file to file communication!
    File sender adapter is configured and shown in status green in comm.channel monitoring which would bring me to the idea that the comm.channel is configured well  (To be sure we changed the directory path in the comm.channel to a wrong one which results in an error. Ok, corrected. Now all lamps are green). Comm channel is activated and polling.
    But... nothing happens. The Adapter is not collecting the file in the source directory (existing) and there is no entry in monitoring on RWB or SXMB_MONI.
    In Adapter monitoring all adapters except the JPR (red) are with a GREY lamp!
    As we had an issue with activating the adapters (adapter monitoring before did not show any adapter (except JPR) ) two days ago we are not sure if the current issue belongs to a mistake in the configuration or in basis environment.
    From XI 3.0 side we would expect that the adapter monitoring should show adapters used in green.
    Do you have experience with such a behaviour?
    Any help is welcome!
    regards
    Dirk

    Hi Bhavesh,
    we are near to bumping our heads against the server.
    In comm.channel:
    directory is :      /      (as simple as possible)
    file name is : *.001
    The file in the directory is named it_test.001 so it should be catched.
    What can we do wrong?
    By the way: If we change the directory to  /out   which is existing we have an (file is in this directory too) error message:  'com.sap.aii.adapter.file.ftp.FTPEx: 550 /out: The system cannot find the file specified. '.
    Cache is fine!
    regards
    Dirk

  • File Structure - Sender Communication Channel

    Hi All,
    My Sender flat file structure is below like this
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    Filed1|Field2|Field3|Field4|Field5|Field6
    I did the Sender Communication Channel configuration  - Content Conversion
    Document Name : XXX
    Document NameSpace: XXXX
    Recordset Structure: MT_Test,*
    Recordset Sequence: Ascending
    Key field Type: String Case-Sensitvie
    MT_Test.fieldNames: Filed1,Field2,Field3,Field4,Field5,Field6
    MT_Test.fieldSeparator: '|'
    MT_Test.additionalLastFileds: ignore
    MT_Test.endSeparator : 'nl'
    ignoreRecordsetName: true.
    But its pick the file, In SXMB_Moni show Currect...
    But in Runtime workbench, in Communication Channel moni, it show below like this,
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_Test xmlns:ns0="http://XXXXX">
    <JOBS />
    </ns0:MT_Test>
    What is the Issue, where i missed some thing, In message mapping, its correct..
    Thanks.
    SR

    SR,
    I am still little confused with your below statement.
    But its pick the file, In SXMB_Moni show Currect...
    But in Runtime workbench, in Communication Channel moni, it show below like this,
    >
    > <?xml version="1.0" encoding="UTF-8" ?>
    > - <ns0:MT_Test xmlns:ns0="http://XXXXX">
    > <JOBS />
    > </ns0:MT_Test>
    You mean to say that in MONI, the mapping output is fine, but when you check the output at RWB -> CC Monitoring for the Sender Channel, then you get the above mentioned XML?
    This means that there is nothing wrong with your source CC settings. If the entry in RWB -> Sender CC is wrong, your MONI entry will never be right. So, this is really weird.
    What is the source structure that you have defined in DT?
    Regards,
    Neetesh
    Edited by: Neetesh Raj on Sep 29, 2009 2:31 PM

  • ***Empty File handling,sender .txt file

    Hi All,
    Can we use the option Empty file Handle if the sender is a text file.
    if so how to achieve this.
    Thanks,
    Srinivasa

    Hi,
    Refer the section of 'Empty File Handling' from the below link:
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    You will get the required result.
    Regards,
    Supriya.

  • XI-Multiple instance scenario -File & SQL sender communication channels

    Hi
       i have a basic question regarding how file sender communication channel ( where we poll for a particular file pattern either using file/ftp types in a particular subfolder ) or a sql sender communication channel - ( selecting records from a sql source ) would work in a scenario with two active XI instances and j2EE file and sql adapter services running on both of the J2EE servers ?
    1. How would the file polling from both J2EE servers - avoid a conflict looking for the same file pattern ? Is there any inbuilt mechanism from SAP to make multiple instances work with the file polling - without a confict ?
    2. Simlar question for SQL sender type communication channel ?
    If SAP does have a mechanism to handle multiple instance scenarios for file and sql sender adapter based communication channels, is there a link/document on this ?

    Hi Karthik,
    Please see my comments.
    I am just wondering aloud - what will happen if we use a select for update clause in the sql sender adapter communication channel -
    Gouri: Yes you can use select + update. In fact that is the right way.
    will this ensure that polling from one J2EE instance will lock the selected records so that the second instance does not select the same set of records from the sql server ? Or should we not use a select for update and use a simple select statement ?
    Gouri: Yes. SQL DB will ensure that same data will not be picked by another node. As I mentioned earlier use serilizable option from advanced mode.
    -Gouri

  • Sender Comm Channel

    Hi,
    what is the queue that appears when i select qos mode as EOIO in File Sender Communication Channel. and what value should i specify there.

    Hi
    As Sudir Said, you can use the SMQ1 and SMQ2 are used to monitor the queues.
    check thrrugh these blogs for more info on queues
    XI :  How to Re-Process failed XI Messages Automatically
    XI Asynchronous Message Processing: Understanding XI Queues -Part I
    Regards
    Goli Sridhar

  • Polling/Sender comm channel in clustered environment

    Hi Experts,
    Our PI7.1 system is currently setup on two java clusters.
    I was searching for a guide on how to handle polling using these two clusters, but it seems I can't find one yet.
    Do you know where I can find these?
    What we were trying to do is disable a comm channel in one node but leave it enabled on another node.
    Many thanks!
    Regards,
    Lex

    Lex,
    As far as I know we dont need to do anythign manually. It should take care automatically once you tuned all the necessary tuning parameters.
    Regards,
    ---Satish

  • Error sender comm.channel

    R/3 sends the idoc to the file folder in UNIX, created file adapter to pick the file was given the file path correctly but in communication channel throws out the following error.
    ( i have to do any configuration )
    3/15/07 2:33:46 PM Retry interval started. Length: 60.0 seconds
    Error 3/15/07 2:33:46 PM Configured source directory '/usr/server/61/editest/comm/fromsap/2007/03_2007' does not exist
    3/15/07 2:33:46 PM Processing started
    Error 3/15/07 2:33:00 PM Retry interval started. Length: 60.0 seconds
    the directory was there, did i missed any please some one help me.
    thanks
    nivas
    Message was edited by:
            nivas nerusu

    Hi,
    the path to your folder must be correct
    is it a shared folder?
    if not use it with drive letter like: c:/something/usr/server/61/editest/comm/fromsap/2007/03_2007
    Regards,
    michal

  • 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.

  • Seeburger AS2 sender comm channel config

    Hello,
    I have to put in place a scenario for message reicipt of EDI messages via Internet using AS2 on http.
    We use the seeburger AS2 adapter.
    I try to configure the AS2 sender adapter, but there are many options, which I do not know how to fill, and which aint documented either.
    I use the following config:
    Tranport Protocol: http
    Message Protocol:AS2
    Adapter Engine: Integration Server
    AS2 Authentification neccessary: When do I have to set this?
    Message Title: *
    Asynchronous MDN configuration
    SSL certificate alias: where do I get this from?
    SSL client certificate: what do I put in here?
    use proxy: Do I specify the data of our SAP Web dispatcher here?
    Thanks
    Matthias

    HI,
    See the below links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/135b0b94-0701-0010-f6a9-86a14057544a
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield
    http://www.stylusstudio.com/edi/XML_to_X12.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
    Details on XI EDI adapter from seeburger
    Check this for Conversions-
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    SAP Adapters
    EDI with XI
    http://www.seeburger.com
    http://www.seeburger.com/fileadmin/com/pdf/SEEBURGER_SAP_Adapter_engl.pdf
    http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
    http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
    http://www.sap.com/asia/company/events/nwtechdays/presentation/australia-slides/Pre-Built_Integration.pdf
    seeburger adapter configuration
    Regards
    Chilla

  • 'No SOAP envelope' in Sender Comm.Channel

    Check if XMLAnonymizer bean could be used on your sender adapter side and replace the SOAP namespaces with the ones defined in your SWCV.
    VJ

    Hi Rodney,
    I have few questions for you. Have you created message mapping according to ur target structure mentioned above ? It it is fine, then go the test tab of message mapping object and perform mapping, let me know if you have any issues there.
    One more query, are you request message mapping exception unable to put the data in /target structure, otherwise let me know the error.
    Thanks,
    RJ

  • How to Process an Empty File and deliver to the receiver channel

    Hello Gurus,
    We had a requirements to process an empty file and send it to the receiver channel .  We had successfully configured and polling an empty file, but the message output of the empty file was never sent to the receiver channel.  Is there any solution to process an empty file and move it to the receiver directory.
    XI 7.0 with latest sp
    Thanks so much in advanced,
    dn

    Thanks guys for a quick response!
    As mentioned above, we had already configured to handling "Process empty files" and were able to have the files polling successfully. The problem that we are facing is that, the output file were never created or delivered to the receiver directory. We want all files to process and deliver to the recipients even though it is an empty file.
    Thanks,
    David

  • None of the file Sender Communication Channels are wotking in Prod-Urgent

    facing a wierd situation, since yesterday all of my File Sender Comm Channels have stopped picking up files.This is in Production and was working fine day before.When I check in Comm channel monitoring the Channels are started and Functioning and also shows me that they are polling for the files.But no file is picked though files exist in the directory.These channels have been working fine since months and nothing had been changed since then.Suddenly all of them stopped picking up files.
    I have about 10 Comm Channels that pick files, Is this related to Adapter Engine....any suggestions on this would be really apprecated.
    Thank You.

    Hi!
    Check access rights on your files. Try to set them to 777 (using chmod). Maybe this will help.
    Problem is, when the XI does not have rights for picking up files, you see no errror message in CC monitoring and everything seems to be ok, but it is not..
    We faced the same problem.. And we figured out, that our partner started to upload files with different access rights.
    Peter

  • Handling empty files Using SFTP adapter

    Hi folks,
    Can any please let me know how to handle empty file handling in SFTP adapter as a sender.
    I getting error in sxmb_moni while empty file coming in sftp adapter. Please help me on this issue.
    Thanks,
    Enivass

    Hi,
    please select option "Empty file Handling-*do not create Message*" in sender comm channel as per your requirement.
    Try this.
    Reg

Maybe you are looking for