Creating a File Adapter in XI 3.0

Hi
I want to use the File adapter in XI 3.0 to generate a file on my server. Is there any detailed!!! step by step guide where I can read about this?
I have created a business service, a communication channel, interface determination and a receiver determination. I have a R/3 system which sends an IDOC to XI where I want XI to use the File adapter to export a csv or text file. I get the following error(TR:SXMB_MONI) in my XI system:
no_messaging_url_found: Unable to find URL for Adapter Engine af.xid.nb13
Error when reading the access data (URL, user, password) for the Adapter Engine af.xid.nb13
Best regards
Göran

Hi Sai,
     You will surely have that option in RWB just check this link below...
http://www.dataxstream.com/2010/11/configuring-availability-time-planning-in-sap-pi/
Regards,
Naveen

Similar Messages

  • File permission in unix - file is created by File Adapter

    I've created a composite that creates an output file in unix server. Problem that I have is the file permission. When file is created it has a permission like below even though this directory is widely open - chmod 777.
    -rw-r----- 1 oracle dba 1123 May 4 17:30 Item_18.xml
    How can I configure this so that when file is created by SOA composite it can share with others. As you see third group doesn't even have "read" permission.
    Edited by: user613835 on May 5, 2011 9:09 AM

    Hi,
    That means at os level it using umask value of 002 ...where as when you create it from ABAP it is using umask of 022.
    Is the owner for both the files are sidadm only?
    Thanks.

  • How to Create a Flat File using FTP/File Adapter

    Can any body done workaround on creating the Flat file using FTP/File Adapter?.
    I need to create a simple FlatFile either using of delimiter/Fixed length. using the above said adapters we can create XML file, i tried concatinating all the values into a single String and writing into a file, but it does not have proper structure
    Can any body help me out on this..
    Thanks
    Ram

    You can create a text schema while creating a File Adapter. If schema is specified for File Adapter, it takes care of converting XML into fixed length or delimited format.
    Thanks,
    -Ng.

  • Problem with file adapter (FTP) created under business service

    Hi
    I am using file adapter in my receiver communication channel. I dont know the physical existance of the system so i have created one business service. Under this business system i have created a file adapter with FTP protocol. I have given all the parameters. But when i am trying to execute my scenarion i am getting the following error in SXMB_MONI.
    com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_SQLMediaCodeToCRMCapaign_: RuntimeException in Message-Mapping transformatio~
    In RWB i am getting the following error.
    Mapping Error
    Execption_During_Execution
    In Communication Channel monitoring I am not getting any information regarding receiver file adapter. Its not showing any message either error or sucessful. How to find whether my receiver communication channel FTP parameters configured correctly or not.What is the error. Please help me.
    Regards
    Sowmya

    Somya,
    Error clearly indicates that issue is with mapping....so there is no point of checking receiver adapter..
    BTW for checking whether the FTP site is working properly or not , you can use any ftp client softwares or command prompt of windows also.
    ---->In Communication Channel monitoring I am not getting any information regarding receiver file adapter. Its not showing any message either error or successful.
    Message has not reached up to that level so no point of looking at receiver communication channel.
    Regards,

  • Error in sender file adapter: source directory does not exist

    Hi,
    The PI system is 7.11
    I've created sender file adapter with following details:
    Transport Protocol : File System
    Source directory: /interfaces/In
    I checked in AL11 that this path really exists and it does. (I can even see the .txt file that should be processed.)
    But still i get in Communication Channel Monitoring the following error:
    "Configured Source directory "/interfaces/In" does not exist.
    (i also tried to give the source directory as "interfaces/In" and as "//interfaces/In" but still the same error.
    Any suggestions as to what is wrong?
    kr
    Robert

    Actually, Need to use forward slash (/) to separate directory names in accordance with the Java specification.
    But wanted to try if that works..
    Also check directory name , path again as this is case sensitive...
    --Divyesh

  • Read from a config file in File Adapter in SOA Suite 11g

    I want to read from a config file in order to determine whether to archive or delete the file after processing using file adapter in SOA Suite 11g. How do i do that.

    only part i replied on was the part of how to read a file
    but i think in your case you could do the next
    use the sync file adapter to read in the file during your process
    based on this content you set a variable "myOutputDirectory"
    then create a file adapter (write) which will store the file on file system
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CIACICFD
    4.3.2.2.5 Specifying a Dynamic Outbound File Name
    and use that (jca.file.Directory) property to store the file either on the archive location or the delete location

  • Reg:File adapter archive Directory

    Dear team,
    Our requirement is to read a csv file from a directory and archive the file in archive folder specified in the file adapter.
    If any exception is caught,then we need to read the archieve file from archive directory rename the archive file with source file name and place it in source directory.
    On the receive activity we are able to get the source file name and source file directory.
    <receive name="Receive1" createInstance="yes"
    variable="Receive1_Read_InputVariable" partnerLink="fileRead"
    portType="ns1:Read_ptt" operation="Read">
    <bpelx:property name="jca.file.FileName" variable="srcFileName"/>
    <bpelx:property name="jca.file.Directory" variable="srcDrFolder"/>
    How to get the archive file name and archive file directory from the receive activity so that we can store in local variables.
    Pls do help.
    Thanks

    Hi,
    Another way you can accomplish your scenario. Instead of deleting or archiving in beginning just move the file from inbound to archive location after business flow completion.
    In case of error, the file will remain at original position as moving operation is at the end.
    First read the file using read operation, then at the end create a file adapter with sync read operation. Change the entries in .jca generated with below sample.
    Sample jca file.
    <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
    <!-- Below properties are dummy except Type , it will be changed in runtime -->
    <property name="SourcePhysicalDirectory"
    value="srcdir"/>
    <property name="SourceFileName" value="abc.txt"/>
    <property name="TargetPhysicalDirectory"
    value="targetdir"/>
    <property name="TargetFileName" value="abc.txt"/>
    <property name="Type" value="MOVE"/>
    </interaction-spec>
    Then,in you bpel flow at the invoke for sync read add these two properties.
    <bpelx:inputProperty name="jca.file.SourceFileName"
    variable="varInputFileName"/>
    <bpelx:inputProperty name="jca.file.TargetFileName"
    variable="varArchiveFileName"/>
    <bpelx:inputProperty name="jca.file.SourceDirectory"
    variable="varInputDirectory"/>
    <bpelx:inputProperty name="jca.file.TargetDirectory"
    variable="varArchiveDirectory"/>
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Durga

  • File adapter in OSB

    Hi ,
    I am trying to use file adapter in OSB. My intention is the OSB should write a file in a specified location in my sytem. I have configured the Business Service with Messagin service in (general tab), request msg as text and response msg as none in(messagin tab), protocol as file in (transport tab), prefix as AddUser suffix as *.txt* in (file transport tab).
    whenever i give input in proxy service it writing the file at the specified location, but the issue is,it writes the file name as AddUser3225734920456246193--12c3763f.132dd1769a3.-7f5b.txt . i dont need this part(AddUser3225734920456246193--12c3763f.132dd1769a3.-7f5b) in file name which is written. can anyone tell me how i can solve this?
    Any help is appreciated.
    thanks

    Hi,
    We can go with transport JCA FILE for file writing into the specified location.
    Create a file adapter in jdeveloper with all specified things like (file name,physical path location and schema).This creates the jca and wsdl file in jdevloper copy this to eclipse(OEPE) and later u can create business service based on jca file in eclipse.Or else in osb sbconsole copy import related jca and wsdl files and create business service based on this.This process wil create file in particular location with name specified in the jca file in particular location.....

  • Testcase problem using two file adapter and a transformation

    We've got an input which looks like this :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>A</naam>
    </row>
    <row>
    <id>20</id>
    <naam>B</naam>
    </row>
    </rows>
    I've created an XSD for this message which looks like this ( straightforward ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.nl/testschema" xmlns:test="http://www.test.nl/testschema" elementFormDefault="unqualified">
         <element name="row">
              <complexType>
                   <sequence>
                        <element ref="test:id"/>
                        <element ref="test:naam"/>
                   </sequence>
              </complexType>
         </element>
         <element name="rows">
              <complexType>
                   <sequence>
                        <element ref="test:row" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="naam">
              <simpleType>
                   <restriction base="string">
                   </restriction>
              </simpleType>
         </element>
         <element name="id">
              <simpleType>
                   <restriction base="byte">
                   </restriction>
              </simpleType>
         </element>
    </schema>
    I've imported this XSD in my ESB project and created a file adapter which reads this type op files.
    I've created another file adapter to write the files 1:1 to an output dir.
    In the routingservice I've created a very straightforward XSL mapping which maps everything 1:1.
    Now the problem
    When I use this input :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    my output result is:
    <?xml version="1.0" ?><imp1:rows xmlns:imp1="http://www.test.nl/testschema"/>
    I know this is a namespace issue. When I add the namespace
    <?xml version="1.0" encoding="UTF-8"?>
    <rows xmlns="http://www.test.nl/testschema">
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    I get the correct ( and 1:1 output ).
    The problem is. In the scenario I'm about to build the input xml messages do not have an namespace. How can I alter my xsd file or anything within my ESB project that all files will be picked up correctly and processed without having an default namespace?
    Any help is appreciated!

    True,
    But its the other way around what is causing my problem.
    Because the input xml files contain no namespace at all the xml messages are transformed but result in an almost empty xml message. ( e.g. the root element is there and thats it ).
    This is because the XML transformation mapper in ESB ( as well as BPEL ) excplicitly needs a namespace.
    I solved it by editing the XSL by hand, removing the :imp1 namespace prefixes in the select="" tags. e.g.
    <xsl:for-each select="/imp1:rows/imp1:row"> is updated in
    <xsl:for-each select="/rows/row">
    As far as I know this is the only workaround at the moment that I could find.

  • Using File Adapter with Logical Name

    I am creating a file adapter with Logical name. Apart from giving the Logical name is there any other configuration that I am suppose to do on the Web Logic before I start using it?
    Thanks in Advance.

    After configuring the file adapter, all you need to do is , give the path as a value for the logical name which you have created earlier. That you can do on the file adapter property inspector. There is no need to do anything on the server level. Lemme know
    Thanks,
    N

  • File Adapter with Content Conversion

    Hi -
    I am trying to convert a Flat file which has data as
    firstnamelastnamecompanyName
    Now i have created a message type which has a root name as Contact and its children are FirstName,LastName,Company.
    And in the configurator i have created a file adapter with the content conversion, but being very new to XI i have never used a file adapter with content conversion.  This is what i have in my Content Conversion Parameters.Please correct my code.
    Document Name      ::   MT_Contact
    Document Namespace ::   http://venkat
    Document Offset    :: <i>i did not enter anything here</i>
    Recordset Name     ::   RootNode(i gave this name just like that,,, Should it be something from the IR??
    Recordset NameSpace:: <i>i did not enter anything here</i>
    Recordset Structure::   Contact (this is the name in my IR
    Recordset Sequence ::  Ascending
    Recordsets per Message :: Contact,* (Can someone explain what should be given here)
    Then in the bottom in the name value pairs i have given
    Contact.fieldNames   =   FirstName,LastName,Company
    Contact.fieldSeparator = #
    When i am using the above configuration the error i am getting in RWB is Error: Conversion initialization failed: Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Format error in 'xml.recordset' argument: incomplete structure (name,number) pairInvalid 'xml.recordsetsPerMessage' value 'Contact,*' found
    I am very new to XI and i am unable to understand what exactly each field means in the file adapter when the content coversion is used. Can someone take the pain of explaining them.
    Thank you
    Venkat

    Hi,
    Use the following to create an XML strucutre like this,
    <MT_CONTACT>
    <CONTACT>
    <FirstName> </FirstName>
    <LastName> </LastName>
    <CompanyName> </CompanyName>
    </CONTACT>
    <MT_CONTACT>
    DocumentName : MT_TEST
    DocumentNamespace : Yournamespace
    RecordserName : record
    RecordsetStructure : CONTACT,1
    In the table,
    ignoreRecordsetName  : true
    CONTACT.fieldNames : FirstName,LastName,CompanyName
    CONTACT.fieldSeparator : #
    Go through the links suggested by moorthy and also these blogs to understand content conversion better,
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /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/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    Regards,
    Bhavesh

  • File Adapter in ESB

    Hi,
    Am creating a file adapter to read a fixed length file.I have hand written the schema and configured the adapter to poll a directory every 10 secs and the file name filter expression to be *.txt.
    First time every thing seems to work as expected.I make change to the schema and reconfigure the adapter, adapter does not pick up the file.It picks up the file after OAS is restarted.What is the problem here??
    It works if I specify schema is opaque.
    will the adapter not pick up files, which does not conform to the input schema ?
    Can some one clarify???

    Hi,
    Actually in file and ftp adapters, we can poll from multiple locations...
    Keep the following property in your .jca file <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    If you want to write the file in multiple locations, may be you can try the same, if that doesn't work, please create two file Adapters as references each having different writing locations...
    Hope this helps...
    Thanks,
    N

  • FILE ADAPTER NOT READING FILE.

    HI, GUYS.
    I'M USING A FILE ADAPTER TO READ A FILE THAT HAVE 4 REGISTERS AND EACH REGISTER ONLY HAS ONE FIELD THAT IS NUMBER TYPE.
    I CREATE THE FILE ADAPTER, AND I LET BPEL TO CREATE THE SCHEMA. THE IDE CALLS THES FIELD "C1". I ALSO CONFIGURE THAT THE FILE THAT MUST RAD IS THE PATTERN "*.TXT" AND EVERY 5 SECONDS.
    THEN A CREATE A RECEIVE ACTIVITY THAT RECEIVES WHAT WAS READ FROM THE FILE ADAPTER IN A VARIABLE.
    THEN I CREATE AN ASSIGN ACTIVITY AND I ASSIGN THE VALUE FROM THE RECEIVE ACTIVITY VARIABLE TO A NUMBER VARIABLE THAT IS THE INPUT OF A WEB SERVICE.
    THEN I DEPLOY THE BPEL, AND I INITIATE IT, BUT I GOT AN ERROR THAT SAYS THAT THE FIELD "C1" IS EMPTY. SO LOOKS LIKE THE FILE ADAPTER IS NOT READING THE FILE. I WOULD THANK ANY HELP THAT YOU CAN BRING ME.

    caps off
    You're sure the interface of the fileadapter (client partnerlink) is the same as your data-file which needs to be picked up?
    can you paste the content of the file and the content of the xsd of the process.

  • How to get value of jca.file.IsEof using fromproperties in file adapter

    Hi Guys,
    I have a scenario where i use a file adapter for syncread (for doing chunkRead).
    While invoking this adapter i send jca.file.FileName and jca.file.Directory as input properties dynamically.
    In response i expect jca.file.IsEOF and jca.file.IsMessageRejected, for this i have done the following steps.
    1. Create a file adapter for SyncRead
    2. Create an invoke activity and input/output variables along with it.
    3. set input properties as below ..
    4. get the values of jca.file.IsEOF and jca.file.IsMessageRejected using bplex:fromproerties
    <invoke name="Invoke1"
    inputVariable="Invoke1_SynchChunked_InputVariable"
    outputVariable="Invoke1_SynchChunked_OutputVariable"
    partnerLink="SamplSyncChunkRead"
    portType="ns19:SynchChunked_ptt"
    operation="SynchChunked"
    bpelx:invokeAsDetail="no">
    <bpelx:inputProperty name="jca.file.FileName"
    variable="inputVariable"
    part="payload"
    query="/ns11:fileHeader/ns11:fileName"/>
    <bpelx:inputProperty name="jca.file.Directory"
    variable="inputVariable"
    part="payload"
    query="/ns11:fileHeader/ns11:directory"/>
    <bpelx:fromProperties>
    *<bpelx:fromProperty name="jca.file.IsEOF" variable="isEndofFile"/>*
    *<bpelx:fromProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>*
    </bpelx:fromProperties>
    </invoke>
    5. Flow of the project is fine but im not getting the fromProperty values assigned to variables.
    Note : rather using from proerties like give below
    <bpelx:fromProperties>
    *<bpelx:fromProperty name="jca.file.IsEOF" variable="isEndofFile"/>*
    *<bpelx:fromProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>*
    </bpelx:fromProperties>
    if i use output proerties as given below it is not working..
    <bpelx:outputProperty name="jca.file.isEOF" variable="isEndofFile"/>
    <bpelx:outputProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>
    Any suggestions on this ???
    Thanks in advance guys...

    Thanks veejai...
    i have used the following properties in my code..
    <bpelx:fromProperties>
    <bpelx:fromProperty name="jca.file.IsEOF" variable="isEndofFile"/>
    <bpelx:fromProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>
    </bpelx:fromProperties>
    if i use output proerties as given below it is not working..
    <bpelx:outputProperty name="jca.file.isEOF" variable="isEndofFile"/>
    <bpelx:outputProperty name="jca.file.IsMessageRejected" variable="istheMessageRejected"/>
    any suggestion on <bplex:fromproperties> ??

  • How to write a plain string into a file using File Adapter

    Hi All,
    I am new to ESB technology. I have created one ESB application to invoke a java web service(Which will return string as result) and to write retrieved result in to a file. To achieve it i have created the file adapter using user defined schema. It was working fine. But, I got the modifications in my requirement to store the returned result(String value) in to a text file without any user defined schema. So i used native format for FileAdapter and mapped the returnedResponse(String value) to opaque:opaqueElement. But i am facing relationship error.
    anybody can help me to solve this issue?.. is there any method to convert a string value to opaqueElement..
    Thanks in advance..

    Hi All,
    I am new to ESB technology. I have created one ESB application to invoke a java web service(Which will return string as result) and to write retrieved result in to a file. To achieve it i have created the file adapter using user defined schema. It was working fine. But, I got the modifications in my requirement to store the returned result(String value) in to a text file without any user defined schema. So i used native format for FileAdapter and mapped the returnedResponse(String value) to opaque:opaqueElement. But i am facing relationship error.
    anybody can help me to solve this issue?.. is there any method to convert a string value to opaqueElement..
    Thanks in advance..

Maybe you are looking for

  • How can I remove duplicate of entire library on my itunes

    i got a new large drive for my expanding music collection. backed up to it, then went to preferences and changed where the library resides to the new drive..opened itunes and got a bunch of ? marks near my songs [ perhaps i didn't wait till they disa

  • Using order by and rownum in massive tables

    Hi, I need to retreive paginated and ordered data from a big table. I know some different tips using rownum or the RANK() function and subqueries, these tips work well for small amount of data, but I need to get the data from a table with 200.000 ent

  • Customize X Axis range in Stacked Line Graph

    I have built a stacked line graph. The values on x-axis range from 0 to 5,00,000. Howvever when the graph is displayed the maximum range that is shows is around 90,000-1,00,000. Is there a way to select specific values for X-Axis. Thanks, Mitiksha

  • Extended Classic vs Standalone

    Hi, 1. Can i choose between Extended Classic vs Standalone, I might sound stupid, still i want to hear from this forum. 2. Per my understanding, i can choose to be fully classic by activating Activate Extended Classic Scenario or Partly Classic and E

  • Cannot sync ringtones to my phone

    I bought 2 songs on iTunes, only to find out I had to pay 2.00 more to convert them to ringtones, so I did. When my phone tries to sync them, an error message comes up and says these 2 songs could not be synced because "I am not allowed to play them