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"

Similar Messages

  • 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

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

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

  • 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

  • Working with WebLogic81sp2 and getting error while processing a file.

    Hi,
    getting error while working with the weblogic81sp2 and java based application. In this m processing a file. the file gets processed but doing command 'ps -ef' shows process still running. The exception log is like:
    <26-Mar-2008 10:10:48 o'clock GMT> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '21' for queue: 'weblogic.kernel.Default' has been busy for "645" seconds working on the request "Http Request: /shield/xml", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <01-Apr-2008 06:50:00 o'clock BST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=197633402,name=/shield,context-path=/shield)] Root cause of ServletException.
    javax.servlet.jsp.JspException: Can't insert page '/jsp/layouts/mainLayout.jsp' : Broken pipe
    at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.processException(Ljava.lang.Throwable;Ljava.lang.String;)V(InsertTag.java:956)
    at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag()I(InsertTag.java:884)
    at org.apache.struts.taglib.tiles.InsertTag.doEndTag()I(InsertTag.java:473)
    at jsp_servlet._jsp.__main._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(main.jsp:2)
    at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:402)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:305)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:301)
    at org.apache.struts.action.RequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:1069)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(TilesRequestProcessor.java:274)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.config.ForwardConfig;)V(RequestProcessor.java:455)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.apache.struts.config.ForwardConfig;)V(TilesRequestProcessor.java:320)
    at org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(RequestProcessor.java:279)
    at org.apache.struts.action.ActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:507)
    Please help me!

    Not sure why you want to replace. Since the response of the proxy would remain to hold the request body by default.
    If you have stored the opaque element in a variable ($var_opaque), then you can do the following.
    XPath : .
    In variable : body
    Expression : $var_opaque
    Check - "Replace node content"

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

  • WCF-NET TCP Error when processing X12 file

    Hi ,
    Is it that WCF-NET TCP adapter only processes Xml file? I am trying to send x12 message through Send port wth Passthrough  Pipeline and Net-Tcp configuration, but fails for invalid root node error: (below)
    Send Port is subscribing to a Receive Port which has pass through on receive with File adapter ( I don't want to do EDI receive when receiving this file - just to convert it to Xml)
    A message sent to adapter "WCF-NetTcp" on send port "port......._InputPassThru_snd" with URI "net.tcp://localhost:808/totemp" is suspended.
    Error details: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

    The thing is, if you're using the WCF Net-TCP adapter, the receive is expecting a SOAP formatted message over TCP.  The Net-TCP binding is 'binary' because there is no encoding layer, but the message is still SOAP.
    If you really need to send binary data over TCP, you would use the BizTalk TCP/IP Adapter from CodePlex:
    http://tcpipbz2010.codeplex.com/

  • 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

  • Error while processing csv file

    Hi,
    i get this messages while processing a csv file to load the content to database,
    [SSIS.Pipeline] Warning: Warning: Could not open global shared memory to communicate with performance DLL;
     data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
    [SSIS.Pipeline] Warning: The output column "Copy of Column 13" (842) on output "Data Conversion Output" (798) and component
     "Data Conversion" (796) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance.
    can someone please me with this.
    With Regards
    litu Here

    Hello Litu,
    Are you using: OLEDB Source and Destination ?
    Can you change the source and destination provider to ADO.NET and check if the issue still persist?
    Mark this post as "Answered" if this addresses your question. 
    Regards,
    Don Rohan [MSFT]
    Regards, Don Rohan [MSFT]

  • Duplicate Records error when processing transaction file....BPC 7.0

    Hi All,
    I have a situation. I am using BPC NW 7.0 and I have updated my dimension files. When I try to validate my transaction file every single record is validated successfully. But when I try to import the flat file into my application, I am getting a lot of dupplication records error and these are my questions.
    1. Will we get duplicate records in transaction files?
    2. Even if there are duplication, since it is a cube it should summarize not display that as a error and reject records?
    3. Is there something I can do to accept duplicates (I have checked the Replace option in the data package, to overwrite the simillar records, but it is only for account, category and entity only.
    5. In mycase I see identical values in all my dimension and the $value is the only difference. Why is it not summing up.
    Your quickest reply is much appreciated.
    Thanks,
    Alex.

    Hi,
    I have the same problem.
    In my case the file that I want to upload has different row that differ for the nature column. In the conversion file I map different nature to one internal nature.
    ES: cost1 --> cost
          cost2 --> cost
          cost3 --> cost
    In my desire was that in BPC the nature cost assume the result  cost = cost1 + cost2 + cost3.
    The result is that only the first record is uploaded and all other recorda are rejected as duplicate.
    Any suggestion?

  • Java Script Error in Processing PDF file with XML

    I encounter the following error when I try to populate the pdf form with the values from an xml file.
    Acrobat JavaScript Debugger Functions Version 9.0
    Acrobat EScript Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
    Acrobat SOAP 9.0
    trustedImportXFAData is not defined
    1:External:ExecException in line 1 of function top_level, script External:Exec
    trustedImportXFAData is not defined
    1:External:Exec

    I bind the form's fields with schema and not xml instance.
    Then I add a button in the form itself and called this method for mouse click event.
    xfa.host.importData("c:\epcis_4_dec\EPCIS02.02.00%105040504%aa%01.00%01.00%05cc12af-fbfa-4 0d6-b644-e44fcaaad44e.xml");
    I get the following error. What could it be? It is almost the same error as when I call the trustedFunction.
    I have been struggling to solve this issue for weeks. The whole idea is to get the forms dynamically filled with the values from xml file.
    Pleas help :(
    Acrobat JavaScript Debugger Functions Version 9.0
    Acrobat EScript Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
    Acrobat SOAP 9.0
    unterminated string literal
    21:Folder-Level:App:trustedImportXFAData.jsException in line 1 of function top_level, script XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.importXFAData:-1:XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click
    Exception in line 1 of function top_level, script XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.importXFAData:-1:XFA:EPCISDocument[0]:#subform[0]:Button1[0]:click

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

Maybe you are looking for

  • Unable to select parameters when SSRS 2008R2 report is deployed

    I have over one hundred reports deployed to a stand alone SSRS2008R2 server.  For almost all of the reports, the standard report parameters are: DBName (an internal parameter used for an embedded connection string) Date Range (pre-set date selections

  • Need help to change some code

    Hi Experts, I am new to Java and i struck up in some java code. could some one modify the code according to my requirement please.. we hava a booking form contains the details like Destination ware house no, load number,PO number, line number.... Whe

  • SetFocus on Exit problem

    I'm using a script on the exit event to validate a text field as a date. When testing I can press the enter button and tab off the field with bad data in it. Does anyone know why this is happening? Thanks, Ken Here's the script I'm using var re = new

  • Subcontracting Process in SAP

    Hi Friends, Please help me to make me understand of subcontracting process for Automotives. FYI our Plant is a 3rd party warehouse system. Our requirement is how (which triggers) the Delivery/Delivery Due list shipment of the components of the Subcon

  • Threads waiting the same event :searching for a specific notificationfor

    hi all, i have two thread waiting an event and another who notify them //the class event public final class Event { * variable used to store the notification if it takes place * before being expected private boolean status = false; public final synch