Regarding File Adapters

Hello
   I am working on File Adapters and would like to know as to how do you go about specifying the record substructure when you select the File Content Conversion in the Message Protocol of the Adapter configuration.I went through the help content on XI but was not clear.
Thanks and Regards

Hi Sharat,
Please go through these links:
/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
I hope if it helps, you'll give me points.
Thanks & Regards
Varun Joshi

Similar Messages

  • Regarding advenced mode option at sender,reciever file adapters

    hi.
    can any xi prof tell about the use of advanced mode at sender,reciever file adapters.
    and one more thing that i foung difference is at sender  adapter advanced mode 
    there are some options like msecs to wait before modification check and the other one is maximum file size bytes .
    waiting for any great response.
    u r great answer would be appreciated.
    bye.
    regards.
    seeta ram.

    check out this thread
    Re: Dynamic file name in Receiver File Adapter
    Check these also .
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    hope this can help u

  • How to add header line in a file from XI system using file adapters

    Hi All,
    I need to add header line (Column names) in a file coming from XI system.
    I am using file adapters.
    Thanks & Regards,
    Gaurav Mittal

    The Receiver File Adapter is configured, using the following settings:
    1) Choose File Content Conversion as the Message Protocol.
    2) You give the ‘addHeaderLine’ parameter as 1
    3) For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
    4) The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
    5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
    please visit the blog.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /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

  • Dynamic Configuration for two file adapters communication channels

    Hello Experts!!!!!!
         In one of the interface in my landscape, I am using two file adapters for creating two files with different names and at two different destination on F.T.P.
    However the receiver service for both the communication channel are same.
    In message mapping I am using multi mapping to create two files out a single message.
    Now i have a requirement of changing file path and file name using dynamic configuration for both the comm channel.
    When i doing dynamic coniguration for both the comm. channel. My interface is creating two files but with same name and on same destination which is set for second communication channel through dynamic configuration.
    Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating two files with same name and at same destination.    
    Please suggest, if separate dynamic configuration for separate communication channel of same receiver service can be done?
    Thanks & Regards,
    Amol

    Thanks for your prompt responses!!!!!
        Is there any way, By which in dynamic configuration I can find out the communication channel name and then change its parameter.
    I mean if iam using say comm. channel A and B.
    Then in dynamic configuration for A, I will first take communication channel A by calling it and then change its path/file name.
    and then do samething for comm. channel B in its dynamic conf.
    Regards,
    Amol

  • UTF encoding issues on file adapters and mappings

    Hi,
    We did some tests regarding to UTF-8 and UTF-16 encoding using file adapters. Our conclusion so far is (when using Windows OS):
    1. Inbound adapter can handle UTF-8 and UTF-16 correctly, but do not specify the encoding!
    2. XI mappings will set the XML encoding to UTF-8 correctly when sending an UTF-16 file to XI.
    3. Outbound adapter can only handle UTF-8 (and US-ACSII and ISO-8859-1) correctly.
    The exact test results are:
    >>Outbound file adapter bug.
    If no encoding is specified in the outbound file adapter, UTF-8 and UTF-16 are handled correctly. However if the encoding is set to UTF-16, XI mapping will fail with the error:
    During the application mapping com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
    Part of the trace:
    com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_CHRIS_OUTBOUND_TO_INBOUND_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) a0d, a0d, 6e3c(:main:, row:3, col:2) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:78) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest
    >>Inbound file adapter bug.
    If the encoding of an inbound file adapter is set to UTF-16 everything works ok (except the XML encoding is not set correctly, but this may be a mapping issue and not an adapter issue). However the default UTF-16 encoding seems to be UTF-16BE, where I would expect UTF-16LE since this is the most commonly used encoding.
    If the encoding UTF-16LE or UTF-16BE the characterset used in the message is correct, except the BOM of the file. The BOM is empty which means UTF-8 encoded file. Since the file is UTF-16BE or UTF-16LE encoded, this is wrong and the correct BOM should be added by the adapter.
    Encodings like US-ASCII and ISO-8859-1 are handled correctly.
    >>Mapping bug
    When we send in a message encoded in UTF-8 and want to send it out as a UTF-16 encoded message, we need to set the XML encoding to UTF-16. Normally this is done by an XSLT mapping using the <xsl:output encoding=”UTF-16”/> command.
    The UTF-8 message will get processed by the XSLT and any special character will be converted to its UTF-16 value. However the output message is not UTF-16 encoded (1 byte in-stead off 2 bytes).
    When this 1 byte message is send to the inbound adapter (encoding is set to UTF-16) the message will be translated from 1 byte to 2 byte (UTF-8 to UTF-16). The characters that were converted from UTF-8 to UTF-16 will be read as single byte characters and will be converted again. This will result in an incorrect message with illegal characters.
    So basically characters will be converted to UTF-16 2 times, which is incorrect.
    Maybe someone can confirm this on another XI system (maybe different OS). If you need test files or mapping, please let me know.
    Kind regards,
    Christiaan Schaake.

    Update after carefully reading all the UTF related documents on the internet.
    For UTF-16 the BOM is required and the adapter is handling this correctly. (encoding=UTF-16 will create the BOM).
    For UTF-16LE and UTF-16BE the BOM must not be set. The application should be able to handle the conversion. The adapter is working correct again.
    If the adapter is set to binary mode in stead of the text mode, the file will always be read correctly.
    About the mapping issue, I'm still experimenting with this one.
    Kind regards,
    Christiaan Schaake.

  • Maximum No of Sender File Adapters in one adapter engine

    Hi,
    what is the maximum no of sender file adapters we can use with a single adapter engine(having only central adapter engine) ? we are using around 15 sender (inbound) file adapter communication channels with an average polling interval of 10 mins - 30 mins, because of this the system became very slow and j2ee server process is taking more than 50% of CPU time.
    Has anybody deployed more than 15 sender (inbound) file adapter comm channels in the impletation and went live successfully ? Please share your experiences regarding this.
    Thanks
    Pavan.

    I am using 18 file adapters at sender side .
    added 6 more in dev and UAT total 24 working fine in these environemnts..
    my file adapters never gave me a problem unless and untill structure problem..
    Regards
    Rao

  • How to insert data coming from 2 different file adapters in to one DB adapt

    Hi
    i want insert data in to database containing two diffferent tables, so i imported tables in to DB adapter by creating relation ships.But, data for two tables are in xml format & two are in different locations.So, i used 2 file adapters to get data from 2 different & i used BPEL(Define service later) Service. now in bpel i used receive activity to receive one file adapter data ( i checked create instance in receive) then used transform activiy for tranformation & finally invoke activity to invoke DB adapteer........similarly i repeated sequetially to 2 file adapter, by keeping 2nd receive(no need to check create instance) next to invoke.*Problem is after deployment finished only data coming from 1st receive is inserting to the table...& 2 nd receive not working it showing as Pending & showing as Asynchronus Call back inte console*
    I configured all the adapters perfectly..........Can any one can help me how to Commit 2 nd receive to insert data in the 2nd table
    Regards,
    jay

    Thank u both for ur replay.........
    I am doing this in 11g there is no problem regarding transform activity.
    My requirement is
    two different files from two different folders in a drive & we can't use one file adapter bcoz both have different columns(only few are common columns) so we use two different xsd's .So, i am using two file adapters to insert in database having two different tables with respect to two different files data coming from two file adapters. i am using one DB adapter to insert bcoz both tables are in same database with relationships & i used BPEL(define service later) .
    NOW PLEASE SUGGEST ME THE FLOW IN BPEL TO INSERT BOTH FILES IN THERE RESPECTIVE TABLES IN DATABASE.
    The flow i did 1st file adater--->receive--->transform---->invoke----->DB adapter.....Then again repeating this as keeping 2nd receive below 1st invoke
    2nd file adapter-------->2nd receive---->2nd invoke------>same DB adapter
    MY problem is only data coming from 1st process is inserting & 2nd one is not working as i discussed earlier........I USED READ FILE OPTION, UNCHECKED DELETE FILES OPTION & SET DIFFERENT POLLING FREQUENCY FOR BOTH FILE ADAPTERS.
    I tried to set correlation but it is not working & later tried i kept non-blocking invoke as TRUE in DB adapter also didn't work...........also i tried this transaction property in bpel component _<property name="bpel.config.transaction"_
    many="false" type="xs:string">required / requiresNew</property>...............BUT NO CHANGE...........
    Regards,
    jay
    Edited by: 910162 on Apr 5, 2012 12:38 AM

  • Regarding file content conversion

    Re: regarding file content conversion  
    Posted: Sep 25, 2008 11:30 AM    in response to: kummari     Edit      E-mail this message      Reply 
    i tried.but m getting this error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns1:MT_HyperionReport' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns1:MT_HyperionReport' found in document', probably configuration error in file adapter (XML parser error)'
    Actually my input structure is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ECCReport xmlns:ns0="urn:syngenta.com:i_ecc_erp:se:global:fi_reports:common">
    <ACTFiscalyear>siva</ACTFiscalyear>
    <StartPeriod>44</StartPeriod>
    <EndPeriod>55</EndPeriod>
    <LineItems>
    <ReportingUnit>rama</ReportingUnit>
    <ProfitCentre>844</ProfitCentre>
    <Amount>855</Amount>
    </LineItems>
    </ns0:MT_ECCReport>
    and in FCC i wrote below these three lines:
    LineItems.fieldSeparator 'nl'
    MT_HyperionReport.fieldSeparator 'nl'
    LineItems.fieldSeparator 'nl'
    So please tell me what is wrong in this

    MT_HyperionReport is your message type and this represents the top level node of your message. Below this you have your records. You have MT_HyperionReport as a record type which is clearly not going to work.
    In the content conversion parameters section the following fields should be filled, you dont need to specify Recordset if your XML structure does not include this node see SAPhelp example:
    Document Name: MT_HyperionReport
    Document Namespace: <look at your message type in the designer>
    Recordset Structure: Record_type1,<occurrence 1..>, Record_type2,<occurrence 1..>
    In the parameter box:
    Record_type1.fieldSeparator
    Record_type1.fieldNames
    ignoreRecordsetName value true
    Record_type2...
    The SAP help on this is pretty clear and comprehensive...
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • How to use trigger file functionality in File Adapters - Match file names

    Hi,
    I am using trigger file functionality in File adapters to pick up data files as:-
    <property name="TriggerFilePhysicalDirectory" value="/pub/Dev/eastern/brs/"/>
    <property name="TriggerFile" value="*.trg"/>
    Here any file with .trg extension is taken as a trigger file and File adapter randomly picks up one of the data files.
    My requirement is that the trigger file will be of the same name as that of the data file like:- <data_file>.data <data_file>.trg
    How to implement this feature using trigger file functionality of File adapters??

    The trigger file is any file that indicates(triggers) that the actual data file has been put in ftp location, i.e- determines the state when data file should be read.
    This helps usually when a large data file is being transferred and at that incomplete state the FTP adapter tries to read it(which is not desirable)
    It is configured when you create the ftp adapter service in your process(in wizard) or u can manually configure that in the JCA file for the FTP Adapter service as below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <adapter-config name="FlatStructureIn" adapter="File Adapter" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="*.txt" adapterRef=""/>
    <endpoint-activation operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property.../>
    <property name="*TriggerFilePhysicalDirectory*" value="/tmp/flat/ArchiveDir"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Reference: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAJCBGI

  • Set polling time with BPEL and ESB File Adapters

    We have create file adapters in BPEL and ESB. We see where you can set the frequency for polling but do not see a place to set the polling time. We would like it to check a directory every 24 hours at midnight. We can set the 24 hours but not the midnight. How does ESB and BPEL determine the time to run based upon the interval?

    Oracle SOA is started, from the time the adapter is loaded, the interval counting starts. It is not on a particular time.
    If you want to start a BPEL process on a certain time, you could use the quartz timer fucntionality of BPEL to start an instance on a particular time (like unix cron tab).
    Marc

  • Regarding file export

    Hi,
    I have some problem regarding file export from java to some word or excel. I have a Jtable in which I fill the data dynamically now I wan't to get that data into an excel sheet with just one click. Regarding .doc I am writing the file but how to do in excel sheet having columns defined.
    Best Regards,
    Sreedhar

    A good Java API for creating or accessing Excel files is POI-HSSF: http://jakarta.apache.org/poi/hssf/index.html

  • Several questions regarding File Vault

    Hi!
    I have several questions regarding File Vault - right now I'm using Mac OS 10.4.8
    1.: The battery lock of my iBook is defect thus it happens from time to time that while transporting it the battery drops out while the laptop is sleeping. What happens with the File Vault-disk image?
    2.: I want to (have to ) set up my Intel iMac again. The installer-CD I have will bring it back to 10.4.6
    AFAIK the data format used for File Vault since 10.4.7 is version 2. What happens if I encrypt my stuff now (10.4.8 - thus version 2), back it up to my backup disc, install a new system (10.4.6 - therefore version 1) and want to access my data via Migration Manager (don't want to use archive and install)?
    3.: How do I actually do a backup of my data while the system is running? The backup should be encrypted as well.
    I use the demo-version of SuperDuper for backing up my system because with it I can ensure that I have a complete bootable backup of my running system.
    Thanks for your answers in advance
    ibook g4 12" 1.2 GHz 768 MB RAM / Intel iMac Core 2 Duo 17" 2.0 GHz 2GB RAM   Mac OS X (10.4.8)  

    Parker,
    You said:1. If it did, Apple would not use FileVault, as everyones computer will have a battery problem once in their life, and Apple would lose buisness from angry people who lost all of their data.I have seen enough reports of data loss with FileVault that I feel compelled to dispute your statement.
    In Data corruption and loss: causes and avoidance, Dr. Smoke writes...If your data-security needs demand FileVault, you should backup your encrypted Home folder regularly, preferably daily. Like any hard drive or disk image, a Home folder protected by FileVault — an encrypted, sparse disk image — does not respond well to the causes of data corruption...Loss of power definitely is a cause of data corruption.
    For Niels....,
    An Unencrypted Look at FileVault, by François Joseph de Kermadec is an excellent discussion of the features, pitfalls, and cautions regarding Filevault.
    Although the article discusses Panther and is dated 12/19/2003, the concepts as they apply Tiger have not changed.
    The cautions and warnings are prominent in any of the Apple Knowledge Base articles referring to the use of FileVault. If a user is unfamiliar with any aspect of FileVault, it should not in my opinion be activated.
    As good as FileVault is in protecting your sensitive data, it also presents the danger of locking up your files in an irretrievable ball of one's and zero's. Backups are critical. You must ensure that you have a comprehensive backup plan. Backup and Recovery, by Dr. Smoke is a fine example of what you need to consider.
    ;~)

  • Regarding file content conversion and jdbc adapters

    hi
    can any one send me the details about the sender jdbc adapter and the receiver jdbc adapter.
    i need the output of sender jdbc adapter(structure)also fro the receiver jdbc adapter.
    for file content conversion -
    can any one send abt the sender and receiver of the FCC adapter.
    also provide some links abt these in blogs.
    thanks in advance .

    Hi..
       You can search those links in SDN.
    FILE to JDBC Adapter using SAP XI 3.0 --Receiver Jdbc adapter .
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/jdbcTOJDBC& ---for both sender and receiver jdbc adapter configuration
    Content Conversion (Pattern/Random content in input file) ---for FCC
    Regards,
    Leela

  • JMS & File adapters not working after SPS20 update

    Hello,
    after an update to SPS20, which was proposed by SAP support to resolve an
    issue with the CPA cache, the File adapter sender and receiver and the
    JMS adapter sender are not working any more, however JMS receiver
    adapters are still functional. In communication monitoring the error
    message for the file receiver is:
    Message processing failed. Cause:
    com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in
    method process.
    resp. for the file sender:
    Attempt to process file failed with
    com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in
    method process.
    and for the JMS adapter I006_GX1TG_JMS_Sender:
    Error while processing message 'db056357-5232-4c35-028e-bc51fa858038';
    detailed error description:
    com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException:
    Exception in method process.: BaseEJBException: Exception in method
    process. at
    com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:95)
    when invoking an ftp sender channel, polling works, the files are
    retrieved from the server, but after that, we get an error. What could be
    the cause of this behaviour?
    log & trace files could be provided.
    Thanks,
    Gordon
    points will be rewarded  ***

    Hi Gordon,
    Patch 9 for XI 3.0 SP20
    SAPXIAFC20P_9
    contains a few fixes for the file adapter,
    e.g., it is strongly recommended by SAP to apply the note :-
    Note 1083488 - XI FTP/JDBC sender channel stop polling indefinitely(04/04S)
    Regards
      Kenny

Maybe you are looking for

  • Data Source Login (ColdFusion)

    I am trying my best to work with Coldfusion however, when I'm connecting my database in Dreamweaver it's asking me for a password. Also, when I'm creating my data source in coldfusion I'm getting an error. Should I have my WAMP sever on? and if so, i

  • Printhead problem oxc19a0020

    Suddenly it will not print.  I get error message "Problem with Print head oxc19a0020.  There is a problem with the printhead."  What and where is the print head.  Is this something that has to be cleaned or replaced?  Or is this a premanent problem?

  • How can I replace low bitrate mp3s and update iTunes library?

    Hello, Apologies up front if this is covered in another thread. If so, please post a link. I want to replace MP3s in my iTunes library with newly encoded 320 KBPS MP3s. I also want to keep each track's play counts and playlist links in tact but with

  • Best way to import closed captions

    BACKGROUND: We record "webinars" using Microsoft LiveMeeting. They are available for download as Windows Media Video (WMV) files. Our government agency-approved contractor provides captions embedded in the windows media video, and they also provide a

  • Phase Approval in cProjects

    Hi all, I have defined my phase as an approval phase in the phase type in customizing. Also assigned the default approval form. 1. When I create an approval in cProjects, I am <b>not able to assign decision maker</b>. I have created and staffed roles