Process empty file : file (fcc) to rfc

Hi Experts,
I have a scenario where. I have to process files and send it to rfc..
file to rfc scenario...
now basically.. when the file is empty the content conversion does not produce any payload and throws error..
can u pls help me in this?

Hello,
The problem is that XI will pick up th file with empty payload.. but as there is no content in the file...
the content conversion cannot be done
The content conversion will still be done except that it will not output anything. To do this, set your recordset occurrence to * instead of 1
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6713ec3f914ddee10000000a1553f7/content.htm
and mapping throws error...
Since there is no output, the mapping will really throw an error. What you can do is to place a dummy structure, you can use a two-step mapping to do this, in your operation mapping use Java Mapping as your first mapping and in the second mapping, your actual mapping graphical mapping e.g
1.) Read the inputstream and then check if there is a structure. If there is a structure, the Java mapping just passes it to the outputstream. If it is not, then Java mapping will write the dummy structure into outputstream. (Java Mapping)
2.) Output from 1 is passed to Message Mapping
Can you tell us the reason why empty files are needed to be processed? Because this adds overhead in the AE.
Hope this helps,
Mark

Similar Messages

  • Mapping error in file(FCC) to rfc scenario

    Hi,
    i am trying to implement mapping in file (fcc) to rfc scenario. the source file is getting picked up, but the problem is arising during mapping. i am unable to generate the target structure. i am attaching mapping structure as follows
    Source Structure                           Target Structure: RFC
    storesales                                     -POSDW-CREATE_TRANSACTIONS_EXT
         recordset                                      it_transaction
           gmd_site_101                                 item
          gmd_site_102
          gmd_site_103
          gmd_site_104
    here the recorset is mapped to item, and fields of subnode gmd_site_101 is mapped to fields of subnode item. similarly, for the other subnodes. but when testing with xml file, the target field is not getting generated. in FCC parameters, ignorerecordset name is set to "true".
    any help would be very helpful..thanks in advance.
    warm regards,
    kartz

    hi
    You can test the data using payload from SXMB_MONI in message mapping test tool so as you can get to know the reason of failure.
    It would be better if you paste the error you are getting over there.
    Check if you have maintained the namespace in CC or not. it should be same maintained if you have kept namespace in message type.
    Also check in FCC parameters you must have used ignoreRecordsetName = true
    Regards
    Raj

  • Error in processing empty files

    We have a requirement where in we the source system sends an empty file (xml,csv,txt) and XI shud process this file and send it to the target systems.
    It is a file 2 file scenario we are using.
    I have checked the option in the file adapter which says "process empty files"
    I see the Error message displayed in the Abap stack “Unable to read payload from the message object”
    Can some one point me how to process this empty file.
    Thanks,
    Nandini

    Handling of Empty Files
    Specify how empty files (length 0 bytes) are to be handled.
    ○       Do Not Create Message
    No XI messages are created from empty files.
    The files are processed according to the selected processing mode.
    For example, if the processing mode is Delete, empty files are deleted in the source directory.
    ○       Process Empty Files
    XI messages are created with an empty main payload.
    The files are processed according to the selected processing mode.
    ○       Skip Empty Files
    No XI messages are created from empty files.
    Empty files are skipped and remain in the source directory.
    These three options are available for handling empty files in XI SP 19 and PI SP 10 and above.
    Select the option :Do Not Create Message"

  • Processing Empty File in XI(SP13)

    Hi All
    In XI file adapter, can we process empty files in SP13, becuause in SP13 there is no option to process empty files.
    if yes ,please provide a solution.
    if no, so can we handle it with the customized adapter module.
    please provide the input.
    Thanks
    Rinku

    Hi,
    Follow this links
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Re: empty file pickup or not
    Re: Empty File Handling in  SAP XI------Urgent

  • Process Empty file Exception

    hi guys,
    i faced a weired problem, i got this error in the monitoring it's about processing empty files,
    i have to process empty files but without having this exception
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_R2_FILE_PROXY_: Parsing an empty source. Root element expected!</SAP:Stack>
    thank you.

    Hi
    -->In the Empty file handling we have different options as per your requirement you must and should select PROCESS EMPTY FILES options ignore the rest of the two options available.
    -->So i suggest you to bypass the IR and directly configure the ID and use dummy interface and dummy namespace so by configuring as mentioned above we can process the empty files.
    Thanks

  • How to Process empty file in Text (FCC) to Text (FCC) file scenario using G

    Interface has to pick text files from the source system and deliver on target system as text file. If the source text file is empty (zero Bytes), interface has to delivery an empty text file on target system.
    To accomplish this ,  we have developed an interface in PI system using graphical mapping and to process and delivery the empty files used empty file handling options on both communication channels. We  have used Graphical mapping to transform the source file.
    Interface is working fine if the source file  is not empty. But in case of empty file,  interface failed with an error message 'Parsing an empty source. Root element expected!' . We tried with all the available option on graphical mapping editor to fix the issue. But none of the options are worked.
    Could you please let me know how to fix this issue.

    Hi,
    If you are picking empty text file and to put the same empty text file as (FCC) on the reciever side, then need not do any mapping, Also skip IR part.
    To developing this interface, there is no need to create any objects in the Integration Repository (IR). This means no mapping. if the data is not in XML, then no mapping can be done. So, only need to work in the Integration Directory (ID).
    For this scenario we can use only with integration directory in the XI.
    Open Integration Directory and create new scenario
    Create Business Service
    Create sender Communication Channel with parameter of the source location
    Create receiver Communication Channel with parameter of the target location
    Create Sender Agreement with outbound Interface = <DummyInterface>, Namespace = <DummyNamespace> and sender Communication Channel
    Create Receiver Determination with outbound Interface = <DummyInterface> and Namespace = <DummyNamespace>
    Create Interface Determination with inbound Interface = <DummyInterface> and Namespace = <DummyNamespace>
    Create Receiver Agreement with inbound Interface = <DummyInterface>, Namespace = <DummyNamespace> and receiver Communication Channel
    Activate
    Note: The <DummyInterface> should be unique and the <DummyNamespace> can either be an existing namespace or a new namespace.
    Sameer

  • Processing Empty files

    Hi Friends,
    We got a scenario of processing empty XML files with output as empty files.
    Two possible soultions are with the help of custom modules in Sender adapters and by using XSLT mapping by adding the XML tags if the payload is empty.
    Is there is any other easy way around?
    Can anyone provide the java coding for this...
    system details XI 3.0 ,SP-18.
    Thanks &Regards,
    Sunil.

    Hi Ramesh,
    The only option left open to me is using custom module adapters to convert the empty payload to ...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_OB xmlns:ns0="http:
    MyNameSapce">
    </ns0:MT_Source_OB>
    ....before the CallSapAdapter.
    Any Help to build the EJB modules?
    Regards,
    Sunil.

  • XI can not process empty files

    Hi All,
    We have some problems as SAP is sending empty files.
    are there any way to avoid this kind of files?
    Actually an error happens when an empty file is sended. Xi is not able to process it and this empty files blocks the correct execution of the following files.
    Thanks a lot in advance and kind regards

    Hi Masters,
    We had an error this morning. This is the log:
    <i>2007-04-12 08:00:00 UTC: Error: File 'Diageo_Multisite_col.dat': Archiving to file'/data/backup/20070412-080000-296_Diageo_Multisite_col.dat' on FTP Server after processing failed: FTPEx: Transfer complete.</i>
    The file Diageo_Multisite_col.dat is Zero bytes.
    It is not important as this file will be overwrited tomorrow and the interface will be executed.
    But in other interfaces that take a lot of files, if one is empty XI does not process any of them and does not provide any log. Until Zero bytes files will be deleted XI will not process files.
    Hope it helps somebody to help me in order to understand the problem
    Thank you very much
    Regards.

  • Processing Empty Files with File adapter

    Hi..
    We are working on SP17....But  i couldn't find  the option Handling empty files in Sender File adapter...i checked the Adapter Metadata for File adapter under the SWCV- SAP BASIS 6.40 but was unable to search for the word "empty"....
    Please suggest....
    Regards
    Pravesh

    Hi
    Possibly only from SP 19 in XI and SP 10 in PI.
    you have that control. refer this thread
    File Content Conversion Problem of not generating empty file

  • Restrict processing empty files

    hi,
    hi,
    I don't want to proceesing empty files to target.iam using XI 3.0 with service pack 9.how to handle it.
    thanks

    Hi,
    you can handle it using Adapter modules....
    if you have SP Greater than 14 then you can handle it in the adapter configuration itself...........
    Stop Creation of an Empty File from File Adapter Using Module                         
    Thanks,
    Madhu

  • FCC file channel cannot process the empty file

    Hi,
    My requirement is like that a msg mapping getting two files from different sources and combining into one file and send to the receiver. There is a possibility that any one of the file can be empty.. now  problem is how to process the empty file in FCC file channel. When we trying to process the msg we are getting the error msg like "file end of exception". we already check the option empty file in file comm channel....under processing tab. But no use.Though we achieved through a module in sender channel. i want to know how to achieve this through simple content conversion by the FCC channel.
    In Content conversion. Record----> item,.. here what is mean ''? 0 to outbound or 1 to outbound?
    Regards
    Balaji

    Hi Balaji,
    here what is mean ''? 0 to outbound or 1 to outbound*
    means 0 to unbounded.
    Let me remind u ... the requirement cannot be achived in this way.. if file is empty.
    I hope u already checked the option..
    process empty files.
    I think u can handle this by, using a adapter module, in which..
    if file size(ASMA) is zero.. create a empty message and send it
    to the PI.
    Babu
    Edited by: hlbabu123 on Mar 9, 2010 2:36 PM

  • Process 0kb empty file and deliver to target directory

    Hello Experts,
    We had a requirements to process an empty file handling and send it to the receiver/target directory. We had configured to "Process Empty File" Handling and “Write Empty File. The 0KB file polling successfully and archived to the directory with empty payload, but the message output was never created/sent to the target directory. In smxi_moni error message displayed:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">CANNOT_READ_PAYLOAD</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to read payload from the message object</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Since this is an empty file, there are no mappings involved.  Is there a way to that we could check for 0kb file? If it is empty file, we want to pass/place the empty file to the target directory and if it is not empty, we want the message to process in the standard way.

    Hi David,
    "Since this is an empty file, there are no mappings involved. "
    do you mean you didnt do the mapping at all cos it is empty file ?
    though it is empty file still you need to do the mapping as usually,but when you check the option process the empty file both in sender and receiver adapter ,then it will process even an empty file comes.if you dont check these options and you get an empty file during the process then the mapping will fail.
    in real time you don't know which one is empty file right,but her you know cos you are placing empty file.
    I think you got to do all the steps you do in eneral for a scenario and top on that you have to check process empty file in both sender and receiver adapters,but you may not see the payload in SXMB_MONI.
    but search in SDn you get lot stuff.

  • 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

  • Problem about Handling of Empty Files in File Adapter

    Hello everyone,
    NetWeaver 2004s --- XI
    In Sender i have a File Adapter.
    Now i meet a problem about Handling of Empty Files. When i send empty file, but don't cerate a leer message.
    I have seen following text in help document. But in adapter configuration i can not find the correspond parameter.
    can you give me some tips?
    Thx in advance
    best regards
    Yaning
    SAP Help Document über File Adapter
    +Handling of Empty Files
    Specify how empty files (length 0 bytes) are to be handled.
    &#9675;       Do Not Create Message
    No XI messages are created from empty files.
    The files are processed according to the selected Processing Mode.
    For example, if the processing mode is Delete, empty files are deleted in the source directory.
    &#9675;       Process Empty Files
    XI messages are created with an empty main payload.
    The files are processed according to the selected Processing Mode.
    &#9675;       Skip Empty Files
    No XI messages are created from empty files.
    Empty files are skipped and remain in the source directory.+
    Help Docu

    hi,
    it's available since Sp19 for XI 3.0
    and the corresponding SPS fpr XI 7.0
    http://help.sap.com/saphelp_nw04/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
    so probably you need to install the new SP
    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>

  • Problem with „Empty-File Handling" in PI 7.11

    Hi,
    Iu2019m working in PI 7.11 with file adapter, Sender CC, option: Empty-File Handling: Process Empty Files.
    What I want to do is giving target file the system-date, if the source file is empty.
    But I always get a mapping error in RTWB: Premature end of file.
    It seems that the payload is empty.
    Any idea?
    Thanks a lot in advance!
    Rene Dong
    Edited by: Rene Dong on Aug 31, 2010 4:20 PM

    What I want to do is giving target file the system-date, if the source file is empty.
    The error you are getting makes sense. You should do a check in the mapping, if the payload is empty then use brute force to pass the system date.

Maybe you are looking for