Payload Transfer Empty

Trying to use BPEL Transform activity to pass the value of a non-message type (element type variable) xml node values to a message type xml variable. Payload perfectly populates in element type variable but when transformed to message type, Message Type variable contains empty payload.
Any help will be greatly appreciated.
Thanks
Vidhya

Are you passing the element variable in ora:processXSLT()?.Verify whether you are passing or not...And you should be assigning values to the element type varaible befor passign it to the transformation.And finally using a parameter in xsl.

Similar Messages

  • FtpAdapter doesn't transfer empty files

    Hi there,
    I am trying put an empty file (= 0 bytes) to another server via the FtpAdapter, using a SFTP-Connection.
    The log doesn't display any error but only the successful transmission, but on the
    destination server there is no file written. I've tried to switch from ascii to binary without success. Here's the log:
    <File Adapter::Outbound> Successful in setting up the SFTP connection
    <File Adapter::Outbound> Managed Connection Created
    <File Adapter::Outbound> Adding Event Listener
    <File Adapter::Outbound> Creating Connection
    <File Adapter::Outbound> Connection Created
    <File Adapter::Outbound> Connection manager allocated connection :oracle.tip.adapter.ftp.FTPConnection@ae401b
    <File Adapter::Outbound> Creating FTPInteraction
    <File Adapter::Outbound> Creating an SFTPSender
    <File Adapter::Outbound> SFTP Sender created
    <File Adapter::Outbound> FTPInteraction Created
    <AdapterFramework::Outbound> Instantiating outbound JCA interactionSpec oracle.tip.adapter.ftp.outbound.FTPInteractionSpec
    <AdapterFramework::Outbound> Populating outbound JCA interactionSpec oracle.tip.adapter.ftp.outbound.FTPInteractionSpec with properties: {FileNamingConvention=dummy, OpaqueSchema=true, NumberMessages=1, PhysicalDirectory=/, FileType=binary}
    <AdapterFramework::Outbound> file:/u01/app/oracle10g/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_CpOutput_1.0_0053ad28af82f0120114b2f22390139c.tmp/FtpSendDiva.wsdl [ Put_ptt::Put(opaque) ] - Starting JCA LocalTransaction
    <AdapterFramework::Outbound> file:/u01/app/oracle10g/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_CpOutput_1.0_0053ad28af82f0120114b2f22390139c.tmp/FtpSendDiva.wsdl [ Put_ptt::Put(opaque) ] - Invoking JCA outbound Interaction
    <File Adapter::Outbound> FTP outbound adapter interaction invoked : oracle.tip.adapter.ftp.outbound.FTPInteractionSpec@18bdbcf
    <File Adapter::Outbound> FTP outbound adapter write file interaction invoked.
    <File Adapter::Outbound> File Adapter received an input Record
    <File Adapter::Outbound> Waiting outside sync object.....
    <File Adapter::Outbound> Considering header for filename, output filename from header: testfile.csv
    <File Adapter::Outbound> Not Considering header for directory as it is blank
    <File Adapter::Outbound> Inside getUniqueDirectory::InteractionSpec getProcessName for [bpel://localhost/default/CpOutput~1.0/] returned [CpOutput~1.0]
    <File Adapter::Outbound> GenUtil::getUniqueDirectory::InteractioSpec [localhost_default_CpOutput~1.0_/FtpSendD//] ==> [CpOutput~1.0/CKlx14IRspFHDdTf6wtdDA==]
    <File Adapter::Outbound> MD5 BaseDir is [cut]
    <File Adapter::Outbound> Batcher created using staging : true with number of messages : 1
    <File Adapter::Outbound> ServerType: unix
    <File Adapter::Outbound> Specified ServerType: unix, using unix LineSeparator
    <File Adapter::Outbound> Input Record: javax.xml.transform.dom.DOMSource@10c1cdc
    <File Adapter::Outbound> Translating....
    <File Adapter::Outbound> Outbound Translation done.
    <File Adapter::Outbound> Refreshed (staging/num Messages) file count : 1
    <File Adapter::Outbound> Wrote to Control File
    <File Adapter::Outbound> Batching staging File: staging0
    <File Adapter::Outbound> Batcher sending to sender for output file writing
    <File Adapter::Outbound> Sending File to output Dir
    <File Adapter::Outbound> Obtaining SFTP Agent
    <File Adapter::Outbound> Putting file: testfile.csv to: / Append: false
    <File Adapter::Outbound> Put file:
    <File Adapter::Outbound> Done Writing to output file testfile.csv in dir / !!
    <File Adapter::Outbound> End clearing Control File
    <File Adapter::Outbound> Deleting staging File: staging0
    <File Adapter::Outbound> End clearing Control File
    <File Adapter::Outbound> Interaction gets a ok response
    <File Adapter::Outbound> Done with Input Record
    <AdapterFramework::Outbound> file:/u01/app/oracle10g/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_CpOutput_1.0_0053ad28af82f0120114b2f22390139c.tmp/FtpSendDiva.wsdl [ Put_ptt::Put(opaque) ] - Committing JCA LocalTransaction
    It works when the file is not empty.
    It also works, when i transfer the file manually via 'sftp', so the problem is not the sftp-Server.
    Any hints how I can transfer empty files?
    We're using 10.1.3.1.
    TIA, Roman

    Do you have the right boxes checked to sync them to your iPod:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    Did you look in the More section of the Music app?
    Have you tried using the Spotlight search> Maybe you just can't find them

  • Response Message Mapping payload is empty

    Hi,
    I have synchronous interface using webservice call from ECC . I get the response with empty payload. I checked in PI 7.4, SXMB_MONI step in the Response Message Mapping is showing empty payload. Any inputs is greatly appreciated.
    Thanks
    Misha.

    Hi ,
    As above said first have a word with your receiver system counterpart .Check with them on whether they received request payload from PI ? and whether they have sent any response to PI? .
    You will get clarity on the issue.More over if you want to check the sync scenario you can do so by using soap ui mock service.
    Regards
    Venkat

  • File payload is empty

    I'm using an FTP adapter to fetch a file. This is to be passed on to another service for processing the contents. Both the FTP Adapter and web service payloads are defined using the same schema
    1) I put a mediator in between the two components and had a transformation to take the data from the FTP Adapter and send it to the web service.
    Even though I can see the FTP Adapter read the file successfully i.e. I can view the contents of the file as part of the payload the result of the transformation is null. The input element for the web service contains no data.
    2) Using BPEL the Transformation still fails.
    Using an assign I can copy the payload to the body section of the input element for the web service. However even though this now looks like it has gone through successfully when I look at the contents of the composite behind the service I can see the incoming payload has data but again any operations on that payload fail with the system telling me the data is null. This is a service I can successfully call from soapUI.

    The targetNamespace for the incoming schema for the FTP adapter needed to be removed as pre this link
    http://soacrux.blogspot.co.nz/2010/12/processing-xml-input-without-namespace.html

  • Airdrop, CD transfer, empty file folder. How to make Airdrop work?

    I am trying to transfer a CD from MacBook Pro to an Air via Airdrop. I receive an Icon of the CD title, but locked and seemingly no data. How to fix this?

    Hey onlyamonk,
    Thanks for the question. There are a few ways to share your music with a second computer, AirDrop being one of them. For best results, you may want to consolidate the CD into a folder and the compress that folder:
    OS X Lion: Compress and uncompress files and folders
    http://support.apple.com/kb/ph4048
    After compressing, AirDrop the .zip file to your second computer:
    Mac Basics: AirDrop helps you share items with others nearby
    http://support.apple.com/kb/HT4783
    You can also learn about transferring your music via iTunes and the various methods offered in this resource:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Thanks,
    Matt M.

  • Getting payload is empty error

    Hi Experts,
    Apologies for raising same kind of same question like existing blogs..!
    I have gone through all most all the posts similar to this issue, but not able to find out root cause for my issue.
    PI is picking the .txt file from FTP, but in MONI it is getting fail by throughing  the below error message.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
      <SAP:P3>Premature end of file.</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Am using FCC parameters in Sender File adapter. Below are the parameters which am using in FCC tab
    Recordset Name: Equipment_time
    Recordset Structure : Header,1,Item,*
    Recordset Sequence : Ascending
    Keyfield name: key
    Keyfield type : String (case sensitive)
    Header.fieldFixedLenghts :  8,8,50,4
    Header.endSeparator   : 'nl'
    Header.fieldSeparator  : ,
    Header.fieldSeparator : Document_Date,Posting_Date,Document_Text,Controlling_Area
    Header.keyFieldValue  : 1
    Header.keyFieldInStructure : ignore
    Item.fieldFixedLengths  : 10,15,5,15,3,50,10,6,10,10,8,24
    Item.endSeparator  : 'nl'
    Item.fieldSeparator  : ,
    Item.fieldNames: Cost_Element,Amount,Currency,Quantity,Unit,LineItem_Text,Cost_Center_Sender,Internal_Order_Sender,WBS_Element_Sender,Cost_Center_Receiver,Internal_Order_Receiver,WBS_Element_Receiver
    Item.keyFieldValue  : 2
    Item.keyFieldInStructure  : ignore
    Below is the .txt file which am using for testing
    20140123,20140125,V,4354
    Fr2312,12345,INR,234564,veo,ForFR,France,34354,Hello,798797,veol,PolandVeo
    Could any body please tell me what could be the reason for this issue.?
    Thanks in advance..!
    Warm Regards
    Raj

    Hi Praveen,
    I have tested interface by using below FCC parameters
    Header.endSeparator : 'nl'
    Header.fieldSeparator : ;
    Header.fieldNames : Header,Document_Date,Posting_Date,Document_Text,Controlling_Area
    Header.keyFieldValue : 1
    Header.keyFieldInStructure : ignore
    Item.endSeparator : 'nl'
    Item.fieldSeparator : Item,Cost_Element,Amount,Currency,Quantity,Unit,LineItem_Text,Employee_Number,Cost_Center_Sender,Internal_Order_Sender,WBS_Element_Sender,Cost_Center_Receiver,Internal_Order_Receiver,WBS_Element_Receiver
    Item.keyFieldValue : 2
    Item.keyFieldInStructure : ignore
    But still am getting the same issue saying that..
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
      <SAP:P3>Premature end of file.</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EQUIPMENT_HOURS_RECORDING_LEGAC~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can you please guide me with this..?
    With Warm Regards
    Raj

  • PI 7.0 connecting to WebSphere MQ - Empty payload by reciever channel

    I have PI 7.0 connecting to WMQ 6.0 using JMS adapter.
    The scenario in technical terms is a IDoc to JMS scenario. For one of the message flows, PI delivered an empty message to the MQ queue.
    Having checked the audit logs and the MessagingSystem etc, there were no clues why this happened.
    In the Message monitoring, on the content tab , in the drop down, i could only see the SOAP envelope. The message content wasnt available in the drop down at all.
    Any clues why this may have happened?
    There is no content conversion and we are delivering XML to the queues.

    hi,
    In the Message monitoring, on the content tab , in the drop down, i could only see the SOAP envelope. The message content wasnt available in the drop down at all.
    Ok, but here you see the message received by your JMS, so the interest is limited. You need to compare your source message (idoc) to your target message (JMS). here's how to check.
    Go to SXMB_MONI,  select your message and then "detail" button.
    In the left tree, open the FIRST level called "Inbound Message (CENTRAL)". And under this level check your Payload (should be your Idoc sent by ECC).
    Then, in the same left tree, go to a level before "Call adapter", for instance in "XML validation Outbound Channel Request". Under this level, check your Payload (that should the XML sent to your JMS). Note: do not go in "response" level, because there is certainly no payload.
    What do you have ? does your target payload is empty ? (certainly yes)
    if yes,  that's mean it's your mapping that something is wrong. Certainly a bad context management, due to a missing "SpliByValue" or something like that. And you certainly have one target message with the content of two idoc segment, whereas this one is empty.
    To know which mapping link is bad, in SXMB_MONI, download the source message (so under level "Inbound Message (CENTRAL)", and test it i your Message Mapping.
    regards.
    mickael

  • Flat file to Idoc : Last line empty in payload

    Hello everyone,
    I'm trying to import Flat File from an external partner, and insert it in our SAP System as Idoc.
    It works fine, after a small change in the flat file.
    In the normal version, I have a last record with value 'OK'.
    I have add the close record.lastFielsOptional in the FCC.
    But after checking the payload, I have seen that I have at the end the following thing :
    <ns:File xlmns:ns="http://world.com/file">
    <record>
    </record>
    <record>
    </record>
    <record />
    </ns:File>
    Can someone explain me how to avoid to have this last <record/>, or checking it in mapping ?
    Thanks a lot

    Hello Greg,
    The problem is that the key in the flat file is 3 digit numeric field, and OK is 2 char.
    If I try to use the key, I have an error on the last record because we have only 2 char for the key, and when I put the parameter record.lastFiledsOptional : yes, i have no more error on the FCC, but the last record of the payload is empty.
    Have you a possibility to avoid this error.
    Thanks and regards
    JC

  • RFC to XI: Empty payload xml

    Hello everyone,
    We have a very simple scenarion RFC -> XI -> JDBC.
    When the rfc is executed in the backend R/3 i can see the xml in sxmb_moni
    BUT the payload is empty.
    The remote function uses TABLE instead of IMPORT / EXPORT parameters.
    Any ideas?
    Thanks in advance
    Dimitris

    Hi,
    RFC is sending the table name , check.What are all the Return values in terms of structure and also check the struture of the return /response message,
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    Problem passing a table parameter in rfc call using the function control
    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    Regrads
    Chilla
    <i>reward points if it is helpful..</i>

  • Empty payload for idoc adapter

    Hello,
    I have a file to idoc scenario with an xslt mapping. Normaly after the mapping the idoc looks like:
    <wpwuw>-
         <idoc>...</idoc>
         <idoc>...</idoc>
    </wpwuw>
    Because of the business requirements in some cases the mapping should not generate an idoc. That means I have to create an empty payload.
    The problem is that the idoc adapter creates an error for all kinds of empty messages.
    a) empty payload
    b) empty trading segment  ( <wpwuw></wpwuw> )
    c) empty idoc segment  ( <wpwuw>-<idoc/>-</wpwuw> )
    Any idea what I can do not to get an error from the idoc adapter ?
    Regards Bernd

    HI
    instead of creating empty paylaod. Use conditional(enhanced for mapping & standard for condition on Xpath) receiver determination for this and dont generate IDOC for the specified conditions.
    Thanks
    Gaurav

  • OSB: Payload validation required for empty elements inside OSB process.

    Hello
    I need to validate the payload for non-empty elements. If the payload is completely empty then OSB should throw an error that the submitted payload is empty.
    If the payload contains at least one element then it should pass through.
    As in process to test this particular one, i have tried with the following code to generally validate for an element.
    xquery version "1.0" encoding "Cp1252";
    (:: pragma bea:global-element-parameter parameter="$inputParameters1" element="ns0:InputParameters" location="../adapter/StoreProcDB/xsd/StoreProcDBService_sp.xsd" ::)
    (:: pragma bea:schema-type-return type="ns1:Validation" location="../xsd/validation.xsd" ::)
    declare namespace xf = "http://tempuri.org/StoreProc_osb/transformation/PayloadValidation/";
    declare namespace ns1 = "http://www.sigmainfo.com/validation";
    declare namespace ns0 = "http://xmlns.oracle.com/pcbpel/adapter/db/sp/StoreProcDBService";
    declare function xf:PayloadValidation($inputParameters1 as element(ns0:InputParameters))
    as element()
    <ns1:Validation>
              <ns1:Payload>{$inputParameters1/.}</ns1:Payload>
              <ns1:ValidationErrorList>
                   (: BEGIN - Required Field Validations :)
              (:     if (empty($inputParameters1/ns0:ACCOUNTNUMBER/text())) then
                        <ns1:ValidationError>
                             <ns1:code>1</ns1:code>
                             <ns1:message>ACCOUNTNUMBER: Required Field</ns1:message>
                        </ns1:ValidationError> :)
                   if (empty($inputParameters1/ns0:AUDITUSER/text())) then
                        <ns1:ValidationError>
                             <ns1:code>1</ns1:code>
                             <ns1:message>AUDITUSER: Required Field</ns1:message>
                        </ns1:ValidationError>
                   else ''
                   (: END - Required Field Validations :)
    </ns1:ValidationErrorList>
         </ns1:Validation>
    declare variable $inputParameters1 as element(ns0:InputParameters) external;
    xf:PayloadValidation($inputParameters1)
    But it throws the following error:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    REQUEST DOCUMENT:
    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    <soapenv:Body>
    <stor:InputParameters
    xmlns:stor="http://xmlns.oracle.com/pcbpel/adapter/db/sp/StoreProcDBService">
    <!--Optional:-->
    <stor:P_ACCOUNTNUMBER>00101</stor:P_ACCOUNTNUMBER>
    <!--Optional:-->
    <stor:P_AUDITUSER>venkat</stor:P_AUDITUSER>
    </stor:InputParameters>
    </soapenv:Body>
    </soapenv:Envelope>
    RESPONSE DOCUMENT:
    The invocation resulted in an error: . <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>BEA-382505: OSB Validate action failed validation</faultstring><detail><con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382505</con:errorCode>
    <con:reason>OSB Validate action failed validation</con:reason>
    <con:details>
    <con1:ValidationFailureDetail xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config">
    <con1:message>
    Incompatible elements: expected an XML instance of name "{http://xmlns.oracle.com/pcbpel/adapter/db/sp/StoreProcDBService}InputParameters", but found an XML instance of name "{http://schemas.xmlsoap.org/soap/envelope/}Body".
    </con1:message>
    <con1:xmlLocation/>
    </con1:ValidationFailureDetail>
    </con:details>
    <con:location>
    <con:node>PipelinePairNode1</con:node>
    <con:pipeline>PipelinePairNode1_request</con:pipeline>
    <con:stage>stage1</con:stage>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    But this is not the way it should be done as i progress.
    Please suggest a simple way to have a pragma with sample and complete validation for the input payload.
    Appreciate your help in advance
    Regards
    Venkat

    Venkat,
    Find below url's for implementing security policies in OSB
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/owsm.htm#CHDEEGJI
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/owsm.htm#CHDBIJHD
    http://niallcblogs.blogspot.in/2010/07/osb-11g-and-wsm.html
    http://biemond.blogspot.in/2009/06/ws-security-in-osb.html
    Regards,
    Abhinav

  • Receiver file adapter creates empty files, Empty-Message Handling SP19

    Hello,
    We have just upgraded the system to SP19.
    One of the new features is that it should be possible to determine how XI messages with an empty main payload are to be handled in the receiver file adapter.
    If the parameter Empty-Message Handling is set to 'Ignore' no file should be created if the main payload is empty. In our case an empty file (size 0 kb) is still created even though the main payload is empty and the flag is set to 'Ignore'.
    Has anybody experienced the same problem?
    //  Best regards  Hans

    This should work:
    Use your own adapter module that parses incoming message and checks if it has any record sets in the document. If it does not have any record sets, then set the message to empty and then give this modified message to File receiver.
    For example, see the example code below:
    Module imports..
    Audit log import..
    DOM imports/SAX imports..
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
              try {
                   // get the XI message from the environment
                   Message msg = (Message) inputModuleData.getPrincipalData();
                   AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
                   Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"RemoveRootTag: Module called");
                   XMLPayload payLoad = msg.getDocument();
                   Document doc = parseXmlFile(payLoad.getInputStream());
                   if(doc != null){
                        if(!doc.getDocumentElement().hasChildNodes()){
                             Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "Document is empty!!");
                             payLoad.setContent("".getBytes());
                             msg.setDocument(payLoad);
                   // provide the XI message for returning
                   inputModuleData.setPrincipalData(msg);
                   } catch (Exception e) {
                   // raise exception, when an error occurred
                   ModuleException me = new ModuleException(e);
                   throw me;
                   // return XI message
              return inputModuleData;
         private Document parseXmlFile(InputStream xmlpayload) {
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setValidating(false);
                   //        Create the builder and parse the file
                   Document doc = factory.newDocumentBuilder().parse(xmlpayload);
                   return doc;
              } catch (SAXException e) {
              } catch (ParserConfigurationException e) {
              } catch(IOException e){
              return null;

  • Empty Document Found: Problem due to FCC

    My scenario relates to a Sender File Adapter and a Receiver IDoc Adapter.  My Outbound Message Type / Data Type has multiple Complex elements which I later replicated to only three(3) Complex elements to simplify checking the issue. The elements defined in IR are as follows:
    1.EDI_DC: Element occuring once with multiple fields
    2.E2IDKU1: Element occuring 0..unbounded with multiple fields 
    3.E2EDKO3: Element occuring 0..unbounded with multiple fields
    IDirectory has a Sender File Adapter has a Communication channel with the following specifed in FCC:
    Document Name: MT_RecManager_Test_O
    Document Namespace: http://mrgnetwork.com/WF/RecManager
    Document Offset: <nothing specified>
    RecordSet Name: RecordSet
    RecordSet Namespace: <nothing specified>
    RecordSet Structure: EDI_DC40,1,E2IDKU1, *,E2EDK03, *
    RecordSet Sequence: Ascending
    RecordSets per Message: *
    KeyFieldName: SEGNAM
    KeyFieldType: String(Case Sensitive)
    EDI_DC40.fieldNames: SEGNAM,MANDT,DOCNUM,DOCREL,STATUS,DIRECT, EDI_DC40_FILLER1
    EDI_DC40.fieldFixedLengths: 10,3,16,4,2,1,6
    EDI_DC40.keyFieldValue: EDI_DC40
    EDI_DC40.missingLastFields: add
    EDI_DC40.additionalLastFields:ignore
    EDI_DC40.endSeparator: 'nl'
    E2IDKU1.fieldFixedLengths: 30,3,16,6,6,2,3,35,35,3,3
    E2IDKU1.keyFieldValue: E2IDKU1
    E2IDKU1.fieldNames: SEGNAM,MANDT,DOCNUM,SEGNUM,PSGNUM,HLEVEL,BGMTYP,BGMNAME,BGMREF,BGMLEV,BGMACC
    E2IDKU1.missingLastFields: add
    E2IDKU1.additionalLastFields: ignore
    E2IDKU1.endSeparator: 'nl'
    E2IDKU1.keepIncompleteFields: yes
    E2EDK03.fieldFixedLengths: 30,3,16,6,6,2,3,8,6
    E2EDK03.keyFieldValue: yes
    E2EDK03.fieldNames: SEGNAM,MANDT,DOCNUM,SEGNUM,PSGNUM,HLEVEL,IDDAT,DATUM,UZEIT
    E2EDK03.missingLastFields: add
    E2EDK03.additionalLastFields: ignore
    E2EDK03.endSeparator: 'nl'
    E2EDK03.keepIncompleteFields: yes
    ignoreRecordSetName: true
    The test file contents are as follows: (please note that I have pasted the file contents in this limited "Plain Text" field, the lines are wrapping around):
    EDI_DC40  4000000000000000000700 302112233445566
    E2IDKU1                       100000000000000000000000100000001LBXLOCKBX                             1                                       
    E2IDKU1                       200000000000000000000000100000001LBXLOCKBX                             1                                       
    E2EDK03                       10000000000000000000000020000000201120081114092712
    When I run the above file contents with the FCC RecordSet as follows, the Payload is empty and I receive a message that: Empty Document found. Proceed without sending message
    RecordSet Structure: EDI_DC40, 1,E2IDKU1,,E2EDK03,
    When I run the above file contents with the FCC RecordSet as follows, the Payload is correctly formed and I receive my message in the Integration Engine and can see it in SXMB_MONI:
    RecordSet Structure: EDI_DC40, 1,E2IDKU1,2,E2EDK03,1
    I want to be able to specify an asterisk "*" in RecordSet Structure as the file contents can vary for KeyFields E2IDKU1 and E2EDK03.
    I have seen various messages in SDN referring to checking the File contents and FCC and I have already done so without any results.  This feature has been widely used in PI.  Is there a change in PI 7.0.  We are currently running PI 7.0 / SP12.  Please advise.
    Channel <Channel Name>: Empty document found. Proceed without sending message.
    Please note that as stated before that if I change the RecordSet Structure and DO NOT specify an asterisk "*", I do not get the "Empty document found message" and the message actually appears in Integration Engine with a payload.
    Thanks in advance for your input.
    Edited by: Ravinder Masuta on Nov 25, 2008 3:43 AM
    Edited by: Ravinder Masuta on Nov 25, 2008 3:45 AM
    Edited by: Ravinder Masuta on Nov 25, 2008 3:47 AM
    Edited by: Ravinder Masuta on Nov 25, 2008 3:48 AM

    i missed the asterick
    RecordSet Structure: EDI_DC40,1,E2IDKU1,*,E2EDK03,*
    If you give the above recordset structure, what is the result?

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

  • File Content Conversion Problem of not generating empty file

    Hi All,
    i have 3 input text files for my BPM to process.
    if any of the text file is empty, i need to generate an alert message that the file is empty........but the problem is file adapter does not generate a XML message for the empty text file..........
    <b>Can anybody suggest how to generate the alert if any of the 3 text files is empty.</b>
    Thanks,
    Rajeev Gupta

    Rajeev~
    I dont find ur mail Id in ur Business card.Post the same..I will send you across a PDF with steps to write a adapter module.You would need to extend the same to check the payload for empty data and accordingly create a XML payload with checkpointer.
    For validating this value in a BPM use the FORK step and check the payload in the condition editor.
    Refer to this url for the same.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm</a>

Maybe you are looking for

  • How to declare a list of dates

    Hi, I have an item which type is "Display as text based on LOV". I put in the source section under the type "Pl/SQL function body" the following pl/sql function : DECLARE X VARCHAR2 (4000); Y DATE ; BEGIN X := 'SELECT distinct(TO_CHAR(DATE1, ''YYYY''

  • Big Mini Trouble with DVD and Front Row

    Set-Up I am trying to use my mac mini as a media centre connected to a 42" sharp aquos 1080HD, for sound i use a 5.1 bose speaker set-up, which is irrelevant to my problem, but the mac interfaces with a yamaha rxv661B 7.1 channel digital home theatre

  • Oracle Rules Manager - 11g Enterprise Ed. 11.2.0.3.0 64bit Prod - ORA-38441

    Hello Aravind: I'm having a problem when I try to create a rule class for an event with complex type attributes, but this is only happening in a database with this specs: - 11g Enterprise Edition 11.2.0.3.0 64bit Prod The previously specification is

  • Help with installing WindowsXP

    i just got all of the parts for my new system today and put everything together. i'm running two 120gig SATA Seagate drives in RAID 0. upon installing Windows XP, i'll get a message that says that my hard drives were not detected although it's clearl

  • Dock Display resets itself; Overheating; Loosing Bookmarks w/ Firefox

    Hello, I need help and was wondering if anybody might have an idea of what is going on with my iBook which is 2 years old. Up until a week ago I had no problems whatsoever with the laptop and all of a sudden things seem very strange... 1) I am loosin