Flat file with fixed lengths to XI 3.0 using a Central File Adapter---Error

Hi
According to the following link
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
In Adapter Monitor I got the following error,
In sender Adapter,
Last message processing started 23:47:35 2008-10-25, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
  last retry interval started 23:47:35 2008-10-25
  length 15,000 secs
some one help me out ?
Thanks
Ram

from the blog you referenced -
<u> /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
<b>goto step 4</b>
<u>additional parameters</u>
add as the last entry
<recordset structure>.lastFieldsOptional            Yes
e.g.,
  Substr.lastFieldsOptional            Yes

Similar Messages

  • Send a flat file with fixed lengths to XI 3.0 using a Central File Adapter?

    Hello,
    I'm wondering if someone have experience setting up conversion for different record structures. The example shown,
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter,
    (in a greate way) only picture one kind of structure.
    How should it be done if the file would contain
    10Mat1
    20100PCS
    The first record structure has columns
    ID(2),Material(10)
    The second redcord structure has columns
    ID(2),Quantity(3), Unit of messure (3)
    Brgds
    Kalle
    Message was edited by: Karl Bergstrom

    The configuration would be like follows:
    Content Conversion Parameters:
    Document Name: <your message type name>
    Document Namespace: <your message type namespace>
    Document Offset: <leave empty>
    Recordset Name: <any name>
    Recordset Namespace: <leave empty>
    Recordset Structure: row1,,row2,
    Recordset Sequence: any
    Recordsets per Message: *
    Key Field Name: ID
    Key Field Type: String
    Parameters for Recordset Structures:
    row1.fieldNames           ID,Material
    row1.fieldFixedLengths    2,10
    row1.keyFieldValue        10
    row2.fieldNames           ID,Quantity,UOM
    row2.fieldFixedLengths    2,3,3
    row2.keyFieldValue        20
    Instead of row1 and row2 you can choose any name.
    Regards
    Stefan

  • FTP connection error whil,e using flat file adapter error

    while using file adapter in the reciever end for proxy to file
    i am giving  paranters like server IP address and the port , i dont know which port to give by default it is giving me 21 , anyway how to check whether the connection is correct
    and more over
    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
    please help me in this thanks

    HI Sridhar ,
    First check wether server started or not and then check you are connecting to FTP server by
    go to run -> cmd and write ping and ipaddress which is used and see whether u r getting reponse from teh FTP server.
    Try to login to the ftp server which you have mentioned in CC using the user name and pwd, to chk whether you have the permissions to login to the server.
    Also the check whether the folder you are trying to access is having permission for delete/read/write.
    Restart the FTP server and try it again.
    Regards
    Sridhar Goli

  • Interface output file : tab limited vs flat file with fixed length

    hey guys,
    any idea on difference b/w to file type : flat file with fixed length or tab limited file
    thanks

    Tab Delimited:
    Two Field are seperated by a TAB
    eg. SANJAY    SINGH
    First field is First Name and Second is Sir Name.
    Nth field will be after N -1 tab
    Fixed Length:
    Every field has a fixed starting position and length
    eg. SANJAY     SINGH
    Here First field start from Position 1 and has lenght 10 and 2nd field start from 11th postion and has lenght 10.
    Fixed Length -> The lenght of each field is fixed, while in tab delimited the lenght of field is not fixed but we know it ends when the Seperatot (Tab) is encountered.

  • Is it possible to display a waveform with fixed length and fixed starting point?

    Hi,
    I am using DAQ assitant to acquire voltage and current measurment of my device. The voltage is a pure sine wave and current is a periodic waveform with phase difference and distortion. I use waveform chart to display the waveform of voltage and current waveform in seperate charts and they work fine.But the waveforms look like moving to the right all the time, in another way ,the phase is always shifting. Now i want to display the waveforms of both with fixed length (say 2 cycle) and also in a same chart. Apart from that, i also want to display the voltage waveform starting form 0 degree (a fixed point )rather than moving all the time. In this case, i can observe the angle difference between voltage and current. Is there any method to achieve this purpose?
    Many Thanks,
    Hao

    Hao,
    first of all, you are using a chart which has three options for updates if the chart is "full":
    Strip chart (default)
    Scope chart
    Sweep chart
    These are called "update mode". Test the modes yourself.
    Also you have to know that you will not likely have an integer number of periods of your signal in the display of the chart. Therefore, a continuous signal will "move" the graph from update to update.
    You can implement some algorithm to discard data to maintain a static "trigger" level for display, but as stated, it will leave gaps in the signal. These gaps are not a concern unless you use the displayed signal for analysis (e.g. FFT).
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • What is a Flat file adapter?

    What is a Flat file adapter?
    What is a Planning adapter?
    What are all the adapters required to load the data from Excel to Planning application?

    I agree with Gary in his previous post that users should do some effort to search before posting here. This forum is meant to post and answer only problems and difficulties developers face and that NOT normally covered in manuals or references, so this is not to define a keyword or explain a process that is covered in the documentation.
    Please refer to your documentations, Google your question or use en.wikipedia.org before posting in this forum.
    Thank you.

  • File adapter error after updating to SP19 (INBOUND_BINDING_ERROR)

    File adapter error after updating to SP19 (INBOUND_BINDING_ERROR)
    Hi all,
      im having some troubles after the installation of SP19 (from SP16 in NW04) with File Adapter (File->Idoc scenario).
    In message monitoring (Adapter Engine), I have several messages with status "System Error". The error text is :
    <i>Received XI System Error. ErrorCode: INBOUND_BINDING_ERROR
    ErrorText:   ErrorStack: Error in sender agreement for party '', service 'LEGACY_DEV', interface namespace 'http://XXXXX.com/XXXXXX', interface 'INTERFACE_OB' No sender agreement found for , , , , ,</i>
    Im sure that the Integration Directory settings have not been changed. So I tried the following, but the problem persists:
    - Deactivation/Activation of File Adapter channel
    - check that user XIISUSER is not locked
    - checked SXI_CACHE (it seems ok)
    - Many CPA full refresh
    - Dummy modifications of File Adapter channels (a dummy modification of the description)
    - Reboot J2EE
    I've seen that someone else had problems after upgrading to SP19. I'd really appreciate any suggestion of how to solve my issue.
    Thank you
    Manuel

    Hi Prabhu,
      I've already tried to restart server, but nothing happened. (Before update to SP19, the interface worked well).
    This is the error log from message monitoring:
    <i> 2007-01-16 16:37:34 Success Channel cc_File_Snd_Bolle: Entire file content converted to XML format
    2007-01-16 16:37:34 Success Send binary file  "BOLLE_20061229142059.CSV" from FTP server "AS810T:/sapinbound", size 8733 bytes with QoS EOIO
    2007-01-16 16:37:34 Success Application attempting to send an XI message asynchronously using connection AFW.
    2007-01-16 16:37:34 Success Trying to put the message into the send queue.
    2007-01-16 16:37:35 Success Message successfully put into the queue.
    2007-01-16 16:37:35 Success The application sent the message asynchronously using connection AFW. Returning to application.
    2007-01-16 16:37:35 Success The message was successfully retrieved from the send queue.
    2007-01-16 16:37:35 Success File "BOLLE_20061229142059.CSV" successfully archived on FTP server "AS810T" as "/sapinbound/bolle/20070116-163735-245_BOLLE_20061229142059.CSV"
    2007-01-16 16:37:35 Success The message status set to DLNG.
    <b>2007-01-16 16:37:35 Error Received XI System Error. ErrorCode: INBOUND_BINDING_ERROR ErrorText:   ErrorStack: Error in sender agreement for party '', service 'LEGACY_DEV', interface namespace http://XXXXX.com/XXXXXX', interface 'INTERFACE_OB' No sender agreement found for , , , , ,
    2007-01-16 16:37:35 Error Transmitting the message to endpoint http://SERVERNAME:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: INBOUND_BINDING_ERROR:. </b>
    2007-01-16 16:37:35 Success The asynchronous message was successfully scheduled to be delivered at Tue Jan 16 16:42:35 CET 2007.
    2007-01-16 16:37:35 Success The message status set to WAIT.
    2007-01-16 16:42:35 Success Retrying to send message. Retry: 1</i>
    After this, the system try to resend the message, and the same error appears several times.
    Ty,
    Manuel

  • Files with fixed length

    I have an input file, which is fixed length format. I need to configure the Sender File Adapter for a fixe length file(i.e each field length is available and I need to mention that in my sender file Adapter)
    Can anyone suggest an appropriate blog, that explains my scenario.
    (I searched this web and it keep on hanging)

    Hi Naveen
      check these links
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    for sender conversion (check the sub links in this topic)
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
    and my reply to your previous post for idoc to flat file.
    Regerds
    Vishnu

  • Adapter file receiver - file with fix length record

    Hi everybody,
    In the file adapter receiver, I want to create a fixed length record file .
    Each record need to have the same size.
    How is it possible, because I have a file which contains variable legnth depending of the lenght of message?
    exemple:
    <mess>
       <row>1234567</row>
       <row>123456789A</row>
    </mess>
    give the file
    1234567<CR>
    123456789A<CR>
    <CR> means carriage return
    and I want a file like
    1234567   <CR>
    123456789A<CR>
    with the same lenth of record (10 in the example).
    Can anyone help me, ,please?
    Kind regards.
    E. Koralewski

    Hi Eric,
    Create a value user defined function with one input argument a and name it is inputpad. Then add the following code:
    Imports:  java.*;
    while (a.length()<Integer.parseInt("10"))
         a= a +" " ;
    return String;
    Here I am assuming your fixed length for the field is 10. If it is more or less then change the number. Now in your mapping do all your logic and then in the final add this like:
    input ---> your logic --> inputpad udf --> target.
    Regards,
    ---Satish

  • How to process file with fixed length using MFL in OSB

    Hi Team,
    I need to translate this file using MFL. its fixed lenght[each line is having 81 chars] file in below format.
    Please help me to process this in OSB using MFL.
    ==================================================================
    START
    [email protected]
    [email protected]
    END
    Subject : CALIFORNIA STEEL IND Renege #00424523 Hse580 CTH580
    BODY:
    User_ID: LARRY014
    Xpd2 Hse/Customer # : 580/1196310
    Xpd Order Number: 580094624
    Customer E-Mail: [email protected]
    Customer E-Mail 2:[email protected]
    Customer Phone : 9093506458
    Dear Salesperson,
    gexprosupply.com Order # : 00424523
    gexprosupply.com User ID : LARRY014
    Customer CALIFORNIA STEEL IND has entered order 00424523
    through gexprosupply.com.
    THIS ORDER HAS RENEGED for the following reason(S):
    I. ORDER LEVEL
    NOTE SEGMENTS FOUND IN INPUT - SENTRY
    CDF REQUIRED CUSTOMER - ORDER RENEGED
    II. ITEM/LINE LEVEL
    LINE # ECOM LINE NAED QTY STATUS ALLOW SUBS
    Please resolve the renege and release the order in Sentry
    01 as soon as possible. Thank you.
    EMAIL-END
    ==================================================================
    Thanks
    Reddy
    Edited by: 913248 on Feb 8, 2012 2:07 PM
    Edited by: 913248 on Feb 8, 2012 2:08 PM

    Hi Prabu,
    thanks a lor fro you replay.......
    the above file is having mail content[from id, to id, subject and body] i need to read this file using OSB and need to sent to the respective email id.
    the file format is :
    it will have
    0- its a fixed length in each line [81 chars]
    1--"START" tag....starting of the email
    2--after START, the email ID is "FROM" email ID
    3-after "FROM" emailid, 3rd line onwards....will have "TO email IDs
    4-"END"---end of the email IDs
    5- "Subject " ...will have subject of the email
    6-"BODY".... the email body will start in this tag
    7-"EMAIL-END"..end of the email....
    so my requirement is ..i need to read above file in OSB and send notification emai.
    Thanks
    Reddy

  • Dealing with Fixed Length formats both at sender and receiver side

    Hi all,
    I have file -- File with fixed lenght formats.
    Source system will generate a text file with fixed lenght and target also needs the same file with same format.
    Then we have an idea to implement the interface with out IR Development .this is fine upto now.
    But now the problem is we are receiving more fields from source than we require for target process. we are not using at receiver side.
    So receiving system needs only few required fields from the source file.
    From soucre
    Ex: Source....  DocNum   Invoice No   Bill date   Bill amount vendor code
    We require at target
    Ex: Target.....   DocNum  Bill Date Vendor code
    Please suggest me
    Regards

    Hi,
    >>The source file content conversion is simple...In the target when you specify the target field names just leave out the ones you dont need...
    from source we wil read all the fields, this is fine and in the target how to mention the field positions
    Here all fields will come into picture, we cant mention the positions at receiver
    Source side Ex: Docnum    InvoiceNo     Billdate     Bill Amt     Vendor
    Fixed lenghts are 10            20               10             10            20
    Target Expects Ex: Docnum   BillDate  Vendor
                                  10            10          20
    in receiver side if you mention fixed lenghts like 10 10 20 means it may read docnum, Invoiceno, BillDate
    It wont ignore InvoiceNo field in this case
    Regards

  • Help with FIXED LENGTH columns - using spool command

    Hi guys,
    I have a view I am trying to spool using fixed length columns, and the spacing is off. Ive tried numerous things such as specifiying the column width before running the query, using the rpad command, but nothing seems to work. I have to spool it to a text file in order for the users to import this file into another system. I would welcome any and all suggestions. Thanks so much. The following is the view:
    SELECT "EMPLOYEE_ID","FIRST NAME","INITIAL","LAST NAME","SUFFIX","TRAINING DATE","Course ID","Class ID", "We", "Make / Model", "Cali", "Barrell", "Serial Number", "Qualification", "Application", "SCORE", "Status", "Add Time", "Record Add ID","Record Add Date","Record Change ID","Record Change Date","RN" FROM
    (SELECT
    UPPER(RPAD(tbl.ssn,10)) AS "EMPLOYEE_ID",
    UPPER(RPAD('',12)) AS "FIRST NAME",
    UPPER(RPAD('',1)) AS "INITIAL",
    UPPER(RPAD('',20)) AS "LAST NAME",
    UPPER(RPAD('',5)) AS "SUFFIX",
    UPPER(RPAD(to_char(QUALDATE, 'mmddyyyy'),8)) AS "TRAINING DATE",
    UPPER(RPAD('P123',8)) AS "Course ID",
    UPPER(RPAD('',6)) AS "Class ID",
    UPPER(RPAD('P',4)) AS "We",
    UPPER(RPAD('',4)) AS "Make / Model",
    UPPER(RPAD('',4)) AS "Cali",
    UPPER(RPAD('',7)) AS "Barrell",
    UPPER(RPAD('',15)) AS "Serial Number",
    UPPER(RPAD('A',4)) AS "Qualification",
    UPPER(RPAD('D',4)) AS "Application",
    to_char((RAWSCORE/250)*100, 'fm000.00') AS "SCORE",
    UPPER(RPAD('PASS',4)) AS "Status",
    UPPER(RPAD('',8)) AS "Add Time",
    UPPER(RPAD('',8)) AS "Record Add ID",
    UPPER(RPAD('',8)) AS "Record Add Date",
    UPPER(RPAD('',8)) AS "Record Change ID",
    UPPER(RPAD('',8)) AS "Record Change Date",
    row_number()over(partition by firearms_scores.ID_NUMBER order by QUALDATE desc ) rn
    FROM FIREARMS_scores, TBL
    where scores.id_number=tbl.id_number
    and qualyear='2010' and coursecode='SA'
    order by employee_id)
    where rn =1

    Hi,
    You RPAD doesn't do anything, since they are same as:
    SQL> SELECT NULL AS "Record Add ID",
      2         NULL AS "Record Add Date",
      3         NULL AS "Record Change ID",
      4         NULL AS "Record Change Date" FROM DUAL;
    R R R R
    SQL>Can't see why COLUMN command shouldn't do what you want. Maybe you forgot the double quotes?
    SQL> COL "Record Add ID" FOR a18
    SQL> COL "Record Add Date" FOR a18
    SQL>
    SQL> SELECT NULL AS "Record Add ID",
      2         NULL AS "Record Add Date",
      3         NULL AS "Record Change ID",
      4         NULL AS "Record Change Date" FROM DUAL;
    Record Add ID      Record Add Date    R R
    SQL>P.S: You probably shouldn't set a column width which is smaller than the header length
    Regards
    Peter

  • How to get a string with fixed length

    I want to implement something like movechar() of c in java. I want to return a string which has a fixed length that contains the given string and spaces for remaining length.
    Please let me know how can I implement it.
    Thanks & Regards,
    Nasrin.n

    Do you mean padding a String?
          * This method pads the string s to size n using char c to make up for missing characters.
         public static String padString(String s, int n, char c, boolean paddingLeft) {
              StringBuffer str = new StringBuffer(s);
              int strLength = str.length();
              if (n > 0 && n > strLength) {
                   for (int i = 0; i <= n; i++) {
                        if (paddingLeft) {
                             if (i < n - strLength) str.insert(0, c);
                        else {
                             if (i > strLength) str.append(c);
              return str.toString();
         }

  • Flat file destination error

    hi
    i am adding new field to my existing package which is char(10).
    getting this error:
    [Flat File Destination [139]] Error: Data conversion failed. The data conversion for column "MEMBER_ID" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
    i right click flat file destination->i only see external and input column over there,
    there is no output column.
    in flat file connection mamanger ->outputcolumn->its char(10)
    what needs to be change here?

    Hi coool_sweet,
    According to your description, you are trying to add a new source column to a flat file in an existing package.
    Based on the error message, the issue should be caused by text was truncated when load new column to column "Column1" in Flat File Destination. Because the length of new column data should be more than 10 (with some junk values) in the Source,
    while you are trying to convert the column to 10 as the character length.
    To fix this issue, we can increase the length of column "Column1" in Flat File Connection Manager. Alternatively, if you still want to convert the new column to a column with length 10, we can right-click the Source component to select “Show Advanced
    Editor”, then go to tab 'input and output properties' to expand the output column corresponds to the column "Column1", change TrancationRowDiposition property to RD_IgnoreFailure.
    Besides, the issue can also be caused by using some special characters in the new column. We can check the Unicode checkbox on the right hand side of Locale property in Flat File Connection Manager to fix this issue. For more details, please see the following
    thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d3605656-4a13-47b6-b96e-45379e2b2a9f/export-to-flat-file-with-unicode-chinese-characters?forum=sqlintegrationservices
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Flat file load error

    Hi.
    I am getting the following error when loading .csv file from "Client Workstation" but the same file is loading fine from "Application server".
    Value '10/1/206 ' of characteristic 0DATE is not a number with 000008 spaces
    I look for your suggestions to solve and understand this.
    Thanks
    Kumar

    Hi Dinesh,
    I solved the problem by using SDATE in transfer rules as per the SAP note 161506. I am giving the note below for others who might land with similar problem.
    Thanks
    Kumar
    SAP Note Number: 161506
    Summary
    Symptom
    You want to transfer data from a source system into BW from a file (flat file) that also includes date entries (for example, for the 0CALDAY InfoObject). However, when you load the data, the data disappears.
    Other terms
    Time characteristic, transfer structure, transfer rules, InfoPackage Scheduler, InfoSource
    Reason and Prerequisites
    In the flatfile of the source system, a date exists which is not stored in the internal format YYYYMMDD but in the external (user-specific) format. In the transfer structure maintenance, no routine is specified for the conversion exit for the corresponding date field. An incorrect data type and an incorrect length can be assigned additionally. The missing conversion exit causes an incorrect processing of the date during the conversion to the internal format of the type DATS and length 8.
    Solution
    In the maintenance of the transfer structure, standard values that expect the date while the data is being stored in the internal format of the YYYYMMDD system are entered for the 0CALDAY InfoObject (calendar day):
      InfoObject Field name Type Length Conversion exit   0CALDAY       CALDAY      CHAR      8
    The problem described above is corrected with the conversion of the date fields into the internal format in the flatfile.
    If you want to maintain the external format of the date in the source file, implement the following changes in the transfer structure maintenance for the 0CALDAY field:
      InfoObject Field name Type Length Conversion exit   0CALDAY       CALDAY      CHAR    10   SDATE
    Note that the type must always be CHAR (not DATS). The predefined field length is changed from 8 to 10, and additionally the conversion routine SDATE is entered.
    IMPORTANT: The external format for the date in the flat file must match the standard settings of the user in the system (System -> User profiles -> Own data -> Fixed values) such as DD.MM.YYYY MM/DD/YYYY and so on.
    Each time you make a change in the maintenance of the transfer structure, you must
    a) save the new entries,
    b) activate the transfer rules again (InfoSource -> maintain transfer rules),
    c) exit and access the Administrator Workbench again (see related notes below) before the next set of data is loaded.
    Header Data
    Release Status:     Released for Customer
    Released on:     03.09.2004  08:27:34
    Priority:     Recommendations/additional info
    Category:     Consulting
    Primary Component:     BW-WHM-DST Data Staging
    Releases
    Release Independant
    Related Notes
    157643 - Format 0CALMONTH, 0CALWEEK and 0FISCPER incorrect
    155706 - Changes to transfer rules are ignored

Maybe you are looking for

  • Java Callout in OSB failing with null pointer exception

    Hi, We have a requirement where we need to convert XML String to org.apache.xmlbeans.impl.values.XmlAnyTypeImpl type using java-callout, but value is not getting set when we are trying to do the same. Below is the code we are using in the java callou

  • Table Name in OOPS ALV HotSpot click

    Hi Team, I am displaying 3 ALVs in a single screen using set_table_for_first_display (say Table A , table B , Table C). In the screen i have used 3 custom controls to display each ALV. Now i have a need to put a hotspot event for some fields in each

  • URGENT !!!  AQ performance issues in ORACLE 8.1.7.2

    Does anybody have an ideea how fast the enqueueing/dequeueing is when the size of the queue goes up to 500.000 elements ?! I have problems when dequeueing from a queue with only 85 elements (it sometimes takes 7-8 minutes to dequeue one element); is

  • OVM P2V

    Hi guys. In a weeks' time I will have to migrate ovm's from an OVM 3.0.3 environment to a OVM 3.1.1 environment. I'm testing possible migration methods. So far my p2v of an ovm is not going as planned. I have attach the 3.1.1 OVMS iso to my 3.0.3 VM,

  • Error reading data from an infocube

    Hello, I want to read data from a remote infocube in tcode listcube, and I get this 2 error messages: "Error reading the data of InfoProvider IC_SNP_DR" and "Error when generating program". This is a remote cube reading data from a SNP Planning Area.