File Sender adapter not reading the first line

Hi,
I have a scenario configured from file to jdbc adapter.
However, I found a problem in my file sender adapter. My file adpater always not picking up the first line from my text even I have set the 'Document Offset' to 0.
Any Ideas? Thanks.
Regards,
Pua

Hi Latika Sethi,
My complete input text file is as below, it contains only 2 testing records:-
H1|DIZ1                          |A0016507    |10000020|09/2007
H2|ABC0001
D|P|0001|Gaji Pokok       |   1,000.09
D|D|0002|Denda              |   1,000.00
D|P|0003|Elaun               |   1,000.00
H1|PUA1                        |A0016508    |10000021|09/2007
H2|ABC0002
D|P|0001|Gaji Pokok       |   2,744.09
D|D|0002|Denda              |   2,000.00
D|P|0003|Elaun               |   2,000.00
After the message mapping, I found the pipeline existed in sxmb_moni as below:-
<?xml version="1.0" encoding="utf-8"?>
<ns:mt_rmp03B_filejdbc_sender xmlns:ns="urn:rmp03:pdrm:ips:jdbcjdbc">
<PaySlip>
..<Header2>
.... <IC>ABC0001</IC>
.. </Header2>
.. <Details>
.... <Jenis>P</Jenis>
.... <No>0001</No>
.... <Deskripsi>Gaji Pokok</Deskripsi>
.... <Jumlah>1,000.09</Jumlah>
.. </Details>
</PaySlip>
<PaySlip>
.. <Header1>
.... <Nama>PUA1</Nama>
.... <KWSP>A0016508</KWSP>
.... <NoGaji>10000021</NoGaji>
.... <Bulan>09/2007</Bulan>
.. </Header1>
.. <Header2>
.... <IC>ABC0002</IC>
.. </Header2>
.. <Details>
.... <Jenis>P</Jenis>
.... <No>0001</No>
.... <Deskripsi>Gaji Pokok</Deskripsi>
.... <Jumlah>2,744.09</Jumlah>
.. </Details>
</Payslip>
There are 2 payslips as for the top payslip node...Header1 tag is missing. It means that during the file sender step....the first line of my record which is :-
"H1|DIZ1                          |A0016507    |10000020|09/2007"
is not read into the xi pipeline. Basically this is the problem i faced.
Has somebody facing the same problem before? Currently I have no choice but moved the First line of the text into Second line and left the first line of the text become null/ empty line. As such both records can be successfully read by the XI.
However what I wondered is sometimes clients will do insert the records into the first line and this might made some data loss.
Thanks...

Similar Messages

  • File sender adapter not reading

    Hi experts,
    We're getting an issue with the File sender channels in our system.
    None of the files we place in the source directory is read by our channels.
    These channels are NFS. We've already gave all permissions to SO user <sysid>ADM.
    The CC monitor don't show us any error, it's working as if there were no files in the directory, when there are.
    Does anyone know what could be happening? And is there any other place/log when we can check?
    Thanks in advance.
    LUIS B.

    Hi Luis,
                   Check the permission bits of the file you are trying to read . If the source system is unix all of RWX bits must be set to 1. If you do not have access to change the file access permission in unix folder you can take help of Basis team or another way is to use the option Run Operating System Command Before Message Processing. Here you can mention
    chmod 777 *.*
    This will make all files available for PI to read, write and execute.
    Second reason maybe that your channel might have got locked and is unable to pick up files. Although in CC monitoring you can see polling is going on. Please request your Basis team to look into the communication channel properties.
    Hope this helps.
    regards
    Anupam
    Edited by: anupamsap on Jun 13, 2011 11:52 AM

  • TS1702 My iphone has displayed a warning message two days ago that if i dont ..... i cannot purchase anymore applications but I could not read the first sentence and now I am unable to purchase

    My iphone has displayed a warning message two days ago that if i dont ..... i cannot purchase anymore applications but I could not read the first sentence and now I am unable to purchase

    That error message suggest you have a permissions issue. Make sure you have full read/write privileges for the Drive/ Folder location that you are copying the files to. 

  • THOUGH I DO NOT ACTIVATE THE FIRST LINE "BROWSING AND DOWNLOAD HISTORY", MY DOWNLOADS ARE NEVERTHELESS DELETED. I JUST POSTED THIS QUESTION AND GOT 2 REPLI

    When I do a "CLEAR RECENT HISTORY" and THOUGH I DO NOT ACTIVATE THE FIRST LINE "BROWSING AND DOWNLOAD HISTORY", MY DOWNLOADS ARE NEVERTHELESS DELETED.
    I just posted this question under the "OTHER" category and got 2 replies, neither of which solves this problem!
    IS THERE A SOLUTION? Thanks

    Are you the same poster as Raphaex who posted using Windows 8.1 in this thread and provided a full and detailed set of data accessible using the "More System Details" link: https://support.mozilla.org/questions/1011435 ??
    If not, could you provide a link to the earlier discussion on your situation if there is one? I don't want to repeat what you haven't found helpful, and also, it's critical to know your correct configuration information and not waste everyone's time typing out advice that is totally irrelevant.
    To provide the missing details on your configuration:
    # Use ONE of these methods to open the Firefox Troubleshooting Information page:
    #* Click the "3-bar" menu button [[Image:New Fx Menu]], click on help [[Image:Help-29]] and select ''Troubleshooting Information''.
    #* Type '''about:support''' into the Firefox address bar and press the enter key.
    # In the top left corner of the Troubleshooting Information page that comes up, you should see a button that says "Copy text to clipboard". Click it.
    #Now, come back to this thread, right-click in the reply box and select '''Paste''' from the context menu (or else click inside the reply box and press Command+v) to paste all the information you copied into the forum post.
    Usually, this does not contain personal information, but I suggest you skim down and make sure you do not see your email address in there (XX it out ).

  • Read the first line of the table.

    Hi,
    Can you pls let me know as to how I read the first line of the table.
    Thx.

    hi check this.
    data: begin of itab occurs 0,
            matnr like mara-matnr ,
            meins like mara-meins,
            end of itab.
    select-options: s_matnr for mara-matnr .
    select matnr
             meins
             from mara
             into table itab
             where matnr in s_matnr .
    read table itab index 1 .
    loop at itab .
    write:/ itab-matnr .
    endloop .
    regards,
    venkat.

  • Read Measurement file does not read the first channel of my TDMS file

    When I try to read a TDMS file with the Read Measurement File express VI, the first channel of the data is not there.  When I open the file up in excel the channel exists

    Even I have the same doubt  regarding Labview plss help me reading the Excel file from 23rd row and the graph should be drawn between 1st column and 8th column ,  from 23rd row . Here is the sample data.
    Attachments:
    Book1.xlsx ‏204 KB

  • Sender file adapter not polling the file

    hi all,
    i have configured a filexifile scenario....
    but the file sender adapter is not polling the file at all....
    i dont c any message either in RWB or in SXMB_MONI
    i checked the adapter framework url at <i>http://<ximachine>;<port>/AdapterFramework</i>....and the status for the file adapter is green...
    but the message it gives there is
    <i>Sender Adapter v1014 for Party '', Service 'TASL_FILE_SENDER':
    Configured at 03:07:24 2006-02-02
    Up and running - no message processing until now
      last poll interval started 04:01:24 2006-02-02
      length 60,000 secs</i>
    y is the sender adapter not polling the file..
    i am using NFS as my File System....i gave the source directory as <i>d:/test_dir/</i>
    is this way of specifying the source directory on a windows machine correct...
    thanks
    pavan

    There is probably something wrong with the File Adapter.  You will need to go to the RunTime Workbench >> Component Monitoring >> Display >> Click on the Adapter Engine >> More information will display and click on the button 'Adapter Monitoring' >> A new window will display and click on the arrow next to your adapter engine.  This displays a list of adapters running on your system.  Green light means good; Red, you have a configuration problem.  Look at the error and try and resolve it.

  • The first line in a file is supressed

    hi all,
    i have a really weird problem.
    i have a file with a lot of data and i am using a file adapter with file content conversion to parse it.
    the file adapter is a sender one.
    the problem come when i do read the file and then it ignore the first line of the file.
    all the lines from the second one forward is shown in SXMB_MONI but the first line of the file isn't.
    i can't seem to figure out what the problem is, i tryed looking for some kind of attribute in the file adpater but had no luck.
    could you please help me?
    btw,
    the file structure is: header,1,body1,<wildcard>,body2,<wildcard>
    Edited by: Roi Grossfeld on Oct 29, 2008 4:24 PM

    Recordset Structure: H1,1,B1,<wildcard>,B2,<wildcard>
    Key Field Name: RecordType
    H1.fieldFixedLengths 6,2,8,1,1,3,30,5
    H1.fieldNames FileNo,RecordType,TransmissionDate,Car_Truck,BU,MD,FileName,Count
    H1.keyFieldValue H1
    B1.fieldFixedLengths 6,2,10,27,8,8,4,5,3,11,9,9,11,11,9,9,7,9,11
    B1.fieldNames FileNo,RecordType,InvoiceNumber,VesselName,MMSEShipmentDate,PlanArrivalDate,DeliveryPlace,Units,Currency,ModelPriceAmount,OptionPriceAmount,ColourPriceAmount,REPriceAmount,TotalPriceAmount,FreightChargeAmount,InsuranceFeeAmount,MiscellaneousAmount,VATAmount,GrandTotalAmount
    B1.keyFieldValue B1
    B2.fieldFixedLengths 6,2,10,12,12,12,5,6,12,3,3,3,4,17,7,7,12,8,5,3,9,7,7,9,9,7,9,4,20
    B2.fieldNames FileNo,RecordType,InvoiceNumber,MDOrderNumber,MMSEOrderNumber,MMSECaseNumber,ModelYear,BodyType,Model,ExteriorColourCode,InteriorTrimColourCode,OptionCode,RearEquipment,VehicleIdentificationNumber,ChassisModel,CSequenceNumber,EngineModel,ESequenceNumber,KeyNumber,Currency,UnitModelPrice,UnitOptionPrice,UnitColourPrice,UnitRearEquipmentPrice,UnitTotalPrice,UnitVATAmount,UnitTotalVAT,VATRate,VATNumber
    B2.keyFieldValue B2
    ignoreRecordsetName true
    Edited by: Roi Grossfeld on Oct 29, 2008 4:39 PM

  • UDF to get the filename for File Sender Adapter

    Hi,
    I had an requirement to get the  the Filename and map to the  target payload.
    I had configured the File Sender Adapter settings in the ID
    This is the following UDF i got from SDN.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    But when iam using this UDF iam getting an error
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_ORDER_CRS_OB_SAP_PROXY_IB_ method Filename$[com.sap.aii.mappingtool.tf3.rt.Context@54e154e1]
    Please help me in correcting the error.
    Thanks
    Srinivas

    Hi Jayson,
    actually, in the interface mapping, it doesn't give exception.
    The DynamicConfiguration is a constant retrieved from the container object, so it will never be returned as null (given that the container object was instantiated).
    Just the retrieved value will be null (since it was not previously set), but no exception occurs.
    In the message mapping, the container object is never instantiated, and that's the reason for the NullPointerException.
    Regards,
    Henrique.

  • File Sender Adapter - File overwritting in the Archiving folder

    Hello Experts,
    I am doing File sender to proxy Receiver Async Scenario.
    In File Sender adapter, i am using the Archiving option by spacifying the
    Archiving path.
    Files are picked up and archiving happen successfully.
    Problem is: - once the File is picked up and archivied into the Archiving location
    If end user again rectifies some data in the same file and place it in the source directory
    then i am getting the following error in RWB Commu. channel monitoring.
    Failed to archive file 'File1.TXT' as '/Input File location/File1.TXT' after processing. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 File not renamed.  File already exists.  You may delete the existing file and then rename.u2019 For details, contact your FTP server vendor.
    I know this is because of File sender adapter is trying to archive the file with the same name(File1.txt) in the archiving location.
    My Question: - Is there any option to allow the File sender Adapter for overwritting the
    File in the archiving location.
    Thanks & Regards
    Jagesh

    check if there is proper rights to over write files in the archive folder.
    The problem seems to be that the rights/authorization is not there. Else the adapter usually overwrites files in the archive folder unless you use the timestamp option.
    Archive
    Files that have been successfully processed are moved to an archive directory.
    u25A0       To add a time stamp to a file name, select the Add Time Stamp indicator.
    The time stamp has the format yyyMMdd-hhMMss-SSS. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.
    u25A0       Under Archive Directory, enter the name of the archive directory.
    u25A0       If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.

  • FILE SENDER ADAPTER -  TO GET A DINAMIC FILE NAME IN THE DIRECTORY

    Hi,
         Please help me.
         I have to read by a file sender adapter a specific file in the directory that its name is Dyyyymmdd, where yyyymmdd is variable according with the current day:
         D      - fixed letter
         yymmdd - year,month and day of the current day.
         I cant´t use D* in the File Name Scheme because I must read only the one file generated in the day.
         How can I configure my file sender adapter to read this especific file in the directory?
          Thanks in advance.
          Mider.

    Hi Krishna,
        I must access only one file by time ( of the current day ), but in the directory I have a lot of them of different dates. I mean, in the of the read ( in the adapter configuration ) , I need to configure the name of the file Dyyyymmdd before of the reading in the directory, in other words, I need to construct the name of file (withe the current date) before the communication channel access the file to read it.
        I think that OS command just can be applicated in file receivers, but if possible, at your purpose, how can I access the name of this especific file via OS command for senders?
        Thanks,
             Mider.
    Message was edited by: Midervilson  Andrade
    Message was edited by: Midervilson  Andrade

  • How to handle flat file with variable delimiters in the file sender adapter

    Hi friends,
    I have some flat files in the ftp server and hope to poll them into XI, but before processing in XI, I hope to do some content conversion in the file sender adapter, according to the general solution, I just need to specify the field names, field seperator, end seperator, etc. But the questions is:
    The fileds in the test data may have different amount of delimiters (,), for example:
    ORD01,,,Z4XS,6100001746,,,,,2,1
    OBJ01,,,,,,,,,,4,3     
    Some fileds only have 1 ',' as the delimiter, but some of them have multiple ','.
    How can I handle it in the content conversion?
    Regards,
    Bean

    Hi Bing,
    Plz do refer the following blogs u will get an idea:
    File content conversion Blogs
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Vinod.

  • JDBC Sender adapter is reading but then there isn't the message in SXMB_MON

    Hi,
    I have a JDBC to RFC async scenario. All configured.
    Now the JDBC Sender adapter is reading the database table and if I go to communication channel monitoring ther is a "Processing finished succefully" message and an message ID like that: "0e4fd3b0acba11ddb65e0002a5adffd2".
    But then I go to SXMB_MONI or message monitoring in RWB and there isn't a message to check...
    What's happening? How can I know what the JDBC adapter has read and why there isn't an error but there isn't a message?

    Hi
    Well u r that means no polling happening with u r Select statement
    may be format is correct i agree ,,can u able to get resultset using the Select staement running on SQL PLus ??
    check wether status flag is set right
    paste u r slect statement and update statement
    rgds
    srini

  • Problem in file sender adapter for newline character

    Hi All,
         I'm trying to read a file of only one record with the following fields.
    Name
    Age
    Place
    <b>Each field is seperated by a new line</b> which is the cause of the problem.
    <b>The problem is the value 'nl' for x.fieldSeperator is not been recognised in file sender adapter.</b>
    The adapter creates a new record (new XML) for each individual field seperated by new line.
    <b>I've tried even with the corresponding hexadecimal values '0x0a' and '0x0d'.</b>
    Looking for some help.
    Thanks,
    Joe.

    Hi Shabarish,
            Thanks for your reply. But I tried that too already... It also didn't work..
    File adapter is successful... But it generates seperate records for each fields that's wat the prob is..
    Thanks,
    Joe.

  • JMS sender adapter not converting data to XML properly.

    Hi,
    I am using JMS adapter to read data from MQ. The length of each segment is fixed.
    The problem is there is no new line character at the end of each segment .So JMS adapter is just reading the first line and not reading the rest.
    What I found out that if I place a new line character at the end of each segment it works fine. But for me I have constraint that in MQ the source system cannot send a new line character at the end of each segment. So can any one tell me how can I solve this issue?
    The sample data that I am getting from MQ is:
    AA12345
    BBXYZXY                                                  CC12300                    
    CC456AS
    We are using SP13.
    The length of each segment is fixed.
    Any help is appreciated

    Hi Sameer,
    fieldFixedLengths is used to divide the data among the elements of a segment.
    For example if I have the segment structure like
    AA1234567
    BB12345
    BBXYZ12
    Then in the module processor we define
    xml.recordsetStructure NameA,1,NameB,*
    xml.NameA.fieldNames MyKey,field-nameA
    xml.NameA.fieldFixedLengths 2,7
    xml.NameA.fieldNames MyKey,field-nameB
    xml.NameB.fieldFixedLengths 2,5
    As per my understanding goes First it reads the first line till it finds a new line char and then it uses fieldFixedLength to assign data to the fields inside the segments. Here in the above example A1=AA and A2=1234567
    But I am not aware if we can use fieldFixedLength to identify the segment it self. If so then how can I use it can u let me know?
    Thanks

Maybe you are looking for

  • How to make an app deleted from iTunes library be deleted from all the iOS devices synced with this library?

    Hello! I have 3 iOS devices synced with iTunes apps library (OS X 10.10.2) Can someone tell me how to make not only added but deleted apps be synced also? I mean I want an app deleted in iTunes library be deleted from any iOS devices synced with this

  • I just tried to run the latest update and now my Apple TV doesn't work

    All I get is a picture of a USB with an arrow pointing up to the iTunes icon.  Iv'e tried holding the menu and Play button and it looks like it is going to do something then the picture pops up again.  How can I reset it?  I've even unplugged it from

  • Excise tab on basic excise duty for po

    hi friends, My requirement is : while doing gr in migo for that when we check (item ok - check box)  then condition is : if that po bed is not zero ex 16 % then excise tab has to display else ex 0% excise tab shouldn't appear. Can u plz sujjest on th

  • Emailing form using something other than outlook

    Is there anyway I get the form to use a different email system other than outlook when using the email button? We used to go through outlook and we could conveniently hit email and the form would attach and be ready to send. We switched email systems

  • JSR 168 APIs

    Dear All, We are trying to get content from IBM Websphere Portal v5.1  and display in our SAP portal . The content in IBM portal is stored in portlets . IBM recommended us to call their JSR 168 API's to just grab the content. We only want the content