Issue in File Polling in OSB
Hi,
I need to poll an file based on file modified date from an particular directory.For example i need to poll only files which are last modified on 1st Jan 2013.Is it possible in OSB??
Thanks in Advance
Jayanthi
poll only files which are last modified onThere's nothing out-of-the-box for that... You may have to work around with some custom pre/post processing...
Related documentation...
http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/transports.htm#i1268940
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CIAHFFBI
Cheers,
Vlad
Similar Messages
-
Issues with File Polling and File Copy in a Cluster
Hi,
I have a 2 node cluster of SOA 11.1.1.5. Running into an issue.
I have a File Poll Process which picks up new files and then copy them over to another directory [using COPY operation of file adapter]. After that using FTP Adapter to ftp the file [using MOVE operation of FTP]. Now if I place a file Poll is creating 2 instances. I have configured HAFile Adapter and HAFTPAdapter. Now if I remove the file COPY operation I see only one instance as soon as I put back file copy it creates multiple instances again. Any idea what might be wrong.
I am following the document for file copy and ftp move http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABEBJAF section
4.5 Oracle File and FTP Adapters Use Cases
But in a cluster if I use file copy I see multiple instances of Polling instances.
Thanks"puneet" <[email protected]> wrote in message
news:3fcf4fa4$[email protected]..
>
Hi I use WLI studio to add a user in a clustered environment (admin + 2managed
wli servers). I see the following message in the logs:
####<Dec 3, 2003 1:05:02 PM MST> <Warning> <Security> <suznd265><eflow_2323_wli
managed_2> <ExecuteThread: '9' for queue: 'default'> <kernel identity><14:5a2cc
dff10338da2> <090048> <Made an in-memory only change to the FileRealm.>
As a result, the user, that I added is not actually visible to the othermanaged
servers in the cluster. I have verified this by having only one managedserver
up when adding the user. Once I have added the user, I boot the othermanaged
server and bring the first managed server down. The user I have justcreated gets
lost.
This occurs if you make the change on the managed server. Can you make the
change on
the admin server? It should get pushed to the managed servers. -
Hi,
I have to poll the files( which are copied to the directory at the same time) and do the validation for every record in the file and insert the records to DB.The whole process for each file will take atleast 3 hrs to complete.I need to poll second file only after processing of first file completes.I tried by giving polling interval 10 minutes(600).But its polling both files at a time.Kindly let me know what will be the possible solution to poll the files sequentially with a long polling interval.
Thanks in Advance
JayanthiLooks like, you want to process only one file in each polling cycle, (i.e. you want to work with only one file at a time)
Use the property called "MaxRaiseSize" and set it to '1'. Then in every poll cycle only one file is picked up and processed.
So, for example, if you set MaxRaiseSize = 1 and PollingFrequency=30 then for every 30 minutes only file is read and processed.
Hope this helps to solve your issue. Please let us know either way. -
I have a File with Fixed length format-10
First Line has 10 characters
Second Line has 10 characters
Third Line has 9 characters
I need to ignore the Third Line as the characters are less when compared to Fixed Length
How can i do this in OSB while polling that file?Hi,
Biemond's blog has a step by step
http://biemond.blogspot.com.au/2008/12/flat-file-to-xml-with-oracle-service.html
Also have a look at this...
http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/howto.htm#g1024966
You will have to do some experimentation... There's probably no option like "ignore line if <condition>"...
This may will help on the latter...
How to remove empty tags from MFL transformation in ALSB?
Cheers,
Vlad -
File polling in cluster environment
We have a cluster environment with two servers(say, osb_server1 and osb_server2) and a proxy service is configured with file polling using HAfileAdapter.
When executing this service immediately after activation, for first time, the server “osb_server2” throws error as,
Caused By: BINDING.JCA-11042
File deletion failed.
File deletion failed.
File : /**Path**/filename.txt as it does not exist. could not be deleted.
But for consecutive attempts, the osb proxy service is processed by “osb1_server1” and we are not getting the above mentioned error.
In short, We face the issue as below only when executing first time after “Activate” session but the consecutive attempts doesn’t throw error.
Why such error occurs when executing in cluster environment?
Thanks in advance.try to use the file protocol provided by osb.And select the polling server as on eof the managed server.
-
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.
thanksHi,
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..... -
Production issue - Sender File adapter not picking up the files from folder
Hi Guys,
Ever since the upgrade from XI 3.0 to PI 7.1, we have come acrossinstances of weird error.
Thsi time again - now the 3rd time - tandom basis, in our production PI server, we have teh file slying in the source directory folder in the server.
I can see the files lying there in AL11.
However, it looks like that the file polling has just stopped and the channel is going blank in channel monitoring.
I have checked in SXMB_MONI and there are no messages since the morning.
I have tried craeting a replica of the current channel but it is not working.
This is teh production server and thsi has alraedy created production issues.
I ahve checked in the SDN forum but am not able to find the details.
Plaese help me.
I am anyway going to raise the issue with SAP now.
Regards,
Archana
<REMOVED BY MODERATOR>
Edited by: Prateek Raj Srivastava on Jun 8, 2010 4:50 PMHi Prateek,
I have trying all sorts since the morning and then just checked teh file permissions.
The file permissions were incorrect as compared ot the other files that were processed successfully today.
Somehow the permissions were changed on the server and the interface channel was not able to poll the files.
I got teh permissions changed back to 666 and all the files were pikced up in a minute.
I got the folder checked and it seems like that the permissions were changed somewhere very early in the morning and we are trying to find out how it happened and who did that.
However, another question i had - this sender file adapter was polling the source directory and deleting the files from there.
I would have expected that if the channel had issues with the file permission because of which it was not able to access the file, it would have thrown an error something like the file permissions error.
But there was not a single error in the channel monitoring.
How can we configure it in a beter way so that we at least soem kind of error indication?
Please advice.
Regards,
Archana -
High Availability File Adapter in OSB
If you use the JCA FileAdapter in OSB, it is necessary to use the eis/HAFileAdapter version, to ensure that only one instance of the adapter picks up a file; you must then configure a coordinator, by setting the
controlDir, inboundDataSource, outboundDataSource, outboundDataSourceLocal, outboundLockTypeForWrite
parameters.
controlDir refers to the filesystem, the others to the DB
This document http://www.oracle.com/technetwork/database/features/availability/maa-soa-assesment-194432.pdf says
"Database-based mutex and locks are used to coordinate these operations in a File Adapter clustered topology. Other coordinators are available but Oracle recommends using the Oracle Database."
Using a Oracle Database as coordinator means using RAC, otherwise no HA.
I wonder if anybody has been successful setting up HAFileAdapter without using a DB?
If DB is required, I am considering using the good old "native" OSB File Poller, since it doesn't require complicated setup to be run in a cluster... but I don't want to use MFL, I would rather use the XSD-based Native Format. Here comes the second question:
Is it possible to use the nXSD translator using the OSB Native File Poller - instead of the JCA Adapter?
Thank you so much for your help - it will be rewarded with "helpful/answered" points .
pierreI wonder if anybody has been successful setting up HAFileAdapter without using a DB?
I have not tried it but I think there are several options available invlucing writing your own custom mutex. Please find the details in Oracle File and FTP Adapters High Availability Configuration section on this link
http://download.oracle.com/docs/cd/E14571_01/core.1111/e10106/ha_soa.htm#sthref434
Is it possible to use the nXSD translator using the OSB Native File Poller - instead of the JCA Adapter?
When you create a JCA Adapter based Proxy Service to read the files, the nXSD translation happens before the proxy service is invoked. JCA Engine first reads the data, translates using nXSD and then invokes the Proxy with the translated content. (You can verify this easily by creating a JCA based file read service and open the test console for it in sbconsole, it will show you XML request instead of native).
So you can not read the text content using File Transport of OSB and then calling nXSD directly or calling an nXSD based Proxy Service.
HOWEVER, you certainly can use file and nXSD in a combination if thats what you want.
1. Create a Synchronous Read File Adapter with an nXSD created for it
2. Create a Business Service for that Synchronous Read JCA in OSB
3. Create a File Transport based service in OSB which will read the content of file and then call the Business Service to again read the content (which will include the translation using nXSD defined in step one to convert the content to XML).
So basically you will need to read the file twice! Once using File Transport Proxy service (which will take care of polling in cluster) and then using Sync Read JCA based business service(which will do nXSD translation). To reduce the impact of reading the file twice you can use trigger files. File Proxy to read trigger file and and invoke JCA business service to read the actual file for that trigger.
Another alternative can be to create a similar class as present here(http://blogs.oracle.com/adapters/entry/command_line_tool_for_testing) but instead of writing a file it will just return the translated content. Call this class with native content from the File Transport proxy using a Java Callout to do the translation. -
Issue with File Download(messageDownload) on Search Page.
Hi,
I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
The table has 3 collumns along with others:
1st is primary key (Record_Seq) ==> number data type
2nd to store actual file name (File1Name) ==> varcahar2 data type
3rd to store the actual uploaded data (File1Data) ==> BLOB data type
The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
On the File1Data BLOB and created a messageDownload for that under query results table with following details:
ID : File1Data
ItemStyle : messageDownload
FileMIME Type : pdf
Datatype : BLOB
View Instance : LacEmpExposureVO1
view Attribute : File1Name
File View Attribute : File1Data
When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
Also one weird thing is happening:
If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
Thanks,
Mir
CO code for the search page
===========================
if (pageContext.getParameter("Create")!= null)
System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
pageContext.setForwardURL
("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, //Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
HashMap params = new HashMap(1);
params.put("RecordSeq", RecordSeq);
pageContext.setForwardURL
("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params,
true, //Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
else {
String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
System.out.println(strEvent);
System.out.println("Into the last ELSE part in LacEmpExposureCO.java");Duplicate post -- Issue with File Download(messageDownload) on Search Page.
-
Is there an issue using file vault 2 on a Mac fusion drive
is there an issue using file vault 2 on a Mac fusion drive
I'm using that configuration and it works for me. There have been some reports of kernel panics with FileVault and SSD's. The cause is unknown. Chances are you'll be fine, but make good backups.
-
Issue with file to file in PI 7.3 (Splitting huge files)
Hi All,
Need your help in fixing the issue with file splitting
We are doing some sample scenarios(file to file) on PI 7.3 server.
We are trying to split a 10MB file by using the 'Advanced Mode' option in the sender file adapter. We gave max split file size as 2MB. The file got split into 5 chunks and was successfully sent to receiver file adapter. In receiver adapter we are able to see that. But in the target folder only 1 file was seen with size 2MB. All other chunks were missing. We need to have the whole data sent from source to target.
How to fix this issue? please provide your inputs.
Thanks and Regards,
Lakshmi NarayanaPI 7.3 has capable of processing larger size files.
Questions:
Have you picked EOIO quality of service? Hope you dont do mapping or content conversion for this file?
have you seen this link
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a06d79f3-d094-2e10-1a81-f4d802d0bcf1?QuickLink=index&overridelayout=true
http://help.sap.com/saphelp_nw73/helpdata/en/44/682BCD7F2A6D12E10000000A1553F6/frameset.htm -
Issue with file name in receiver Communication channel
Hi Experts,
I am sending the files from SAP Application server to third party Application server.
In my source folder i have different types of files with different names.
but i need to pickup the files which is coming as of type sss_3300_was.txt and sss_3400_was.txt.
what would be the logic for this.what my understanding is if i put sss_* it will works.
If suppose the file is Exist in the folder as sss_3300_was.txt , so it will picked up and places in target folder.
and next time if the file type is sss_3400_was.txt then that will pick up and places in the target folder.
my question is, in the receiver comm channel what would be the file name scheme. i have tried with * and / but system has not been accepted as * can not be given.
Kindly suggest what should i put in Receiver CommChanne file name sheme.
Appreciate your inputs
Thanks,
BhaskarHi Satish,
Thanks for your valuable inputs.
Actually i need to change the subjet when i am asking other question...
first thing is suppose i have 10 files like sss_3100_was, sss_3300_was, sss_3400_was........sss_3900_was in the sender application folder and should be moved to receiver [target] folder with the same name.
as you said mentioned above below is my undertsanding, please correct me if i am wrong.
In sender cc
1. i will give file name as sss_*
2. i will flag ASMA and also check file name.
In receiver cc
1. I will give file name as sss_*
2. i will flag ASMA and also check the file name
The above is my understanding with respect to your inputs, is it correct?
in receiver cc i have tried file name scheme as sss_* but when i see the receiver CC log its telling that * is not allowed.
may be i have not flaged ASMA at that time, but now i will flag ASMA in receiver CC dose it works? just need to confirm from you.
Regarding seconf issue.
when file is picking up from the source folder from SAP Application server as i can see file is picking up well and posting in third party folder and even in the sender cc and receiver cc logs i could see all shown in success.But when i see in the SXMB_MONI in the inbound interface the data are coming in the special charater format like @$??? and so on.But when i checked in SAP Appl server the same file contains the three lines of data like material number purchase order number and so on and it is Text file.
below mentioned are done configs for sender CC by me.
MP: file
TP: NFS [as it is SAP appl server]
filepath:/
file name: sss_*
file type :text
add time stamp
..... and so on
Kindly advise me if any changes are required and also provide me inputs in case any correction.
Thanks,
Bhaskar Reddy -
Re: OSB - How to put multiple files via a osb ftp business service?
I have been trying to create an ftp business service to transfer files to a remote machine. I select that the service should support any XML document (since I am only sending XML). Then, I specify the remote server directory like so:
ftp://hostname:port/directory
I take the rest of the default settings. However, when I use the business ftp service by testing it in the console, it just hangs. I can successfully ftp to the server and send files from the OSB server command line to the remote server in question. So, it isn't a problem with our network or a misconfiguration of ftp. Has anyone successfully used the ftp business service in OSB? If so, how do I configure it properly? Thanks muchHave you checked server logs? Enable message tracing in operational settings and check the logs to find out where it is getting stuck.
Regards,
Anuj -
Hello,
I need your help in dealing with File attachments in OSB using JCA integration.
My requirement is Read file as attachment with File Adapter and write to a remote location with FTP adapter.
I successfully created the business and proxy services to do so and it can transfer the file to new location too. But in the remote server I see the attachment reference instead of original file contents.
InputFile:
customer_1234.txt
asldfkjsadf
akdshfksajdh
aksjdfafasdf
output file in remote server:
cust_1234.txt
<?xml version="1.0" encoding="UTF-8" ?><attachmentElement href="-1172596423/cust_12345.csv_1351025265000" xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/"/>
so my question is how to get the contents of the file in the remote location instead of its reference when file attachment option is used. what could be in either business or proxy service to get it correctly.
Thanks,
Nex.Hi,
You need an assign to extract the content of the attachment into a variable before passing it to the business service.
http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/context.htm#i1103309
As an alternative, see if this sample can help you... It's a totally different approach though...
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABJBIAD
Cheers,
Vlad -
1. In a clustered environemnt, we need to use "Distributed polling" in DB adapter to make sure the multiple cluster instances are not polling for the database at the sametime. If "Distributed polling" can achieve that, what is the need to have singleton property set for the DB adapter in the composite.xml
2. For achieving DB adapter polling in osb, we need to create the adapter in bpel and then export them to osb project. In such OSB project, where do we set the singleton property ?Thanka Ananth.
I assume active-passive cluster setup means,
there will be a cluster with only one osb or bpel managed server (active cluster)
There wil be another cluster with only one osb or bpel managed server (passive cluster).
so when there is some data inserted into the database, there will be only one managed server (available on active cluster) will be available to poll for the recored. Passive man server does not poll for this record. I assume this is the default behaviour. If such is the case, then what is the use of setting this singleton property ?
Maybe you are looking for
-
Having problem with wifi after upgrading to iOS 6
After I upgrade my iPhone to ios6 I am having many problems connecting to wifi. Places that I had wifi connection at home now are not available and it takes long time for the iPhone to connect to the wifi. What to do??????
-
Best practice SOD Library in AACG 8.5.1.278
Hi, We require best practice SOD Library in AACG 8.5.1.278 for EBS R12. I have searched Oracle edelivery but could only find library for AACG 8.6 . We are using Windows X-64 platform. Can someone provide a download for the same in English language? T
-
Error message when changing Mail preferences
Whenever I change anything in the Preferences of Mail 2.0.8 even just opening the preferences and then closing them, I get an error message that says "Error Saving Preferences" " Writing your preferences to disk has failed. Your preferences may not h
-
How to get View All Categories That I can Use? - Urgent !!!
Dear All I have the following Scenario: I viewd documents General Properties and its Category. Now am trying with no success to View all Categories That I can Add it to document. for more details here is my code: public DocumentEntity getCatList(long
-
The freeze occurred when I attempted to drag a message into a subfolder of the structure that is now corrupted. Only one subfolder remains available. The label of the folder appears grayed and italicized.