File adapter questions (beginner)

Hi everyone,
I two questions on two topics about file adapter.
1. I have set up a File adapter for a CSV file to be the input file of my process. Now I would like to have an XML file as the input file, but the content is always ignored.
here is the XSD :
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Employees" xmlns="urn:Employees">
<xs:element name="Employee" type="EmployeeType"/>
<xs:simpleType name="InitialType">
<xs:restriction base="xs:string">
<xs:maxLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AgeType">
<xs:restriction base="xs:integer">
<xs:minInclusive value="18"/>
<xs:maxInclusive value="50"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="EmployeeType">
<xs:sequence>
<xs:element name="EmployeeID" type="xs:string"/>
<xs:element name="FirstName" type="xs:string"/>
<xs:element name="MiddleInitial" type="InitialType"/>
<xs:element name="LastName" type="xs:string"/>
<xs:element name="age" type="AgeType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
And now the sample XML file :
<?xml version="1.0" standalone="yes"?>
<Employees>
<Employee>
<EmployeeID>1</EmployeeID>
<FirstName>John</FirstName>
<MiddleInitial>N</MiddleInitial>
<LastName>Smith</LastName>
<age>24</age>
</Employee>
<Employees>
How can I do that ? Do I need the Oracle XML Gateway ?
2. In the BPEL console, I can trace the successfull processes. Alright ... But when I put in a file with the wrong format (eg: missing fields), the process does not even appear in the console. How can I trace them ? (completionPersistPolicy is "on").
Thank you :)

I'm interested in 2 question (missing fields) too.
Ema

Similar Messages

  • File Adapter Questions

    [Edwin moving internal questions to OTN]:
    I'm looking for answers on some BPEL questions I have.
    * Is it possible to iterate over an array in an assign element? How?
    * Where can I find a description of the JCA binding parameters when using the JCA Files adapter (oracle.tip.adapter.file.outbound.FileInteractionSpec)
    * When I modify the FileNamingConvention parameter of the JCA binding for the file adapter, it seems that I need to restart the whole BPEL PM in order for these chenges to take effect? Is this the only way?
    * The format of the %TIME% substitution parameter in the FileNamingConvention only contains the date, no time. Can this format be modified somehow?
    * Can the %TIME% substitution parameter in the FileNamingConvention be combined with the %SEQ%? It doesn't seem so.

    Hi Peter,
    When I modify the FileNamingConvention parameter of >>> the JCA binding for the file adapter, it seems that I >>> need to restart the whole BPEL PM in order for these >>> chenges to take effect? Is this the only way?When you modify the JCA binding parameters, all you need to do is re-deploy the process in question. You shouldn't need to restart the server since hot process deploy is supported.
    The format of the %TIME% substitution parameter in >>> the FileNamingConvention only contains the date, no >>> time. Can this format be modified somehow?We're already aware of this issue and have logged it as a bug. We'll try to make this more granular than a day, e.g. second.
    Can the %TIME% substitution parameter in the
    FileNamingConvention be combined with the %SEQ%? It
    doesn't seem so.No, these two substitution parameters cannot be combined and we haven't encountered this requirement. I assume you'd want this because the previous issue would mandate a SEQ to make multiple files written on the same day uniquely named. Would you still have use-cases for combining these two substitution parameters if TIME were made more granular?
    Where can I find a description of the JCA binding
    parameters when using the JCA Files adapter
    (oracle.tip.adapter.file.outbound.FileInteractionSpec)This will be coming out in documentation with the release. If you have specific questions or would need info on some particular things, e.g. some InteractionSpec params, we'd be happy to send it to you.
    thanks,
    Navneet

  • File Adapter Question - Part 2

    Hello Everyone,
    I'm hoping someone can help me.  I have a scenario in which I am trying to send an XML file (which is placed on our UNIX system, in a specific directory) to the Integration Engine and then have it mapped back into the R/3 system using an RFC which our development team has created.  I have set up the scenario in the Integration Directory, and have the mapping completed in the Integration Repository. 
    I'm just curious to know if anyone has done this and <b>can provide an example</b> of their scenario.
    Also, at this point, I have placed the file in the directory, which I have specificed in my File Adapter configuration, but I do not see messages in the RWB or SXMB_MONI.  Does anyone have any ideas as to why?
    Thanks so much for your help!  I do appreciate it.
    Regards,
    John

    John,
    satish's sugestion is regarding the process mode.
    But before you use delete mode, check the communication channel status.
    Go to the communication channel monitoring tool (RWB, Component Monitoring, Adapter Engine) and check it out.
    For the CCM: http://help.sap.com/saphelp_nw70/helpdata/en/44/2a1a8620323f0ee10000000a114a6b/frameset.htm
    Regards,
    Henrique.

  • File Adapter Question...

    Hi all,
    could somebody tell me if there is a way to limit the number of files processed by a File Adapter in a poll cycle?
    We need to load files from seven folders, each one has different priority (files from one folder have more priority than other folder ones)
    I hope to was clear...
    Best regards,
    Diego.

    Hi,
    There is no direct function to do this. I think.
    But you can use the OS command to execute the script to make the markings. So the Script will mark the files ReadOnly etc , then file adapter will pull the ReadOnly files only..
    This is workaround here.
    And you can think of EOIO also.
    Regards,
    Moorthy

  • Two file adapter questions

    First, can someone post a URL for detailed file adapter documentation?
    Second, I'm a little confused how to use the file adapter in the case where I'm writing out a message whose schema is contained in one of the wsdl files instead of in an xsd file.
    The particular case is that I call the Google search service, which returns a message of type doGoogleSearchResponse. The schema for this message is embedded in the google.wsdl file from Google. When I browse in the file adapter wizard to choose a schema for the write operation, I can only see schema from my projectName.xsd file, none from the google.wsdl file (even though it's in the project). How can I use the file adapter to write out the Google search reply?
    Thanks,
    Bret

    Hmmm. Step 4 of the file adapter wizard requires me to specify a "Message Schema". There is no apparant way to get past that step without choosing one. Should I just choose any schema in the project and then go back and fix the code?
    Bret

  • File Adapter Question in SOA 11g

    Hello,
    just started with this soa stuff and looks like it can be very useful, i have a question:
    i am doing a SyncRead within a bpel process and want the file is not necessarily there as soon as that process runs, so if it doesnt find it i want it to wait 5 seconds and retry and i want it to retry this up to 3 times...
    what is the best approach to getting this done?
    thanks

    Hi,
    You can put the invoke(synchRead) within a scope activity. Now add a catchAll activity, and within it add wait activity(5 sec') and replay activity.
    The replay activity will always start the scope from the begining.
    You will also need to add an if condition with 3 times counter. 1 branch will go to the above activities, and the second one will continue with the process.
    Arik

  • Simple File Adapter Question [ XSD validity  ? ]

    Imported an XSD into JD 101333. [ several large, known as good, used in Biztalk etc ]
    tried to make ESB inbound adapter
    spent ages trying to find out why it wouldn't accept it [ then I found a tiny tiny paragraph in the manual stating it must have a namespace ?  why , honestly who cares ]
    2nd ; still won't validate, now it says "Invalid Reference" .. Which log setting do I switch on in Jdeveloper to see why it's throwing a hissy fit ?
    Note : this is a known good set of XSDs and is in use production ; for it not to import into JD is a major drawback to the people I'm evaluating BPEL/ESB for... so please help.

    2nd problem found .
    The XSD elements use a ref:
    e.g.
    <xs:element ref="MyMessageType"/>
    the solution is to add
    targetNamespace="http://my.validators.com/msgs"
    xmlns:pv="http://my.validators.com/msgs"
    in the schemadef
    now replace the xs:element with
    <xs:element ref="pv:MyMessageType"/>
    In all honesty where is this written in the manuals ? It's a fair question.
    Added to that you have NO hint as to what is wrong ; I had to deconstruct about 3000 lines of XSD to find the problem. since if you use "Validate XML" in Jdeveloper it works just fine.
    Massive hole guys.

  • Reset of counter in file adapter after restart J2EE

    Hi,
    When the J2EE engine is restarted all counters in the file adapter (Add Counter to filename) are resetted and start at 1 again.
    Is this a bug?
    How to prevent this?
    Even when I put into the file adapter that is has to start counting at 00009 it still starts at 00000. Or if I indicate that it has to start again from 44 it starts counting on 42. .... very strange behaviour.
    regards
    Ron
    Edited by: Ron van der Sterren on Jul 15, 2008 11:54 AM

    See FAQ on File adapter
    question 32
    I think this is not a good solution from SAP.
    Suggestion is that a counter can be used. But it is designed that it will be reset by a restart of the engine.
    Ron

  • Some basic questions on File Adapter

    Hello all,
    I have some basic questions on XI and File Adapter and hope you can help me. Any answer is appreciated.
    1. Can I use NFS transport protocol to poll a file from a machine in the network, which is not the XI? Or do I have to use FTP instead?
    2. If I understand it correctly - when using the FTP-File Adapter, XI has the role of a ftp client. I have to run a ftp server on my distant machine. XI connects to FTP-Server and polls the file.
    Can it also be configured the other way round? The scenario I think of would be: FTP client installed on distant machine, which connects to FTP-Server(XI) and loads up a file. So XI would act as FTP Server.
    I know this works, if I install a ftp Server on the computer my XI runs on, and use the NFS-File Adapter to observe the folder. But I want to know, if I need a second, independant ftp server for this.
    3. And last but not least: When do I need the active ftp mode instead of passive?
    Thanx a lot for your answers!
    Ilona

    > Hello all,
    > I have some basic questions on XI and File Adapter
    > and hope you can help me. Any answer is appreciated.
    >
    >
    > 1. Can I use NFS transport protocol to poll a file
    > from a machine in the network, which is not the XI?
    <b>yes</b>
    > Or do I have to use FTP instead?
    >
    <b>also you can do it</b>
    > 2. If I understand it correctly - when using the
    > FTP-File Adapter, XI has the role of a ftp client. I
    > have to run a ftp server on my distant machine. XI
    > connects to FTP-Server and polls the file.
    > Can it also be configured the other way round? The
    > scenario I think of would be: FTP client installed on
    > distant machine, which connects to FTP-Server(XI) and
    > loads up a file. So XI would act as FTP Server.
    > I know this works, if I install a ftp Server on the
    > computer my XI runs on, and use the NFS-File Adapter
    > to observe the folder. But I want to know, if I need
    > a second, independant ftp server for this.
    >
    <b>XI cannot act as FTP server, but it is always a client. When XI is reading (File sender adpater) when XIis writing than it is File Receiver adapter</b>
    > 3. And last but not least: When do I need the active
    > ftp mode instead of passive?
    >
    <b>It depends on your firewall configuration. The best and the fastests is active mode but not always available.</b>
    > Thanx a lot for your answers!
    > Ilona

  • File Adapter Acknowledgement in BPM - NEW Question

    This is in cntinuation of my earlier question:
    File Adapter Acknowledgement in BPM
    Now I understand that the send step should wait to get the acknowledgement from file adapter.
    As I understand This ack may be +ve or -ve.
    <b>So my question is how do we test for + ve acknowledgement in the next step / switch?</b>
    Thanks,
    HImadri

    hi,
    in condition editor of this switch step you need to choose technical objects
    and check it they = true
    for sender apps
    you can also use Main/MessageClass field 
    have a look at the bottom of this page to
    check their values:
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Questions about using FILE adapter to connect to other systems

    Hi,
    in my PI scenario i am facing a problem in usage of the file adapter.
    Our PI system is installed on a UNIX server. The target system for upload an download files is a WINDOWS system. The software installed on the WINDOWS system is only able to export the needed file lokal on the WINDOWS server.
    Between UNIX systems i can connect a together used fileshare folder. But this won´t help me in my UNIX <> WINDOWS scenario.
    I thougt on using an FTP server on the WIDNOWS system to make the PI able to connect via the FTP adapter but this works fine for one or two systems. I don´t think that this ist the best solution when connection to a lot WINDOWS systems, but mayby i am wrong.
    Actually i use UC4 to copy the files between the two systems.
    Any ideas how to deal generally with such scenarios?
    Many thanks
    Michael

    Even though if you map Unix and Windows OS to read the files, in the long run the design will put you in trouble. Means it requires constant support. Better you go with unix script as per the above suggestion.
    Regards
    Pothana

  • Sender File Adapter FCC Question

    Hello folks!!
    I am trying to configure a FCC for Sender file adapter and wanted to consider a Line feed Carriage return line which will look as below to be a empty tag in XML. After Line 4 there will be a blank line which identifies the start of next record.  I tried using Field.MissingLastFields , Field.endSeparator  etc.,  Perhaps I am not using the correct value. Any help appreciated.
    Line1
    Line2
    Line3
    Line4
    Line1
    The expected XML is as below:
    <Record>Line1</Record>
    <Record>Line2</Record>
    <Record>Line3</Record>
    <Record>Line4</Record>
    <Record></Record>
    <Record>Line1</Record>

    Hi Greg
    Thanks for your feedback. I tried and it didn't work. below is the FCC i have in sender adapter
    RecordSetName      =   RecordSet
    RecordSetStructure =    Dummy,*
    Dummy.fieldNames   =  Record
    Dummy.endSeparator = 'nl'
    Dummy.missingLastfields  = add
    Dummy.ignoreRecordsetName = true
    Dummy.fieldSeparator = 'nl'   and also I tried with Dummy.fieldFixedLengths = 255  .
    Still I don't get the empty tag for the blank line in the file, so my output is still same . Please note the blank line doesn't have a space so if I place the cursor and move to next in blank line it will go to next line ( Carriage return and line feed).
    Please suggest .

  • Question about J2SE-File-Adapter

    Hallo,
    i would send with the J2SE-File-Adapter a *.CSV to SAP XI.
    The structure in the SAP XI is:
    PlaintMaintenanceMessagetype
    ......Datasource..................string
    ......Data
    ..........item
    ..............EquipmentID.............string
    ..............FunktionalLocation......string
    ..............Data....................string
    ..............Time....................string
    The *.csv File structure is:
    6ATESTDEMOYVES,
    1234,
    Limo,
    20060105,
    122030,
    The configuration of the J2SE-File-Adapter is:
    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    version=30
    mode=FILE2XMBWITHROWCONVERSION
    ##File Adapter specific parameters (example, see docu)
    ##file.type=BIN
    file.type=TXT
    file.encoding=UTF-8
    xml.documentName=ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender"
    xml.structureTitle=6ATESTDEMOYVES
    xml.processFieldNames=fromConfiguration
    xml.fieldSeparator=;
    xml.fieldNames=Datasource,EpuipmentID,FunctionalLocation,Data,Time
    But it not runing! Can anybody help me? Are any How to guide to send a *.csv with the J2SE-File-Adapter.
    Thanks laura
    With the XML File it works. But there are ofer 40000 records in the *.csv, and i will not create this in *.xml!
    The structure of the XML.File are:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender">
      <Datasource>6ATESTDEMOYVES</Datasource>
      <Data>
        <item>
          <EpuipmentID>1234</EpuipmentID>
          <FunctionalLocation>Limo</FunctionalLocation>
          <Data>20060105</Data>
          <Time>122030</Time>
        </item>
        <item>
          <EpuipmentID>1235</EpuipmentID>
          <FunctionalLocation>Bier</FunctionalLocation>
          <Data>20060106</Data>
          <Time>122031</Time>
        </item>
       </Data>
    </ns:PlaintMaintenanceMessagetype>

    Hi Laura,
    You can navigate thru these links to get more information:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
    Cheers,
    Chandra

  • Question about file conversion in the sender file adapter

    Hi, all.
    I am trying to get the file adapter to parse a file. The message type is the following:
    JOB
       Msg  0..1
          Transaction  0 ... unbounded
             Data   0 ... 1
                f1 string
                f2 string
    How would you define the recordset name and recordset structure to produce the same structure in the converted xml. I tried:
    recordset name : Msg
    recordset structure : Data, *
    But the transaction is missing. I tried:
    recordset name: Msg
    recordset structure : Transaction, *
    Then the data is missing. Note that the actual data in f1, f2 ... are loaded successfully though.
    Thanks,
    Jonathan.

    Hi, Hareesh
    I agree. But that is how it is defined now by someone else. It is hard to change it as he defines the same structure on the receiving side. I didn't want to change the receiving structure as it touches the proxy code too. So I want to make something short and sweet.
    Basically the data looks like this:
    11,222
    55,666
    The result xml should be something like:
    <JOB>
      <Msg>
         <Transaction>
            <DATA>
               11
               222
            </DATA>
         </Transaction>
         <Transaction>
            <DATA>
              55
              666
            </DATA>
          </Transaction>
      </MSG>
    </JOB>
    I know either the DATA has no meaning and it's giving me a headache ... but that's how it's done and I don't want to rock the boat too much. There are lots of mapping that I have changed otherwise.
    Thanks,
    Jonathan.

  • Basic question in File Adapter

    H all,
    I have an Inbound FileAdapter polling for incoming files in a particular directory , a Routing service and an Outbound file Adapter which writes this file to another directory .
    I have checked the Validate payload at Runtime box in the ESB Control.
    I was expecting that if I place a file with data which doesnot conform to the input schema of the inbound file adapter, it should throw an error. But I noticed that the inbound file adapter picked up the file from the directory and deleted it from the directory after reading. But I couldnot see the file in the output directory.Neither is it showing any instance in the ESB control.
    If I put a file with the contents conforming to the input schema , its working as expected . Also If I donot set any value to the output schema from the tranformation activity, it is showing 'Invalid payload error' in the ESB Control.
    Why is it happening like this? Is it the expected behaviour?
    Thanks

    Yes this catches out a few people. have a look at these notes
    http://www.oracle.com/technology/products/integration/adapters/pdf/Adapter_TN_004_Adapter_ErrorManagement.pdf
    http://web.deu.edu.tr/oracle/B14099_16/integrate.1012/b25307.pdf
    they are old but still work today. I couldn't find the upded versions.
    by default it writes the messages to the Oracle_Home\integration\orabpel\domains\domain_name\archive\jca\default_directory
    cheers
    James

Maybe you are looking for

  • Variables in RTF template?

    Variables in RTF template? I am battling with variables in RTF template. (1) I need to declare and set a variable. (2) I like to print it out - check for value (3) then I need to make some conditional formatting IF-THEN-ELSE depending on variable val

  • IS there a way to view all the queries executed against a table in sql server 2008 R2

    Hi, We would like  to see if a table is getting updated or deleted from external source. Hence we want to know how to see list of queries run against a particular table in sql server 2008 R2. Thanks, Preetha

  • Can't see URL to verify email address

    When I send a verify request to my personal e-mail account, I receive a message like the one above in which there is NOTHING to click on to "verify Now". Any advice? I tried viewing source but can't locate an URL in the code, either.

  • How to view all files in subfolders?

    I have a folder (call it folder A) and inside that about 60 subfolders with 5-50 files in each. Is there anyway I can view all the files in Folder A in the 'flat' ie in one window so I can sort them by creation date, modification etc (obviously, I wa

  • Acrobat PDF file not showing any character "i" only after an "f"

    I have a file that was provided from an unknown origin.  The original PDF is good.  After using Acrobat Pro, 11 - every lower case letter "i" if used after a character "f" is missing.  Therefore the view shows this:  "See f gure #", or "the proper co