KeyFieldValue in Sender File Adapter Not Working

Hi,
I have a flat file like this...
1Field1Field2Filed3.....
2Field1Field2Field3....
1Field1Field2Filed3.....
2Field1Field2Field3.....
1Field1Field2Filed3.....
2Field1Field2Field3....
My requirement is to pick only lines starting with '1'.
I have configured the Sender File Adapter like this,
Recordset Structure : SOURCE,*
Key Field Name: KF
Key Field Type : String(Case-Sensitive)
File Content Conversion:
SOURCE.fieldFixedLengths  1,5,5,5....
SOURCE.fieldNames           KF,FIELD1,FIELD2....
SOURCE.keyFieldValue      1
After all this, still it picks up all the recored instead of records starting with '1'. Can any one solve this?
Regards,
Sreedhar

If you feel module processor is bit tough you can use XSLT Mapping which is simple in sloving ur problem.
Check this blog to do a sample example using module processor.
/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
To implement the above check this link....
https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
/people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module

Similar Messages

  • Archive file with errors in sender file adapter not working! please help!

    Hi Experts,
       I have a file to RFC scenario. the input is a XML file. I have setup the flag in sender file adapter channel for archiving the input files with errors. But it is not working.
    For testing I have used an invalid xML file for example without the main XML tag. I have also tested with a MSWORD file saved with.xml extension. But in both the cases the files are not getting archived.
    My archive location permissions are fine and in fact normal archive operation is happening. That is, if I select the processing mode as "Archive" and gave the Archive directory then files are getting archived. The problem is only with the "Archive faulty source files" option.
    What am I missing? DO I need to do some more configurations?
    What are the prerequisites if any for this option?
    How to test this?
    Please help me! I will be greatfull to you all!
    Thanks & Regards
    Gopal

    and go thru this links
    Creating a Single Archive of the Version Files
    http://help.sap.com/saphelp_nw04/helpdata/en/79/1e7aecc315004fb4966d1548447675/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/31/8aed3ea86d3d67e10000000a114084/frameset.htm
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • Production issue - Sender File adapter not picking up the files from folder

    Hi Guys,
    Ever since the upgrade from XI 3.0 to PI 7.1, we have come acrossinstances of weird error.
    Thsi time again - now the 3rd time - tandom basis, in our production PI server, we have teh file slying in the source directory folder in the server.
    I can see the files lying there in AL11.
    However, it looks like that the file polling has just stopped and the channel is going blank in channel monitoring.
    I have checked in SXMB_MONI and there are no messages since the morning.
    I have tried craeting a replica of the current channel but it is not working.
    This is teh production server and thsi has alraedy created production issues.
    I ahve checked in the SDN forum but am not able to find the details.
    Plaese help me.
    I am anyway going to raise the issue with SAP now.
    Regards,
    Archana
    <REMOVED BY MODERATOR>
    Edited by: Prateek Raj Srivastava on Jun 8, 2010 4:50 PM

    Hi Prateek,
    I have trying all sorts since the morning and then just checked teh file permissions.
    The file permissions were incorrect as compared ot the other files that were processed successfully today.
    Somehow the permissions were changed on the server and the interface channel was not able to poll the files.
    I got teh permissions changed back to 666 and all the files were pikced up in a minute.
    I got the folder checked and it seems like that the permissions were changed somewhere very early in the morning and we are trying to find out how it happened and who did that.
    However, another question i had - this sender file adapter was polling the source directory and deleting the files from there.
    I would have expected that if the channel had issues with the file permission because of which it was not able to access the file, it would have thrown an error something like the file permissions error.
    But there was not a single error in the channel monitoring.
    How can we configure it in a beter way so that we at least soem kind of error indication?
    Please advice.
    Regards,
    Archana

  • Sender File adapter not picking the file ABCD.PRN extension file

    Hi
    Am doing File to Abap Proxy scenario. My source will be in text format of fixed length of fileds 7.
    My souce file will be generated by a third party machine with the extension EEE150809.PRN. In my scenario my file adapter should pick the file and update the same in ECC via a Proxy.
    I have configured the Sender File adapter with Message Protocol -  Content Conversion but file adapter is not picking the file. I have checked the Communication channel and status is fine. But the same Communication Channel works for .XML file.
    What are the parameters that I have to consider with the file extension .PRN using File adapter?
    Thanks.
    S.

    Hi Swarna,
    You dont need to worry about the extension when picking the file. You can try using EEE* so that is picks all the files starting with EEE. If you have the fixed name then you can try giving EEE150809.*. Also EEE150809.PRN should not have any issue. Try to see in sender commu ication cahnnel for anyerrors. Probably there might be some network issues or authorisation issues. If you are reading with NFS then ask them to give necessary permissions. If you are reading through FTP check the user id and pwd you are using.
    Regards,
    ---Satish

  • Sender File Adapter Not Showing in Decentral Adapter Engine

    Hi,
    We have recently implemented a Decentral Adapter Engine on a windows box. The adapter engine seems to be working fine because my adapters show and seem to work fine in it.
    However, when I define a Sender File Adapter that uses File Content Conversion message protocol instead of just File messaeg protocol, the adapter does not show up in the decentral adapter engine.
    I made sure that Adapter Engine parameter in the Sender File Adapter shows the new adapter engine but that does not seem to be working. If change the Adapter Enginer parameter to show the Central Adapter Engine, then I can see the Sender File Adapter on the Central Adapter engine and it works fine. (Note: The Central Adapter Engine is installed on a Unix box) 
    Here are the paramters I defined for the Sender File Adapter:
    - Transport Protocol: File System (NFS)
    - Message Protocol: File Content Conversion
    - Adapter Engine: (new Adapter Name)
    Source Directory: (
    server/drive/path)
    File Name: purchaseOrder.txt
    Quality of Service: Exactly Once
    Poll Interval (secs): 60000
    Poll Interval (msecs):
    Retry Interval (secs):
    Processing Mode: Archive
    Add Time Stamp (checked)
    Archive Direcotry: (
    server/drive/path/archive)
    Process Read-Only files: (not checked)
    Processing Sequence: By Name
    Fiel Type: Text
    File Encoding:
    Operating System Command:
    Additional Files (not checked)
    Content Conversion Parameters
    Document Name: MT_Request_File_Data
    Document Namespace: http://nxy.tots/fg_admin
    Document Offset:
    RecordSet Name: Purchasing
    RecordSet Namespace:
    RecordSet Structure: Purchase_Record,*
    RecordSet Sequence: Ascending
    RecordSets per Message: 1
    Key Field Name:
    Key Field Type: String(Case-Insensitive)
    Purchase_Record.fieldFixedLengths: 8,4,2,10,10,12,18,12
    Purchase_Record.fieldFixedType: char
    Purchase_Record.fieldNames: Request_Action,Request_PO_Num,Request_PO_LN,Request_PO_Date,Request_Purchasing_Org,Request_Purchasing_GName,Request_Created_By,Request_Vendor_Name
    Purchase_Record.fileContentFormatting: trim
    Adapter Status: Active
    Advanced Mode: (not checked)
    Your help is much appreciated.

    Hi Alaa,
    look into this document:
    http://service.sap.com/nw-howtoguides -> Exchange Infrastructure -> Troubleshooting: Adapter Engine 3.0 (Expert Call slides)
    If the File Adapter works without conversion, then you should count the number of fields in a row. If it differs from the configuration, then it runs on error.
    Another idea is to check the content type of the file. When you do not enter a File Encoding, then the file adapter assumes utf-8. If the file is for example latin-1, then the number of characters in a row are not counted correctly.
    Regards
    Stefan

  • Sender File Adapter Not Picking Any File

    Dear Expert,
    I am newbie in PI. Just tried to create File Content Conversion Scenario. Details as follow :
    1. Source Directory ..\file\log\test_q.txt
    2. Target Directory  ..\file\log\xml\test_q.xml
    Transport Protocol : NFS
    Message Protocol : File Content Conversion
    Adapter Engine    : Integration Engine
    I have completed all the design and configuration in IR and ID. However, when I produce the log file in the directory, nothing happen.
    Hacing checked in the RWB as well, I could not find any clue. simply nothing happen.
    Would you please advise me on how to trigger the interface? As per my understanding, sender file adapter will be activated directly once the file is created.
    Thank you very much in advance.
    Best Regards,
    Y

    Hi Yonisiwa,
       Things you should check here are:
    1) If the sender file adapter is active or not.
    2) If the source directory is correctly spelt or not. (Check if you are using the correct slash \ or /)
    3) The file name/mask is correct or not.
    4) The polling interval is too long.
    Alternatively, you can check the message monitoring in RWB at the adapter level and go into the audit log if the message.
    There you can see the reason for the file not being picked up.
    Also check the Communication Channel status in the Component Monitoring link in RWB.
    Regards,
    Ravi Kanth Talagana

  • Sender File Adapter  not able to get file via FTP from an external system

    Hi,
    I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml".  The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The file is on the server, but despite the polling, the adapter does not pick up it. There is no return error.
    The connect mode is Permanently and the transfer mode is Binary.
    Can you help me?
    Thanks.
    T.

    Hi Teresa,
    does this case appears with a file size higher the others?
    Personally, I do not recommend to have a polling under 1min.
    10s could be too just, if the file is not small and/or if the file server is far (several kilometers) to where the Adapter Engine is, and/or this file server is beside a firewall. Do not forget also that, with previous points, you could have like a conflict, betwen the 1st polling and the 2nd polling, if in less 10s PI adapter has not enough time: to connect to the FTP server (several Km), find the file (perhaps among 100 other files in the directory), go back to the file to Adapter Engine server (several Km again), convert your file to XML message (with a complex Content Conversion), then check the XML structure, and when all that is done, return back to FTP server (several Km), to archive the source file... Well It's my understanding of a FTP exchange with FILE adapter...
    If you really need a 10s polling, that's mean your have a pseudo real time interface. In that case, in my mind file should not be used! but we should use a Web service, JDBC JMS (any exchange without a physical object like a file). For me, it's a non-sens to have a file in that case.
    regards.
    mickael

  • Sender FTP Adapter not working with certain name

    Hello,
    We're facing the next problem within XI.
    We configured a sender FTP adapter within the central adapter engine. This adapter is configured correctly however for some reason it is not picking up any file from the FTP server.
    Changing status to inactive-> active again all kinds of modes and configs we tested.
    However when copying this non-working adapter to a new one with a different name (Configuration is exactly the same!!!!!) and use this one in the sender agreement it worked immediately.
    Somebody else faced similar problems and managed to solve it because for this error we don't want to adjust our naming conventions....
    Thanks,
    Emile

    Hi Emile,
    This could happen when AE cache is not getting updated.
    Goto SXI_CACHE.
    Click "Goto" -> AE Cache and check if you get a green symbol with a message saying " Cache contents are up-to-date".
    Regards,
    Anish

  • Sender File Adapter - Not Running

    Hi,
    I have developed a very simple scenario which uses the File adapter within the sender communication channel. I have done this sort of thing before and it always worked as expected. All that should happen is the file is picked up via FTP and turned to XML using Content Conversion. Easy stuff.
    However, the adapter never appears to run. If an FTP adapter finds a file then you will see an entry in SXI_MONI. If an FTP adapter doesn't find a file then you see nothing. At the moment I am seeing nothing. However, I should be seeing something because all of my Connection/Access parameters are correct. There is a file there but it's not picking it up.
    The question I have is this. Is there somewhere in SAP that I can see the adapter attempting to run. As the adapter polls every 60 seconds to see if a file is in place then surely this poll is logged somewhere in SAP. I would like to find out if the adapter simply isn't running at all or it is and is having issues. Only way to do this is to find a log/screen in SAP which details the adapter polling the sending server. Is this possible ?
    Cheers,
    PaulC.
    Edited by: paul clements on Jun 9, 2011 12:58 PM

    ●      You have started the Runtime Workbench, are in component monitoring, and have selected an Adapter Engine as your component.
    ●      On the Status tab page, you have chosen Communication Channel Monitoring to call the communication channel monitor.
    Regards
    Pothana

  • Sender File Adapter not picking up the file

    Hello Experts,
    I have configured a sender file (FTP) adapter. All the configurations are right. The name of the file is given exactly as it is. The processing mode is Delete.
    The scenario was running fine till today. I only made changes to the path from which it has to pick the file. I have checked the path numerously and it is correct.
    But the file is not being picked up.
    Monitoring the communication channel shows no errors. It has the green indicator. No idea what is happening.
    Please Help,
    Regards,
    Merrilly

    Hi
    try to make some changes anf then again save and cativte the adapter. may be the adapter is not being activated.
    also check whether the cache is refreshed or not.
    or u can also check in the communication channel monitoring the channel is start or stop. if stop then start the channel and then try again.
    if u still face the problem please reply me back.
    Thanks
    Rinku

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

  • Sender JMS Adapter - NOT Working

    Hello Everybody - We are on SP13, also installed JMS Driver files on the system. We are running, Central Adapter Engine.
    We configured the Sender JMS Adapter for WBI MQ->XI->SAP scenario. We need to JMS Adapter to be configured to connect to WBI from XI. Everything looks great in configuration but in the Adpater Monitoring, JMS Adapter is with Error Status and Message says "Sender channel. Details: (No detail information set.)".
    Does anybody has any idea about this error ?
    I checked SAP Help link as well on this. Based on this link http://help.sap.com/saphelp_nw04/helpdata/en/ca/e7673c86d19b35e10000000a11402f/frameset.htm. Do we need to configure this JMS Adapter somewhere on teh server as well ? If yes, then where ? Pls respond if you have any clue about it.
    Thanks in anticipation...

    Hello Stefan - Thanks for response.
    Here are the Parameters.......
    Adapter Type: JMS
    Sender Type Clicked
    Transport protocol:WebSphereMQ (non-JMS)
    Message protocol:JMS 1.x
    Adapter Engine:Integration Server
    Queue ConnectionFactory Java Class:com.ibm.mq.jms.MQQueueConnectionFactory
    Queue Java Class:com.ibm.mq.jms.MQQueue
    IP Address or Server Name:10.9.48.154
    Server Port:1414
    Queue Manager Name:WBIDEV
    Channel Name:WBI.XI.SVRCONN
    JMS Queue:XI_REQUEST
    Transport/Network Protocol:TCP/IP
    JMS-Compliant:JMS-Compliant
    Transactional JMS Session:Check box Set
    JMS Queue User:XIUSER
    JMS Queue Password:********
    Set XI message ID(MessageID) to:GUID(recommended value)
    Set XI cenversation ID(conversationID) to:No value
    Mapping of Message:Message Payload=JMS Payload
    Quality of Service:Exactly Once
    Time Period for duplicate check for EO(IO)(secs):86400
    Wait After Message Error(msecs):1000
    Wait before Reconnect(msecs):1000
    Status:Active
    The Error Message I see in the Adapter Monitor is "Sender Channel. Details: (No detail information set.)
    Pls advice If I am missing anything ?
    Thanks....
    Amrish.

  • File Adapter Not Working Proper

    Hi XI Experts,
    Here, we configured Idoc to File Scenario using File Adapter. We are getting errors in records while receiving the Text File.
    The error we r getting in those record of the file where some data is missing. After which whole records get curropted. ForEx:
    HeaderLine
    Store    ArticleCode    ArtDescription    MerCat    Amount   TaxCode
    3022    130000000      Shirt                  FMCG     200           k5
    3022    130000001       Short                FMCG     150           k5
    As above line items have allthe fields filled so uptill this text file we r getting is error free.
    3022     130000003      shirt 
    3022     130000004      masalas         fmcg         50             k1
    As in above line item few of fields are missing and whole recordsafter this record get corrupted. And weget following corrupted data
    3022     130000003      shirt         50        fmcg
    3022     130000004      masalas         fmcg         50             k1
    Can something be done with FCC ????
    As this is effecting the business Please reply ASAP.

    Hi,
    Also check ur mapping program.It is Idoc to file scenario rite...then see whether ur target structure is getting mapped from the idoc and check ur mapping once and see whether u r getting all the fields in the target xml.Check ur xml payload of ur file in RWB.
    And that too no need of giving  PA01.fieldNames in the content conversion parameters.
    Directly u can give:
    recordset structure name.addHeaderLine         
    recordset structure name.fieldSeparator  
    recordset structure name.endSeparator      
    Hope u got my point.
    Regards,
    Prasanthi.

  • Multiple keyFieldValue in Sender File Adapter

    Hello All,
    Have a  situation, with reading 2 files a debit and credit file which have the same file structure, But different file names, Example Credit is prefixed with C.txt and Debit is prefixed with D.txt.. I am able read both the files with configuring one communication channel, using advanced Selection for source file.
    The structure of the debit file will look something like below
    <Header>
    *<identifier>1</identifier>*
      <description>Returned Items</description>
      </Header>
    <Details>
      *<identifier>3</identifier>*
      <returnDate>19-07-2010</returnDate>
      </Details>
       <Details>
      *<identifier>3</identifier>*
      <returnDate>19-07-2010</returnDate>
      </Details>
    <Total>
      *<identifier>9</identifier>*
      <itemCount>000000002</itemCount>
      </Total>
    The structure of the credit file will look something like below
    <Header>
      *<identifier>1</identifier>*
      <description>Returned Items</description>
      </Header>
    <Details>
      *<identifier>2</identifier>*
      <returnDate>19-07-2010</returnDate>
      </Details>
       <Details>
      *<identifier>2</identifier>*
      <returnDate>19-07-2010</returnDate>
      </Details>
    <Total>
      *<identifier>9</identifier>*
      <itemCount>000000002</itemCount>
      </Total>
    I am using the identifier field as the keyFieldValue its value will be  '2' in case of the credit file and '3' in case of the debit file.
    Even if 2 keyFieldValues for 2 and 3 are passed as parameters to the Details records, the adapter reads only details records of 3 as it is declared first in sequence.
    I do not want to create 2 communication channels for just for a different keyFieldValue. Can anyone propose any suggestions.
    --Prashanth

    Hi Sheetal,
    have declared the content conversion as below
    Details.keyFieldValue = 3
    Details.keyFieldValue = 2
    On starting the channel with the 2 files on the directory, the adapater reads the debit file correctly but in case of the credit records, it is not reading the Details structure. I get only the Header and Total Structure for the Credit record.
    --Prashanth

  • File Adapter not working

    OK.....
    I've PM server on linux machine...I've deployed FileAdapter connector and restarted server...
    I've deployed ComplexStructure tutorial but in BPEL Console I've this error for ComplexStructure Process:
    Exception Name:
    Error while creating activation job
    Exception Description:
    An error occurred while attempting to instantiate the activation agent class "oracle.tip.adapter.fw.agent.jca.JCAActivationAgent". The
    exception reported was: "javax/resource/spi/BootstrapContext".
    Where is my error?
    Thank
    Andrea

    Hi Andrea,
    This exception is occurring due to the fact that the J2EE Java Connector Architecture JAR file connector.jar in the Application Server CLASSPATH is of version 1.0.
    Our JCAActivationAgent however needs version 1.5 of this JAR file (released with J2EE 1.4) since it uses the new JCA 1.5 inbound classes (such as BootstrapContext, ActivationSpec etc).
    Please try to copy
       {orabpel-home}/lib/connector15.jar
    to
       {j2ee-home}/lib/connector.jar
    and try again. When we ship the product, this will not be necessary since the OC4J version then will support JCA 1.5.
    -Bo

Maybe you are looking for