Recordsset per message spliting failed

Hi All,
My scenario is File to File.
1) Sender file conists of 50 records
2) Receiver end it should contain 2 files with 25 records each.
My source and receiver structures are  maintained as
Source Structure : 
   Record-------> 1...1
         Data----
>1...1
receiver Structure:
  Record----
>1..1
           Header----->1..1
           Data----
>1..unbounded
           Trailer----
>1..1
Sender Comm Channel FCC parametes: 
Qos                                         : Exactly Once
Recordset  Name                 : Record
Recordset structure              : Data,*
Recordssets per Message : 25
Data.fieldNames                   : field names,......
Data.fielsSeparator               : |
Data.endSeparator                : 'nl'
Receiver Comm Channel FCC parametes: 
Recordset Structure : Header,Data,Trailer
Header.fieldNames                   : field names,......
Header.fielsSeparator               : |
Header.endSeparator                : 'nl'
Data.fieldNames                        : field names,......
Data.fielsSeparator                    : |
Data.endSeparator                     : 'nl'
Trailer.fieldNames                    : field names,......
Trailer.fielsSeparator               : |
Trailer.endSeparator                : 'nl'
My requirement in receiver end 2 files should be of with 25 records only
Header
25 records
Trailer
But i am getting only one file with 50 records
Header
50 records
Trailer.
In MONI i am able to see only one successful message .
Can any body tell me were i did wrong.
Thanks
Sai

Sai,
you cannot achive this for data. PI can split records based on Recordset and not  for a particular structure of a recordset.
you have to define  the strcuture "Data"  as RecordSet and then only PI can split the records.
Since u have 3 structures ( Header, Data and Trailer) ... u cannot utilize this "Recordset Per Message" feature. You could have if you have only one structure.
For this u can use a simple multimapping. In message mapping just make the target message type unbounded
Write a small  UDF and then count the records and then put a context change after 25 records.
U will get 2 files in the receiver.
Rgards
Biplab

Similar Messages

  • File content conversion record set per message

    Dear All,
    Problem:- File is of huge size because of which file content conversion is taking longer time and is failing.
    File format:-
    Header
    Detail
    Detail
    Header
    Detail
    Detail
    Detail
    Detail
    Header
    Detail
    Detail
    Trailer
    Trailer has total count of all detail record,header record and there are few checks as well as wrt other fields.
    We need to do all the above validation on the file and if it successful it shud process it otherwise alert shud be raised.
    As a step:-
    I have used record set per message for splitting up the file because of huge size this functionality is working fine but because of spitting of file i am not able to do trailer validation as XI is creating multiple records with different message ID's
    Is any other approch which will help to achieve both Spliting as well as validation
    chirag

    Chirag,
    simplest scenario I can think of is splitting the 2 reqs.
    1. create 2 folders, one for "in process" files and other for "validated" files.
    2. create 2 scenarios:
    2.1. your current sender system to in process folder (whatever to File).
           => In this you just do the validation, without FCC. You could create a simple module for that or even do it at mapping runtime, as you said (mapping may be easier to handle errors), and throw a runtime exception (which will eventually trigger an alert).
           => At the end, only files that go successfully throug the validation will be located in the "In Process" folder.
    2.2. do a simple file to file scenario (from "In Process" to "Validated" folder), this time executing FCC & splitting messages if necessary.
    Of course, this will only work if the module/mapping is able to process the large file anyway (hopefully yes, since it will still be a flat file and not XML yet).
    BR,
    Henrique.

  • Recordset per message in Sender File Adapter

    Hi Friends
    I have configured a sender file adapter to pick up *.txt files from a specific path, Since the file is having thousands of records it is failing to process the file at  PI level . In order to avoid the problem I have kept Recordset Set Per Message as 10 , but still PI is processing all the records into a single message. Please help me in troubleshooting it.
    Regards
    Suman.

    Hi Suman,
      Go thru these threads for troubleshooting...
    Massive file
    Processing huge file loads through XI
    Processing of huge no of Inbound xml files
    Bottleneck in Large file processing
    How to process large data files in XI  ?  100 MB files ?
    Regds,
    Pinangshuk.

  • Message processing failed, FTP Receiver Adapter error...

    Hello all,
    We have a Idoc to File(FTP) scenario using PI.
    When PI try to send the file out to the FTP site, we get the following message in the communication channel monitoring and the file never reach the FTP site:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: ConnectException: Connection timed out: connect
    When we look at the detail display, we can see that the connection as been establish with the FTP site but the adapter is unable to deliver the file...
    Any Idea why?
    Thanks in advance.

    Hi ,
    There are two things that you can do
    1- check the connection of FTP from command prompt. If it is acceebile from command prompt then check for authorization that wether you have access to post the file at FTP or not (Full access READ , WRITE and EXCECUTE)
    2- in your adpater change the connection mode from Per file transfer to "Permanent".
    Please feel free to reply on this thread if you are not able to.
    Thanks

  • I need help re-installing itunes.  I get the error message: Install failed run preupgrade for Apple Mobile Device Support.  Any solutions?

    I've been trying to upgrade to/install Itunes 10.  When trying to do so, I get the error message: Install failed run preupgrade for Apple Mobile Device Support.
    Per what I saw as a response to someone else who had a similar issue, I thought a fix might be to uninstall my existing Itunes, then try to re-install the Itunes 10.  I tried that.  However, I still get the same error message.  Now, I have no Itunes.   
    I tried to email Apple, and they have not replied.
    Anyone offer any solutions? 

    me too did you get any help?

  • Call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException

    hello
    I am running an interface RFC2WS sync and recieve this message in the RFC. the message does not get out of the XI and rich the target (WS).
    the XI been upgraded lately, and I think this might be the cuase to the problem, becuase the interface been worked before, and still working in PROD environment as is.
    what could be the problem and how can I start investigate it to find the problem?
    this is what the SAP recieves
    call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException
    Thanks
    Kfir

    Hi Kfir,
    just check in RWB, in component monitoring, the status of integration server and adapter engine.......if it is red, then ask your basis guys to remove that error................just check your comm channels, i think your comm channels are in error, if they are just edit them, save and activate them again..........i think then your this issue will be resolved.'
    Regards,
    Rajeev Gupta

  • "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio

    Hello XI guru,
    I am configuring RFC to File scneario where i am using BAPI as Source. When i run this BAPI in se37 it gives me short dump stating "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:
    Please help.
    Also I want to know is it necessary to write wrapper for BAPI before configuring. This bapi list all orders created in SCM system.
    awaiting ur advises and help
    Thanx
    Anu

    Hello guys,
    I am sorry but kind of confuse, please be with me.
    I have RFC with following structure:
    'Z_BAPI_MOSRVAPS_GETLIST2'
    importing parameters
          LOGICAL_SYSTEM = T_LOGICAL_SYSTEM
          START_TIME = T_START_TIME
    TABLES
          PRODUCT_SELECTION = T_PRODUCT_SELECTION
          LOCATION_SELECTION = T_LOCATION_SELECTION
          LOCTYPE_SELECTION = T_LOCTYPE_SELECTION
          ORDER_HEADS  =  T_ORDER_HEADS
          OUTPUT_NODES  = T_OUTPUT_NODES.
    I put values in logical system/start_time/
    product_selection/location_selection/loctype_selection
    based on these values order_heads and output_nodes is populated. I want value of these to tables to be sent as file.
    Data structure for file is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ORDER_MT xmlns:ns0="uri:scm:sql:transaction">
    - <ORDER_HEADS>
    - <ITEM>
      <ORDER_NUMBER />
      <ORDER_TYPE />
      </ITEM>
      </ORDER_HEADS>
    - <OUTPUT_NODES>
    - <ITEM>
      <MASTER_PRODUCT />
      <MASTER_PLANT />
      </ITEM>
      </OUTPUT_NODES>
      </ns0:ORDER_MT>
    But the payload has value
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:ORDER_MT xmlns:ns0="uri:scm:sql:transaction">
    remaining is not seen in sxmb_moni and payload cannot be read error is given.
    file structure is dummy structure, please tell me know if it is right or i need to change.
    Thanx
    Anu

  • Message processing failed if we receive attachments via E-Mail

    Dear ladies and gentlemen,
    we have follow proccess:
    We get some e-mails with an attachment. The E-Mail pick up the messages and send it to an RFC Channel.
    I changed the payload via the localejbs/AF_Modules/PayloadSwapBean :
    localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean TRANSFORM
    and the module configuration looks follow:
    TRANSFORM swap.keyName payload-name
    TRANSOFRM swap.keyValue MailAttachment-1
    it looks good and the payload would be swapped okay, and the mapping is also okay.
    But if we push the message to the RFC Adapter I get follow error message back:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    So now my question: If is possible, that the adapter try to send also the Body of this E-Mail to the target system ? Because the
    Message ID is the ID from the payload of the E-Mail Body.
    It is possible to keep away the E-Mail Body from the payload?
    Because we need only the attachment. Or if I I have to setup via Bean anything in the RFC Adapter ?
    Thanks
    Kind reagards
    Stephan Kohler
    P.S. The PI System is an PI 7.1, the target system would be an R/3 4.6.  I haven't  any success with the RFC Adatper version 7.10 or 6.40

    > Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    >
    Is your attachment an XML? Is this XML structure is same as what you mapping source is? If that is the case, it should be okay. Is this interface working for non-mail sender? You might want to re-import the RFC structure in to PI again.
    VJ

  • I used to be able to email photos from my Lightroom software quite successfully. I needed to change my password several days ago in my gmail account. Now when I try to email photos I receive a message saying "Failed to establish connection with the outgoi

    I used to be able to email photos from my Lightroom software 5.7 for MAC quite successfully. I needed to change my password several days ago in my gmail account. Now when I try to email photos I receive a message saying "Failed to establish connection with the outgoing email server. Please make sure you have entered the email account and password correctly."
    I have been trying to get help from Adobe for 3 days. I have sent a message through "Get Support", 2 days ago, but no one has contacted me. I have tried by phone, but no one will help me. When I purchased Lightroom in May, 2014, I was able to receive phone help. I am now told that I don't qualify because I am not a Creative Cloud customer.   I have been assigned a case number  186291729.
    PLEASE HELP ME FIX THIS PROBLEM

    I, too, have this problem. I see no one is responding with a solution? Hello? Can someone please advise?
    Oh, and, yes, I have manually verified repeatedly that the information I gave to Lightroom is correct, and I still get the same error message when I try to validate.

  • Recordsets per Message not working

    I found that Recordsets per Message will split the source message into multiple messages and process them separately.  This will save my alot of time and is exactly what I need - but it does not work.
    I have in my sender file adapter the following parameters in File Content conversion:
    Document Name = MT_SND_ZADIG
    Document Namespace = urn://federalmogul.com/ADP/FINFRADP001/00
    Recordset Name = RECORDSET
    Recordset Structure = RECORDSET,*
    Recordset Sequence = Ascending
    Recordsets per Message = 10
    Key Field Type = String (case-sensitive)
    RECORDSET.fieldNames   RECORDCODE,ACCOUNTID,CONST_E,CONST_Z2M,MONTHYEAR,JOURNALCODE,FOLIOCODE,RECORDTYPE,DAY,GLACCOUNT,CODINGBLOCK,DEBITAMOUNT,CREDITAMOUNT,TEXT,FILLER1,FILLER2,ACCREF1,ACCREF3,EMPLOYEENO,REPORTTYPE,ZADIGCODE,ACC_TYPE,RESERVED,CENTURY
    RECORDSET.fieldFixedLengths  2,6,1,3,4,3,2,1,2,12,18,13,13,20,8,8,12,12,6,4,6,1,1,2
    RECORDSET.lastFieldsOptional   yes
    When I feed in a file with 77 records I would expect it to split it into 7 * 10 recordset and then 1 * 7 - why is it not doing this?

    Hi Lynn,
    And... what is the result you are getting?
    Try to change Recordset Structure with something different that Recorset name.
    Something like:
    Recordset Name = RECORDSET
    Recordset Structure = row,*
    row.fieldNames RECORDCODE,ACCOUNTID,CONST_E,CONST_Z2M,MONTHYEAR,JOURNALCODE,FOLIOCODE,RECORDTYPE,DAY,GLACCOUNT,CODINGBLOCK,DEBITAMOUNT,CREDITAMOUNT,TEXT,FILLER1,FILLER2,ACCREF1,ACCREF3,EMPLOYEENO,REPORTTYPE,ZADIGCODE,ACC_TYPE,RESERVED,CENTURY
    row.fieldFixedLengths 2,6,1,3,4,3,2,1,2,12,18,13,13,20,8,8,12,12,6,4,6,1,1,2
    row.lastFieldsOptional yes
    Follow the example is described in:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Carlos

  • I just got creative cloud 2014 and decided to install After effects on my laptop. I get error to install Adobe Application Manager. I got AAM but installing it, I got an error message "Installer failed to initialize. Please download Adobe support advisor"

    I just got creative cloud 2014 and decided to install After effects on my laptop. I get error to install Adobe Application Manager. I got AAM but installing it, I got an error message "Installer failed to initialize. Please download Adobe support advisor" Now, the support advisor is discontinued. What do I do?
    Please anyone help me.
    Thanks

    Error "Installer Failed to Initialize" | Install desktop application | Windows

  • Help! I have recently updated LR5 and before doing so I was able to email files to clients! (Very Convenient) Now my problem is I have not been able to get pass this error message reading "failed to send" which gives no further detail about what to do to

    Help! I have recently updated LR5 and before doing so I was able to email files to clients! (Very Convenient) Now my problem is I have not been able to get pass this error message reading "failed to send" which gives no further detail about what to do to rectify the situation. Someone please guide me through this! Thanks in advance!

    Did this ever get resolved, as I am having the same issue.  Trying to learn LR5 AFTER a decade using Aperture.   I was able to set up a validated account but when I try to send an e-mail or photo I get the simple " Failed to Send " message.   Using latest version of Mac OS X.

  • I receive the message "Error:  Failed to register" when installing Adobe Flash Player 11.5.502.135 o

    I receive the message "Error:  Failed to register" at the end of attempting to reinstall Adobe Flash Player 11.5.502.135 (after a complete uninstall of all Adobe programs) on my older machine running Windows XP and the older browser IE 7.    I have tried the offline download installer and my Google Chrome browser setting is "allow all sites to run Java".  I allowed the program to run from my AVG firewall dialog box.  Windows firewall did not ask.  I am logged in as administrator.  What should I do because some programs prompt me for this install in order for some functions to work correctly.

    See if this topic contains a solution for your problem: How do I fix Windows permission problems with Flash Player?

  • How do I overcome error message "Installer failed to initialize."

    I have Production Premium CS5.5.  I need to install it on a new computer.  The files downloaded fine.  When I double-click on "Setup.exe," the install starts, but I get the error message "Installer failed to initialize."  How do I overcome that?

    Hi rcraighogan
    Please refer : https://forums.adobe.com/thread/1082848
    Re: Photoshop CS6 installer fails to initialize
    https://forums.adobe.com/thread/1588567

  • Had an error message " Installer failed to initialize" what can I do next ?

    I have Windows 8 platform and Had an error message " Installer failed to initialize"  when re installing Creatve Cloud what can I do next ?
    Also I am not able to down load any trials
    Also I cannot get student yearly plan for CC membership in Australia ?

    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    -has a link about installing and updating
    Discussion of RE-installing http://forums.adobe.com/thread/1398961?tstart=0
    http://www.adobe.com/products/creativecloud/buying-guide-education.html
    http://www.adobe.com/education/students/student-eligibility-guide.edu.html

Maybe you are looking for