Soa Suite: How to limit Outbound File Adapter retry to write to specified location.

Hi all,
I have created a file adapter that tries to write files to the specified location.
If location is wrong, I was expecting to get an error.
But none is generated.
It seems that the service keeps on trying to write to the specified location until it finds it (which is never to happen).
Please tell if I am wrong at this.
I want my service to stop retrying after a period of time or after a number of retries or whatever is happening.
I want to get error if location is wrongly specified.
Regards and thanks in advanced,
ShuklaG

Hi,
Place the receive (or invoke) in a Scope and place a OnAlarm on the scope.
Set the OnAlarm to a max timeout. When the OnAlarm is reached the sequence of that OnAlarm will catch the transaction and you can throw an Error.
You can then catch or retrow the error.
Below some images that show the concept on a receive (download to view).
- ScopeWithOnAlarm
- OnAlarmSettings
Cheers,
Robert van Mölken
Senior Oracle Integration Specialist

Similar Messages

  • How to use File Adapter Receiver to write attachments

    Hi,
    i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments 
    On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
    The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
    I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
    Could anyone give me any ideas?
    thanks a lot in advance
    Xiang

    hi,
    receiver file adapters do not supprt attachments.
    Only File Sender adapter is capable of handling attachments not the receiver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
    Configuring the sender FILE adapter
    The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
    access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
    under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
    Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
    MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
    and also change the file extension.
    The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
    data with another payload which is appended to the message as an attachment. In our case, the payload
    would be file1.xml whereas the attachment would be file1.jpg
    The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the
    MIME header.
    regards,
    pradeep.

  • OutBound File Adapter Issue

    Hi,
    I need some help in configuring file adapters:
    Process: I have a inbound adapter where i am feeding 4000 - 5000 rows of data from a flat file. I use these records to query a database and get response. I have a outbound file adapter where I write database response to a file.
    Problem: I have set the, write new file to 100 records. But if there are 3950 records going to outbound file adapter, It is only writing 3900 records in the output file directory.
    I need to write all records to the file. Please help me achieve this.
    Thank You
    Anil

    Hi,
    the batching criteria (100) is not met.
    You could improve the bahaviour by setting "Elapsed Time Exceeds" parameter, but still, there are some probs because critaria is only evaluated on invocation (anyone has an answer to that?!):
    from Doc:
    Elapsed Time Exceeds: Specify a time which, when exceeded, causes a new outgoing file to be created.
    Note:
    The Elapsed Time Exceeds batching criteria is evaluated and a new outgoing file is created, only when an invocation happens.
    For example, if you specify that elapsed time exceeds 15 seconds, then the first message that is received is not written out, even after 15 seconds, as batching conditions are not valid. If a second message is received, then batching conditions become valid for the first one, and an output file is created when the elapsed time exceeds 15 seconds.

  • Dynamic file names in outbound file adapter

    I have to configure a flow in XI system wich takes an input file from one machine and after mapping process leaves the output file in target machine with the same name of input file.
    Name of input file won't be always the same (*.dat) so i cannot hardcode this name in outbound file adapter.
    Does anyone know how to transfer input filename from inbound file adapter to XI message and then to outbound file adapter?
    I know there is an option to create dynamic file names in file adapter but i think it isn't enought to solve my problem.

    I have to configure a flow in XI system wich takes an input file from one machine and after mapping process leaves the output file in target machine with the same name of input file.
    Name of input file won't be always the same (*.dat) so i cannot hardcode this name in outbound file adapter.
    Does anyone know how to transfer input filename from inbound file adapter to XI message and then to outbound file adapter?
    I know there is an option to create dynamic file names in file adapter but i think it isn't enought to solve my problem.

  • Not able to integrate SOA Suite with EBS using Oracle APPS Adapter

    Hi,
    We need to listen to outbound business events of Oracle EBS using BES via Oracle APPS Adapter.
    We have created a composite containing Oracle Application Adapter and BPEL Process.
    In Apps adapter when configured Outbound Business events "oracle.apps.bom.component.modified" using Dequeue Operation,a corresponding subscriber is created in WF_BPEL_Q for respective event selected.
    In Oracle EBS
    for "oracle.apps.bom.component.modified" status is enabled and in subscription WF_BPEL_QAGENT is there.
    When we are changing any BOM component in Oracle EBS Designer and saving it, a record is being created in "WF_BPEL_QTAB".
    BPEL Process( Oracle Apps Adapter Partner Link---> Recieve Actvity ) instances are not being created when any BOM component is being changed.
    Oracle Apps Adapter is not able to dequeue the data from WF_BPEL_QTAB.
    There is not any error/exception in oracle soa suite server logs for Oracle APPS adapter.
    SOA Diagnostics Logs are :
    [2012-07-04T08:55:51.304+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.bpel.engine] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] CubeServiceEngine=> initing default/Testr!4.0*soa_f1fe3bbc-1269-437c-a75f-1239da743fea/BPELProcess1
    [2012-07-04T08:55:51.304+05:30] [AdminServer] [NOTIFICATION] [] [oracle.integration.platform.blocks.deploy] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] Publishing deploy event for default/Testr!4.0*soa_f1fe3bbc-1269-437c-a75f-1239da743fea
    [2012-07-04T08:55:51.382+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> [Testr.bom_cm/4.0] :load Loading bom_cm_apps.jca ..
    [2012-07-04T08:55:51.390+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm Performing JCAEndpointActivation::prepareActivation for {AppsEventSchema=ANY_SCHEMA, MessageSelectorRule=tab.user_data.event_name = 'oracle.apps.bom.component.modified', Consumer=ORA_8cpkad9l88sj0c9n8kq42ghm85, QueueName=WF_BPEL_Q, DatabaseSchema=APPS}
    [2012-07-04T08:55:51.391+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm JCAEndpointActivation::prepareActivation - Locating JCA Binding Component instance: SCA_AS11R1
    [2012-07-04T08:55:51.397+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> JCABinding=> Instantiating inbound part of JCA Binding Component instance: SCA_AS11R1
    [2012-07-04T08:55:51.397+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm JCAEndpointActivation::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:[[
    endpoint='bom_cm'
    WSDL location='oramds:/deployed-composites/default/Testr_rev4.0/bom_cm.wsdl'
    portType='DEQUEUE_ptt'
    operation='DEQUEUE'
    *activation properties={AppsEventSchema=ANY_SCHEMA, MessageSelectorRule=tab.user_data.event_name = 'oracle.apps.bom.component.modified', Consumer=ORA_8cpkad9l88sj0c9n8kq42ghm85, QueueName=WF_BPEL_Q, DatabaseSchema=APPS}*
    [2012-07-04T08:55:51.398+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm JCAEndpointActivation::initiateInboundJcaEndpoint - Creating endpoint (0) for bom_cm
    [2012-07-04T08:55:51.407+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm JCAEndpointActivation::prepareActivation - Done preparing JCAEndpointActivation for Service 'bom_cm'
    [2012-07-04T08:55:51.409+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> [Testr.bom_cm/4.0] :load Successfully loaded bom_cm_apps.jca
    [2012-07-04T08:55:51.410+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> [Testr.bom_cm/4.0] :init Initializing bom_cm_apps.jca
    [2012-07-04T08:55:51.410+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm JCAEndpointActivation::performActivation - Performing JCA Endpoint Activation, Endpoint Id='bom_cm'
    [2012-07-04T08:55:51.410+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> bom_cm Performing endpoint activation (1) for bom_cm
    [2012-07-04T08:55:51.411+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> Testr JCA Binding Component instance: SCA_AS11R1 - endpointActivation for portType=DEQUEUE_ptt, operation=DEQUEUE
    [2012-07-04T08:55:51.416+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> Testr Creating new instance of Resource Adapter oracle.tip.adapter.apps.AppsResourceAdapter
    [2012-07-04T08:55:51.417+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> Testr JCA Binding Component instance: SCA_AS11R1 - starting Resource Adapter oracle.tip.adapter.apps.AppsResourceAdapter
    [2012-07-04T08:55:51.471+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] Oracle Applications Adapter Starting...AQResourceAdapter
    [2012-07-04T08:55:51.474+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] Oracle Applications Adapter Creating Endpoint...
    *[2012-07-04T08:55:51.482+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] Oracle Applications Adapter Activating Endpoint...*
    *[2012-07-04T08:55:53.782+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> Testr JCA Binding Component instance: SCA_AS11R1 - successfully completed endpointActivation for portType=DEQUEUE_ptt, operation=DEQUEUE*
    *[2012-07-04T08:55:53.783+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,0] [APP: soa-infra] JCABinding=> [Testr.bom_cm/4.0] :init Successfully initialized bom_cm_apps.jca*
    *[2012-07-04T08:55:53.783+05:30] [AdminServer] [NOTIFICATION] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@c8ccf1] [userId: weblogic] [ecid: 1ae79e0a6c47b292:-ec3eb:1384ffb303d:-8000-0000000000000312,1:30342] [APP: soa-infra] Dequeue Agent activated....*
    Regards,
    Abhinav Gupta
    Edited by: Abhinav on Jul 5, 2012 9:56 AM

    We would like to capture a few business events in oracle BOM and PO that are of interest to us. In order to do this,
    we deploy oracle SOA composite with BEPL in the Oracle Fusion Middleware Control. The oracle SOA composite is configured for a particular outbound business event. It should listens on a specific queue WF_BPEL_Q or WF_BPEL_QTAB and de-queues the messages from that Oracle Queue or Oracle AQ Table. In jDeveloper 11g we created a SOA project with oracle applications adapter partner link and a receive.
    Specifically we are trying to capture the business outbound event oracle.apps.bom.component.modified just to get the event data in this receive.
    Partner link configuration: We added the database connection to the oracle EBS instance. Tested it and we
    succeded. Chose ANY_SCHEMA in partner link configuration.
    We ensured that the JNDI Name here( eis/Apps/Apps ) match the JNDI name provided in the weblogic-->Deployments--
    OracleAppsAdapter -->Configuration --> Outbound Connection Pools. For this outbound resource pool, Connection factory interface was javax.resource.cci.ConnectionFactory. Property name xADataSourceName was mapped to JNDI name of the configured JDBC datasource in the weblogic. When we created the connection pool. We tested and it worked fine. This data source had the connection pool configured to the oracle applications schema with APPS user.
    After adding the partner link with the above configuration, we added a receive. We deployed this configuration to the middleware. We went to the oracle EBS modified a BOM component and we expected to having running BPEL instances against the deloyed composite. However, the problem is we are not having any running instance for the composite.
    We found that there are entries in the view AQ$WF_BPEL_QTAB with an ENQ_TIME and ENQ_TIMESTAMP but with no DEQ_TIME or DEQ_TIMESTAMP. The ENQ_TIMESTAMP corresponds to the time we modified BOM in oracle BOM forms/Designer
    The data is being written in WF_BPEL_QTAB for the BOM changes but not being dequeued by oracle applications adapter/composites deployed in soa server.
    Please help me it quite urgent.
    Is there anything we are missing on EBS side to be activited. for the events to be dequeued
    Any Help is appreciated.
    Abhinav

  • Get the filename after an outbound file adapter operation

    Hello,
    I am calling an outbound file adapter operation in BPEL (10.1.3.3) - using a filename mask with a sequence (i.e. po_%SEQ%.xml). I would like to provide the filename created at run-time (i.e. po_123.xml) to my BPEL process so I can send this in an e-mail. Is this possible?
    Thanks in advance!
    Rod
    Message was edited by: Rod - fixed a typo
    Rod Tunnels

    Well, I took a different approach - which looks like it will work. Instead of letting the adapter decide the filename - I'm generating that in BPEL and passing that to the adapter using the header variable. So ... nevermind. ;-)

  • How to register a file adapter in XI Server? [XI 3.0 / J2SE Plain Adapter]

    Hi,
    I am trying to register an outbound file adapter (J2SE Plain Adapter Engine) in the XI server to finally map the adapter to a communiction channel.
    What I tried is to activate the SLDaccessor service in the J2SE Plain Adapter Engine (as mentioned in Plain Adapter Docs -> Serive: SLDaccessor Service).
    After restarting the Adapter, the protocol in Plain Adapter Engine didn´t show any errors.
    Now my problem is where can I find in the "XI-Tools" (SLD, Configuration Builder, ABAP-based Server GUI) that the registration of the adapter did run properly?
    What I expected was that my file adapter would appear in the Integration Builder in my communication channel under the tab "Parameters" in the drop-down box "Adapter Engine". Unfortunately, it is not listed there.
    Furthermore, I do not exactly understand the benefit of registering the adapter in the SLD. What is the real advantage than establishing a connection between the adapter and the XI with the parameters XI.TargetURL etc.
    Regards,
    Kris

    Jason, thanks for your answer.
    Unfortunately, it is not running yet. The Adapter protocol states now:
    11:03:00 : No entry in SLD found for Bus.System 'WeissmannBuisSys1'
    The corresponding adapter configuration looks like:
    XI.SenderParty=
    XI.SenderService=WeissmannBuisSys1
    XI.Interface=OrderMI
    XI.InterfaceNamespace=http://www.foobar.de/sap/xi/test170604
    Can I at least assume that there has been a connection to the business SLD?
    If yes, I do have a Business System 'WeissmannBuisSys1' in SLD -> Business Landscape as well as in my Configuration Scenario under 'Business Systems'. Is this the right one to specify in the parameter XI.SenderService or will there be something else expected?
    Besides that, the corresponding documentation is somehow confusing to me:
    You can set the following arguments (except in mode FILE2XMBSTREAM) and use them to identify the adapter configuration during routing and mapping in the Integration Engine pipeline. You can also find an explanation about each argument there.
    - XI.SenderParty=<sender party name>
    - XI.SenderService=<sender service name>
    - XI.SenderInterfaceNamespace=<namespace URI>
    - XI.SenderInterface=<name>
    - XI.ReceiverParty=<receiver party name>
    - XI.ReceiverService=<receiver service name>
    You must set at least XI.SenderService and XI.Interface. The receiver is generally determined by routing in the Integration Engine. This specification is not mandatory.
    The XI.Interface mentioned in the last paragraph is not listed above in the parameters list. I assume XI.Interface == XI.SenderInterface.
    In the german documetation there is also another XI.InterfaceNamespace mentioned in the last paragraph which I assume is XI.SenderInterfaceNamespace.
    Regards,
    Kris

  • Append functionality in Outbound File Adapter

    Hi all,
    I have a question regarding append functionality in outbound file adapter.
    When I append files for example I get a XML file with different XML files in one file, but is it also possible to collect and bundle the files and get a same result when u use BPM?
    Do I have to add some parameters?
    Kind regards,
    Kamran Vakili

    It is not possible, when you append XML files.
    The result XML file is not valid, as you have multiple declarations and root tags.
    The append mode for the file adapter should be used only for flat files.
    Regards
    Stefan

  • TargetFilename in the Outbound File Adapter

    Hi all,
    I have created an interface that sends projects form SAP PS (by tRFC) to a file directory (using an outbound file adapter). Each project is created as a individual file. All this works well, but the filenames created for the files are not very intuitive for the users looking at the files at the receiver point since there are quite a lot of similar files only distinguished from each other by a timestamp (usualy only separated by milliseconds).
    Is there a way to make the file adapter append data from one XML tag in the file name? I.e:
    file.TargetFilename='<project></project>'.txt
    file.writeMode=addTimeStamp
    giving i.e a file '1234567_timestamp.txt'
    This way I can include i.e. the project number + timestamp as filename making it user friendly for the people using the files.
    Any suggestions will be appreciated.
    Best Regards
    Odd Hilt

    HI
    Read the file without using key field. Just define the FCC parameters Header and Items PI will pick the file.
    DT_Source
       Record
         Header 0..1
           PO_Number String 0..1
         Items  0..unbounded
           Items String 0..1
    Do the FCC
    Header.fieldnames PO_Number
    other config for Header
    Items.fieldnames Items
    other config for items
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Nov 12, 2008 10:27 AM
    Edited by: Gaurav Bhargava on Nov 12, 2008 10:27 AM

  • How to make BPEL File Adapter read only new files?

    Hello
    we have BPEL processes that define to run from bpel component - file adatper-
    when a file come into location that it is path on the linux server . the bpel start run when "File Adapter" bpel component recognize that new file come to the location. its PollingFrequency define to 5. property name="DeleteFile" value="false" so the files remaine there.
    we want to migrate the bpel to new SOA version so we did export and deploy to new SOA Domain.
    the location of the file adapter is the same.
    but when the BPEL processes deployed its start to run for all the files that are in this location- that the file adapter define on .
    even the original soa tooks those files and start the BPEL processes for each one of them. also the new SOA that we did deploy to the BPEL processes take those files even if they are very old.
    we want the file adatper we take only new files . the start point is the time when we do deploy to the process so if we do deploy in 10:00 am we dont want this bpel will take files from 9:00 or earlier time
    Please help , how we can do this?
    Thanks

    thank you
    do you kno hat the value means in the example:
    Java mon amour: File Adapter metadata with SOA Suite
    <property name="jca.file.LastModifiedTime" value="1293041258635">
    what should I rite for read only the files that are only neer then yesterday?

  • Unable to open file created by outbound file adapter

    Hi,
    I have a requiement for polling data from 3 different tables, mergind=g them and writing all data into a flat file in CSV format. However, I see that I'm unable to open the file with my personal UNIX credentials, since the file is getting written by the SOA UNIX credentials.
    Is there any way to set the default permissions on the server so that the file is accessible to other users as well.
    Any insight would be appreciated, I'm quite stumped with this. My working environment is SOA Suite 11.1.1.5 running on OEL 5
    Thanks,
    Debojit

    Hi,
    In my view this can be sorted out at a operational system level, if you set 'umask 2' for the SOA user (the user that is starting the SOA servers and writing the files) then files created by that user will allow rights for users in the same group. So, you will need to add the group id from the SOA user to your user groups.
    It may be a little bit confusing, the link bellow explain how permissions work in a Unix system.
    Understanding file permissions on Unix: a brief tutorial
    http://www.dartmouth.edu/~rc/help/faq/permissions.html
    Cheers,
    Vlad

  • Outbound file adapter for multiple record write

    am using jdev 10.1.3.1
    and SOA suite 10.1.3.1
    I am trying to read a table and write the records to a csv file.
    The bpel process I have constructed is :
    receive > assign input value to table select parameter > select records from table > assign table select output values to file input value > invoke file adapter to write a csv file > assign a literal to process out value.
    when i execute this process it is showing me an error on the file adapter invoke activity.
    the error is :
    </part></Invoke_2_Write_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_TableReader_1.0_594707f7f819a3a4a2002c98afbd42fa.tmp/WritePersonFile.wsdl [ Write_ptt::Write(People) ] - WSIF JCA Execute of operation 'Write' failed due to: Translation Error.
    Error while translating message to native format.
    ; nested exception is:
         ORABPEL-11017
    Translation Error.
    Error while translating message to native format.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    </summary>
    any help would be appreciated.
    thanks

    Hi,
    In your case, to write any data to a file, you need to define/use a schema when you are using a file adapter.
    Cheers,
    Abhi

  • How to customize the File Adapter to put the header line in a variable?

    I have a file in which the first line contains the number of records contained by the file itself.
    Like this:
    4
    record1
    record2
    record3
    record4
    where each record is a delimited list of values
    I need to validate that the records are actually 4.
    in the documentation of the File Adapter I see that you can declare the first line as "header", but I have the impression that in this case it would be simply ignored, and not stored in a variable for later use......
    Is this correct?
    Any trick or workaround?
    thank you soooo much!

    it worked like a charm,
    here is the XSD I have used:
    http://www.javamonamour.org/2010/12/soa-sutie-file-adapter-parsing-complex.html
    ( I don't seem to be able to display correctly XML in this post :o( )

  • How to configure Sender File Adapter to pick couples files in order !!

    Hi Folks,
    I am really looking for one requirement like, Sender file adapter has to pick multiple files by file name based with some time gap? Can we?
    I have got one BPM in this, I have tried with Process mode : Name and Date, with wait step on BPM, but no use. The way how PI behaving, if 40 files in file directory, it is picking all files in one shot. Start processing but not in order.
    The problem is on Receiver system side. The receiver system is SNC system, if old data receives later than earlier date data; we get data obsolete application error.
    Ex: If I receive 25th and 26th files, first I need to process 25th first on PI sends to SNC, I need to give some time gap and pick another file or even  PI picks and process 26th file, no problem but  I need to give some time gap to send SNC to this 26th date file?
    Please how guys, throw me your great ideas
    Thanks in advance!!
    Regards
    San

    @ Sandhya
    If there are 40 files , can you please specify how many types of files are ther like say first A type shud be picked then B type then C type and so on so forth ?
    LIke in my case I had only three types of files file1 and file 2 file 3
    and in the directory also only three  files will be placed at a time
    you need to have some logic to separate the type of files in  differnt folders and then  process them
    @ farooq yes . it will create problem if 40 files are kept at a time .
    Regards
    Ninad

  • SOA Suite 11g - dynamic JNDI destination JMS adapter

    hi there soa suite users,
    im currently using oracle soa suite 11g,
    my use case having a bpel process processing something
    and then route the result to several queue.
    like this:
    jms/adminduk/queue/mks1
    jms/adminduk/queue/pdg1,
    etc...
    so the destination name can be build dynamically in the bpel,
    and i stored in a string variable "destName".
    (im using WLS 10.3 jms)
    now i need to invoke a jms adapter service with produce operation,
    but the queue destination needs to be using the variable "destName".
    i already tried using assigning to property "jca.jms.JMSDestinationName"
    in the invoke activity.
    <invoke ...>
    <bpelx:inputProperty name="jca.jms.JMSDestinationName"
    variable="destName"/>
    </invoke>
    but it seems not working, and im getting this error:
    Caused by: com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    parts: {{
    summary=<summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation
    'SendSinkBioWniFromDaerahResponse' failed du
    e to: ERRJMS_ERR_CR_QUEUE_PROD.
    ERRJMS_ERR_CR_QUEUE_PROD.
    Unable to create Queue producer due to JMSException.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    ,detail=<detail>[JMSExceptions:045103]While trying to find a topic or a queue we could not find the specific JMSServer
    requested. The linked
    exception may contain more information about the reason for failure.</detail>
    ,code=<code>null</code>
    this is a basic use case of jms interoperability,
    anyone have answers to this ??
    thank you :)

    Hi,
    If someone is looking to dynamically set the JMSqueue name here is the solution.
    in the Invoke activity set "jca.jms.JMSDestinationName"
    value to "JMSHeaderVariable"
    set the type to "input"
    in the JMSHeaderVariable set the queue name dynamically.
    and in the JMSadapter give any valid queue name, still the message will be routed to the queue which you have set in the invoke adapter.

Maybe you are looking for