File Adapter Issue - Don't wont polling
I am trying to create a bpel process that takes user input and then as I continue the flow thru the process I get to a point where I want to read a file using the adapter, but I want the flow to invoke the partner link and not the adapter polling for the file. This is because the front end of this process will take user input (authentication) and then the page will upload a csv file to a directory. Then the process will take the input and write to DB, then poll the file and write to a different table. But I can't see how to disable polling and tell it to look for the file on demand.
-WL
Here is the exception I get on the Invoke of the fileAdapter.
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="summary">
<summary>file:/C:/OraBPELPM_1/integration/orabpel/domains/default/tmp/.bpel_BPELProcess2_2.0.jar/ReadCSV.wsdl [ Read_ptt::Read(Root-Element) ] - WSIF JCA Execute of operation 'Read' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.file.inbound.FileActivationSpec due to: ; nested exception is: java.lang.ClassCastException; nested exception is: org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.file.inbound.FileActivationSpec due to: ; nested exception is: java.lang.ClassCastException</summary>
</part>
<part name="detail">
<detail>org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.file.inbound.FileActivationSpec due to: ; nested exception is: java.lang.ClassCastException</detail>
</part>
</bindingFault>
Similar Messages
-
FTP/File adapter issue (polling one file at a time)
Hi,
I have come across an interesting scenario. I have a folder in which many files are placed at once (around 20+).
In my adapter I need such a logic that whenever file adapter polls the directory, it should only pick one file, wait for the specified time (in PollingFrequency interval or maybe some other way) and then poll the next file. Right now it polls all the files in one go.
Is there any property that I can use or any other logic that can help me achieve this?
Thanks.Hi, You can use MaxRaiseSize property. Set its value to 1.
-
File Adapter Issue: Not functioning when used with BIC user modules
Hi! ALL
We have been experiencing issue with file adapter, when we SeeBurger BIC user modules in sender file - FTP communication channel.
The regular FTP functionality is working fine if do not have BIC user modules defined under the module tab.However, when put in BIC user module parameters it is not picking up the file.
Also, we do not see any error logs; even the communication channel monitoring does not show any error log....only show the polling interval success, without the file being picked up.
This issue started appearing once we deployed our new sda file....as we changed our BIC mapping.
We can try doing back to our previous sda file....to see it fixes the problem.
But, before doing that ....we would like to know where the cause of this issue....Can you point us to any error logs we can find on the PI server.
Your help is greatly appreciated!!
Thank you,
Patrick.If you configured your logging correctly you should find in the log folders
./applications/com.seeburger.jucon/
./applications/com.seeburger.bicxiadapter/
Try to scan those for recent errors - if the no log files can be found you should check the defaultTrace. -
File adapter not reading (not starting polling interval)
Hello,
I've got one communication channel trying to read a file each 10 seconds.
The file adapter is configured correctly and the channel is started but sometimes it stops the polling interval process and I don't know why.
For example the channel was working fine until Friday but with no reason it stopped to attempt to read the file on the directory... what can it be?
And another question. What's the difference about communication channel with "Automatic control" or "Started" manually?Hi,
And another question. What's the difference about communication channel with "Automatic control" or "Started" manually?
Whenever you create new communication channel in Integration directory and activate it,its status in control data is Automatically and whenever you change it in RWB (Stop/Start) its status changes to Mannually.
Thanks! -
Base64Binary OSB and File Adapter Issue
Hi all,
I am converting an xml to flat file after that i want to write the flatfile to a file using File Adapter in OSB.
So using java callout we converted the binary content to base64 string and we are able to write the data using file adapter .
But the file contains as extra line in between each line which my legacy system wont accept.
I printed the base64 string in the output file and when i decode that file using the website as safe decode as text i am able to get the correct file.
So where is the problem ? File Adapter ? Why i am getting extrace line in between each line . How to write safely using file adapter.
If i use file transport of OSB i am able to write without any issues but i want to write dynamic location so i am looking for file transport of OSB.
Thanks
PhaniHi Anju,
Thanks for the response . If i decode the base64 binary data using this website if i use Notepad++ i cant see an extra line in the notepad++ it showing as below
Its a fixed length file 1 to 513 then next line so for the file transport it showing as below
ISA ............................
1 to 513 CRLF
For file adapter it is showing as below in the same notepad++ editor
ISA..........................
1 to 513 CR
CRLF
an extra CR so an extra line .
I used MFL and converted the xml to non-xml ( flat file fixed length file) for file transport i am i created another proxy message type Text .It is working fine
Added to the above problem i have another few questions on the file transport
How can append to an exiting file using File transport ?
How to change the File directory dynamically ? -
File adapter issue in Linux enviornment
hi'
I am deploying BPEL in Linux enviornment, and with the file adapter read operation I am reading a test.xml file this file is internally refering to emp.xsd (files are below), now the issue is the file adapter is reading XML file even if it is invalid, this was not the case in windows XP enviornment, please advice why it is behaving like this.
Also the path of my XSD is "/home/wsfbpel/public_html/XSD" and the file has all read write permission (chmod 777 filename)
XSD
*<?xml version="1.0" encoding="windows-1252" ?>*
*<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"*
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
*<xsd:element name="readfile">*
*<xsd:complexType>*
*<xsd:sequence>*
*<xsd:element name="name" type="xsd:string"/>*
*<xsd:element name="empid" type="xsd:string"/>*
*</xsd:sequence>*
*</xsd:complexType>*
*</xsd:element>*
*</xsd:schema>*
XML (this is clearly invalid with respect to XSD it is refering to)
*<?xml version="1.0" encoding="utf-8"?>*
*<!-- Created with Liquid XML Studio Developer Edition (Trial) 8.1.2.2399 (http://www.liquid-technologies.com) -->*
*<tns:readfile xmlns:tns="http://www.example.org"*
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.example.org /home/wsfbpel/public_html/XSD/emp.xsd">
* <tns:name>yatanveersingh</tns:name> *
* <tns:empidname>6499</tns:empidname>* +(incorrect element name)+
*</tns:readfile>*
thanks
YatanHi,
My problem got resolved.
There was some access issue to see the txt files at the File Directory.
Thanks. -
File adapter issue - files not processed (file name mask is *)
Hi guys!
I have a problem I never faced before. My file adapter doesn't process files in the source directory. When I put there exact file's name, it is processed. But when I use * , nothing happen. This is very strange. I was wondering, if problem can't be in that my PI box is UNIX and it's accessing Win filesystem.
Any ideas, what to try?
Thank you!
OlianYes, but I meant the one directory we're working in. We can write, delete there, so we should be able also use wildcards, don't we?
However, I tried it on a directory with 777 attributes. There is a file named clooo.ttt. When I run del .ttt I get Requested action not taken, file unavailable. The same for clooo. , clooo*,... But when I type del clooo.ttt, the file is deleted...
Any suggestions?
Olian -
Hi,
I have a scenario like R3(IDOC)->XI(Mapping)->FTP(Content Conversion)
I am trying to FTP a file across to a vendor's FTP server using the reciver file . adapter. The target filename is of the form %ABC%IJK%%b.However on posting the file i get a message like.
An error occurred while connecting to the FTP server '<hostname>:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 200 Command Okay. ID: <userid>, Current TR - Recv: <userid>, APRF: *BINARY, Dir: S. Get option: single. '. For details, contact your FTP server vendor.
It seems although the connection is established, the ftp put does not work
Can anyone help on what is the cause of the error and possible solutions.
Regards,
Alex.There can be following things:
- Target Dir is not present or you dont have an authorization to create it.
- Check the Access to put the file in that directory.
Check the same for other interface also. If other interfaces are running fine then try to put the file in that DIRECTORY for test purpose.
Thanks
Farooq. -
In file adapter Source system having 7 columns and Target system having 6 columns?
how to synchronise it?
Edited by: 995694 on Apr 5, 2013 9:33 PMDid u mean, how to translate the content from source to target?
If that is the case, try using an XSLT transformation.
How are the 7 columns fitting on 6 columns? I mean, maybe 2 columns represent 1 at the Target? Something like that?
thx
best -
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
AnilHi,
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. -
FTP & Wildcards (File adapter issue) - asterisk not working
Hi guys!
We need to use FTP sender adapter and we need to pick up all files present in the directory. Normally we would use asterisk (*), but the adapter is not processing the files. It behaves like the directory would be empty.
Do you use wildcards in FTP sender channel? Is it working for you?
Thanx! OlianHey Olian
>>worng file list generation
whenever you give any wildcard character for filename first of all a file list is generated,this file list contains names of all the files in the source directory(if you have given *) or names of files which satisfy your selection criteria(if you have given?).
once the list is generated then the files are picked up based upon the list.
to me it looks that this list is not being generated and due to which you are unable to pick the files using wildcard.
There could be other issues too but i m not sure about them
Thanx
Aamir -
File Adapter Issue in SOA Suite11g
Hi,
I have been facing a strange issue while testing my BPEL process.
I have a BPEL process which reads input as event listener and then does a small transformation
At last its writing that output message into a txt file using FileAdapter.
While testing the BPEL process, its showing success instance id but no files are generating.
When I was checking at Audit Trail, its showing the output message is being passed into the FileAdapter.
Same time I was checking the server log, but there was no error/exception.
Can anyone help me to resolve the problem?
Note:
I have been using SOA Suite v11.1.1.4 & have configured FileAdapater with option of Logical Path
Regards,
DebaHi,
My problem got resolved.
There was some access issue to see the txt files at the File Directory.
Thanks. -
Receiving file adapter content conversion issue
Guys,
Could someone please help me with a Receiving file adapter issue?
My output structure is something like this:
Vendor_file_MT (occurence 1)
--Recordset (occurence 0..unbounded)
Vendor (occurence 1)
Field1
Field2
Field3
Field73
Field74
My content conversion is very simple:
Recordset Structure: Vendor
Parameters:
Vendor.fieldFixedLengths 30,30,30, (...) ,1,27
Vendor.fixedLengthTooShortHandling Cut
Vendor.endSeparator 'nl'
If I don't do the content conversion, it works fine, I get all the fields in the XML format.
When I do the content conversion however, I get multiple lines but only the very first field of each line.
What could be the problem? What am I missing here? Any idea?
Your help would be much appreciated.
Thanks,
ViktorVarga:
Its little strange that its not working even after adding that. Did you check the receiver channel in your RWB for any logs. Add the statement in my previous post and Also try to clear the Cache and activate the channel again..See if it works
Glad it worked
Edited by: Guru on Apr 21, 2008 3:15 PM -
File Adapter polls all the files from the directory when deployed again
Hi,
File Adapter polls all the files from the inbound directory irrespective of the timestamp when deployed again.
For ex. when the BPEL process with file adapter is deployed, it starts polling the directory based on the timestamp as and when the directory is written with the files. I did not opt for deleting the files after read by the File Adapter.
But, when BPEL process is modified and deployed again, this time, the file adapter picks up all the files in the inbound directory and doesn't consider the timestamp.
My guess is that it should not pick all the files but based on timestamp only.
I guess I can observe the same behavior if I bounce the Application Server also
Do I have an option to achieve this?
Thanks,
Sasi Bhushan.try this:
1- create a File object for the directory. (look at isDirectory() )
2- create a File[] that represents the files in that directory. (.listFiles())
3- if (file[x].isDirectory()) {recursive method call;}
4- else {
process file;
If you want more help--do some work on it, and come back with specific questions relating to specific lines in your code and specific error messages you've been receiving. -
File Adapter - special character in Filename
Hi,
i have a question concerning file adapter.
Scenario: we are polling files via file sender adapter (FTP).
Problem: if the filename contains a special character, an error is thrown with 'The System cannot find the file specified'
Scope: Special character in filename (not in payload)
Installed: XI 3.0 SP 19 on Linux
Questions:
- what FTP implementation does XI use?
- What do i have to check/upgrade to unicode?
- is it an OS problem or an Java problem or a XI problem?
- or is it not possible copiing files with special characters in filename?
Thank you very much in advance.
MichaelHi Michael,
The file/FTP adapter supports both passive and active FTP data connection. You can select the data connection while configuring the adapter.
The file/FTP adapter follows specification RFC 959. The specification can be found on the Internet under www.ietf.org/rfc/rfc0959.txt.
For FAQs about the file/FTP adapter, see SAP Note 821267. Please note that you'll need an account to log in on service.sap.com.
Question: How are you specifiying the file name? i.e. Are you using placeholders, like ?, *, *.txt, etc ?
If there's a problem with the filenames, then it should be a problem in the JAVA implementation of the adapter I assume. So you could for instance build your own adapter extension to by-pass that problem.
Just for your information; I haven't encounter a problem with filenames in other projects.
Good luck!
Maybe you are looking for
-
Connecting android phone via USB
How come when I use USB to connect my Android phone (Samsung gs2), two (2) "No Name" folders open up on the desktop? I only want one, but it seems to be splitting my phone into two folders?
-
Hi All, We are unable to start Wily Introscope manager.Once start generating Java heap dump and went to down status.Please find the Log file details below and give your suggestion to resolve this issue. Module=/usr/sap//wilyintroscope/jre/bin/libj9ji
-
Retrieving and removing Messages and Activities
Hi, In our project we would like to create alerts and simple workflow. We would like to base our implementation on the existing B1 infrustructure. For that we need to manipulate messages and activities (i.e. contacts). Alas I did not find for SAPbobs
-
IWork '08 / Keynote '08 vs. iWork '09 / Keynote '09
I'm trying to open a iWork Keynote 08 presentation with Keynote '09 and it will not open. Apple says it will and it won't. I've paid good money for these programs over the last few days and nothing is working right. I'm trying to work with these prog
-
Edit episode number, season, show, description metadata?
Is this possible? I've imported my own tv shows off DVD and would like to match their metadata w/the stuff I've bought from the iTunes store. I've noticed the shows from the store have tags in the "album" field which appears to match the "show" tag..