File Adapter Archiving Issue
Hi,
THe file adapter archives the file, it doesn't save the entire contents of the file in the archive folder, but saves the first recordset (row) only in XML format. Did any body face similar issue, and what's the resolution to archive the contents of the file, the way it was sent.
Thanks
Pandari
Hi Anil,
Refer Archiving concepts in below links.
http://help.sap.com/saphelp_nw73/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/content.htm?frameset=/en/44/6830e67f2a6d12e10000000a1553f6/frameset.htm
http://scn.sap.com/docs/DOC-35572
Warm Regards,
DNK Siddhardha.
Similar Messages
-
File adapter - Archive issue with adapter module
Hi All,
I have 2 issues here. We are currently using PI 7.11 EHp1 SP02.
1. Arhival with "add time stamp" wont work. It just gives us an error message saying simpledate format exception.
I have gone through the OSS note 1265534 and thought this will resolve the issue. But our BASIS team believes this note is only applicable for PI 7.1 SP01. Can you one using PI 7.11 SP02 comment on this?
Note: Archive option with out add time stamp works fine.
2. When I use adapter module in my sender file configuration, the archive option itself does not work. Read the official SAP help which says "To archive source files where a permanent error occurred during processing, set the indicator.
A permanent error occurs either during the conversion of the file content, or in a module in the module processor."
So the question here is, how do we make the error permanent? The only way to throw error from adapter module is using the ModuleException. It has 4 different constructors. I have used both
ModuleException me = new ModuleException ("My error Msg"); and
Module Exception me1 = new ModuleException ("Error String", new Throwable("My error Msg");
In both the cases, the archival wont happen.
Any ideas welcome.
Thanks
JaiHi,
I am using NFS protocol here not FTP. Sorry I dint mention that earlier.
Thanks
Jai
Edited by: Jaishankar on Apr 1, 2010 9:55 AM
Edited by: Jaishankar on Apr 6, 2010 11:10 AM -
Reg:File adapter archive Directory
Dear team,
Our requirement is to read a csv file from a directory and archive the file in archive folder specified in the file adapter.
If any exception is caught,then we need to read the archieve file from archive directory rename the archive file with source file name and place it in source directory.
On the receive activity we are able to get the source file name and source file directory.
<receive name="Receive1" createInstance="yes"
variable="Receive1_Read_InputVariable" partnerLink="fileRead"
portType="ns1:Read_ptt" operation="Read">
<bpelx:property name="jca.file.FileName" variable="srcFileName"/>
<bpelx:property name="jca.file.Directory" variable="srcDrFolder"/>
How to get the archive file name and archive file directory from the receive activity so that we can store in local variables.
Pls do help.
ThanksHi,
Another way you can accomplish your scenario. Instead of deleting or archiving in beginning just move the file from inbound to archive location after business flow completion.
In case of error, the file will remain at original position as moving operation is at the end.
First read the file using read operation, then at the end create a file adapter with sync read operation. Change the entries in .jca generated with below sample.
Sample jca file.
<endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
<interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
<!-- Below properties are dummy except Type , it will be changed in runtime -->
<property name="SourcePhysicalDirectory"
value="srcdir"/>
<property name="SourceFileName" value="abc.txt"/>
<property name="TargetPhysicalDirectory"
value="targetdir"/>
<property name="TargetFileName" value="abc.txt"/>
<property name="Type" value="MOVE"/>
</interaction-spec>
Then,in you bpel flow at the invoke for sync read add these two properties.
<bpelx:inputProperty name="jca.file.SourceFileName"
variable="varInputFileName"/>
<bpelx:inputProperty name="jca.file.TargetFileName"
variable="varArchiveFileName"/>
<bpelx:inputProperty name="jca.file.SourceDirectory"
variable="varInputDirectory"/>
<bpelx:inputProperty name="jca.file.TargetDirectory"
variable="varArchiveDirectory"/>
- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
Thanks,
Durga -
File Adapter - Archive Source Files with Errors.
Hi All,
Could you kindly give the steps as to how to configure sender File Adapter to archive source file which result in error ?.
Cheers,
KushiHi Kushi,
To configure Sender File Adapter what you can do is:
1. Create one Communication and select the adapter as File.
2. Select the radio button Sender.
3. Enter the source directory e.g. /temp
4.Enter File name e.g. xi_test.xml
5. Under Processing parameters Chose the processing mode as "Archive" from
drop down box.
6. Enter the path where you wnant to archive your file.
7. Do not forget to enter the poll intervells. e.g. 60 & Quailty of service "Exactly Once".
8. Enter file type "Binary" if your source file is XML.
9. Check if Adapter status as "Active".
Note: Archiving the file is regardless of erorr in file.
It will archive all the source file.
Regards,
Sarvesh
****Reward Points, if found helpfull. -
Hello,
There is a problem with the file adapter of the XI30 SP14:
It is set to get a file from a server X using a FTP protocol.
INT_001_V01_COM_CTDCLNT600_FILE_SENDER
Sender Adapter v2300 for Party '', Service 'CTDCLNT600':
Configured at 2006-01-16 15:13:52 EST
History:
- 2006-01-16 15:23:54 EST: Polling interval started. Length: 60.000 s
- 2006-01-16 15:23:54 EST: Processing finished successfully
- 2006-01-16 15:23:52 EST: Processing started
- 2006-01-16 15:22:54 EST: Polling interval started. Length: 60.000 s
- 2006-01-16 15:22:54 EST: Processing finished successfully
It seems everything is working fine, but the in the SXMB_MONI transaction, no message appears.
I have accessed the FTP manually and I have downloaded the file, so the connectivity issue is descarted.
Any suggestion.
Jesus Barba LobatonHello all,
The current configuration of the Sender file adapter is:
Transfer protocol: FTP
Message protocol: File Content Conversion
Adapter Engine: Integration Server
Source Directory: /out
File: D_P.DAT
In FTP: the file D_P.DAT is placed under /out directory
Server: Server Internal IP
Port: 21
Connection security: None
User: userX
Pass: FTPuserX
Quality of Service: Exactly once
Poll Intervals: 60
Processing mode: Delete
File Type: Binary
How can I verify a log of the processing process? as the SXMB_MONI transaction does not show anything.
The most frustrating of all, is no error message appears. I have verified the XI, APPS and default trace logs with log viewer but there is nothing.
I have also checked this thread but none of the solution provide solved the issue
Pbm in File adapter..Post Sp14
OS: Windows 2003
Any idea?
Jesus -
Receiver file adapter archiving
Is there any mechanisam to archive the files at receiver file adapter?
Hi Praveen,
Use file adapter to put the file into the archive directory and use the above mentioned OS commands in "Execute OS commands after message processing" section of Receiver file adapter.. so your file will be placed in archive folder and then copied to actual folder.
This process is followed so as to make sure that you have the receiver file archived.. suppose you have a receiver process which will read the output of PI and delete the file .. then just to make sure we have a copy in the archive location we are first putting the file in archive directory and then copying it to the correct location
Regards
Suraj -
File adapter - archiving files after successful processing & errors
Hi All
In sender file adapter, I understand that we can archive files after processing them.
After successful processing, we can archive the file, and if there are any errors, we can archive the file in a different folder (all files resulting in errors during processing are archived in a seperate folder).
Now, see this scenario.
My file is successfully picked up, processed and posted to receiving sap system thru proxy.
But, if there is any application specific error (ex: duplicate id), because of which this data cannot be processed in the receiving system, how can i move the file which is archived in successful messages folder to the folder where we archive error messages?
Is it possible?
This is required because, when there are these kind of errors with incorrect data, we want the corresponding file to be archived in the folder where erred files are archived.
Please let me know how we can achieve this.
Many Thanks
Chandrain file sender CC, thr is option to archive and error file store also..
1)under processing mode - archive.. give the path thr..
2) To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/658abd344a4de0e10000000a1553f7/frameset.htm -
File Adapter : Archive bad files
Hi Friends,
If we select the archive option while configuring the file adapter, following behaviour is seen.
1. Files that are successfully processed, get archived to provided folder
2. However, failed/bad files get deleted from source folder and do not get archived
Is it possible to configure the adapter so that only failed/bad files get archived?
Thanks,
SachinHi Sachin,
You can configure to handle the rejected messages in different way as given under (11.1.1.6 - check documentation for your version):
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/life_cycle.htm#BABBHJEA
To achieve archival of only bad files, remove Archive property from your File Adapter and configure only the rejection handler.
Regards,
Neeraj Sehgal -
Socket connection time Out - Sender File adapter (Intermittent Issue )
Dear FrIends,
In our sender file adapter i am getting the following issue:
I have already places timout : 120 secs.
This isssue is occuring intermittently.
Error occurred while connecting to the FTP server "100.142.131.30:21": java.net.ConnectException: Socket connection timed out: 100.142.131.30:21Hi Renu,
You need to increase the timeout Seconds and check.
Run the report RSFTP002.
and check whether the connection to FTP works. Provide the below parameters:
user = <your ftp user>
pwd = <your ftp pwd>
host= <your ftp host/ip>
command1 = <ls>
RFC Dest = SAPFTP
Compress = N
If the issue still exists, then check with your BASIS Team.
http://www.sap2048.com/socket-and-connection-issues-in-java-web-services-1351.htm
Thanks, -
File Adapter Archive File Name Pattern
Hi All,
Thanks in advance for your answers.
Here is my question.
I have BPEL process that reads a file, process it and archives it.
The process is working fine, but the archived file has timestamp attached to the file extension. since my file already has timestamp in its name, is there any way that we can configure file adapter not to add that timestamp to archived file?.
Thanks
PraveenThe timestamp added to the archive filename is the time that the file was processed by bpel. i think this is good information that you can keep just in case you need to resubmit the same file for processing later. or if the file is actually processed in a different date than than on your filename's. just a thought.
-
Hi,
I have a process that use a file adapter which polles a certain directory.
I am developing on windows XP and I am deploying to a Linux
I can't leave the path of this directory as it is since it will not be recognized in the linux server
How do I solve this issue?
AmitYou can specify the Logical Name of the directory from which you want to read the file from. In the BPEL partner link of the bpel.xml file, you then provide the physical parameter value for the Logical Name. This resolves the mapping between the logical directory name and actual physical directory name.
For example you can specify Logical Name as InputFileDir and in the bpel.xml specify the physical value against the partner link for that file adapter, as following :
<property name="InputFileDir">C:/ora_home/integration/bpm/samples/tutorials/
121.FileAdapter/ComplexStructure/InputDir/</property>
So while development, you can specify the physical directory as in your Windows system, and at deployment you can specify the directory as in your linux system.
Rahul -
Hi Iam trying to write a write a file in append mode using a file adapter(on a file which already exits)...but it says...file already exists...What might be the issue...?
Thanks in advance!
LarryHi Guys,
I shall explain the issue Iam having...Iam using the File Content Parameters..and the output is a plaint text file(Flat File).We are using Dynamic file configuration to populate the file name as per our requirements.When I dont use the dynamic config...(giving the name in the communication channel) the file is created @ the first time and its getting appended the next time..But when I use the Dynamic Configuration the file is not getting appended and it leaves an error saying the file is already there and cannot be overwritten...
Please advise!
Thanks in advance! -
File Adapter Polling issue(Is there critical value of File size )?
Hi
I use File adapter as the Activation to initialize a BPEL process instance .The source data is a kind of Delimited file format.On my PC, when the file size is less than 4M ,everything works fine ,But when the size increased. The BPEL process will not initialize the instance.When the source data is XML data , the "critical value " is about 12M. The error msg is below.
<2005-08-08 12:48:26,209> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Processing file : D:\Temp\WOSSystemIntegration\InBoundFiles\LOADPLAN_DATA_200508041708.xml
<2005-08-08 12:48:29,455> <INFO> <default.collaxa.cube.activation> <FileAdapter::Inbound> Sending message to Adapter Framework for posting to BPEL engine: { file=D:\Temp\WOSSystemIntegration\InBoundFiles\LOADPLAN_DATA_200508041708.xml
<2005-08-08 12:48:40,197> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
ogError> Error while invoking bean "cube delivery": Delivery callback message se
rialization failed.
An attempt to serialize the delivery callback messages for conversation "LocalGU
ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
e:10594606738:-7ffb" to binary format has failed. The exception reported is:
<2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
ogError> Error while invoking bean "delivery": Delivery callback message seriali
zation failed.
An attempt to serialize the delivery callback messages for conversation "LocalGU
ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
e:10594606738:-7ffb" to binary format has failed. The exception reported is:
<2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube.activation> <AdapterFram
ework::Inbound> [Read_ptt::Read(loadPlanCollection)] - JCA Activation Agent was
unable to perform delivery of inbound message to BPEL Process 'bpel://localhost/
default/P2E_WOS_LP~1.0/' due to: Delivery callback message serialization failed.
An attempt to serialize the delivery callback messages for conversation "LocalGU
ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
e:10594606738:-7ffb" to binary format has failed. The exception reported is:
<2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube.activation> <AdapterFram
ework::Inbound>
com.oracle.bpel.client.ServerException: Delivery callback message serialization
failed.
An attempt to serialize the delivery callback messages for conversation "LocalGU
ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
e:10594606738:-7ffb" to binary format has failed. The exception reported is:
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialPostAnyType(D
eliveryHandler.java:328)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialPost(Delivery
Handler.java:219)
at com.collaxa.cube.engine.delivery.DeliveryHandler.post(DeliveryHandler
.java:83)
at com.collaxa.cube.ejb.impl.DeliveryBean.post(DeliveryBean.java:181)
at IDeliveryBean_StatelessSessionBeanWrapper22.post(IDeliveryBean_Statel
essSessionBeanWrapper22.java:861)
at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.
java:161)
at oracle.tip.adapter.fw.AdapterFrameworkListenerBase$DeliveryServiceMon
itor.send(AdapterFrameworkListenerBase.java:2340)
at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.executeDeliverySer
viceSend(AdapterFrameworkListenerBase.java:478)
at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.deliveryServiceSen
d(AdapterFrameworkListenerBase.java:535)
at oracle.tip.adapter.fw.jca.AdapterFrameworkListenerImpl.performSingleA
ctivation(AdapterFrameworkListenerImpl.java:699)
at oracle.tip.adapter.fw.jca.AdapterFrameworkListenerImpl.onMessage(Adap
terFrameworkListenerImpl.java:567)
at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage
(MessageEndpointImpl.java:121)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWor
k.java:651)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork
.java:456)
at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWo
rk.java:200)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:139)
at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
at java.lang.Thread.run(Thread.java:534)
<2005-08-08 12:48:40,245> <INFO> <default.collaxa.cube.activation> <File Adapter
::Inbound> Failed to send message {D:\Temp\WOSSystemIntegration\InBoundFiles\LOA
DPLAN_DATA_200508041708.xml} to Adapter Framework.
<2005-08-08 12:48:40,245> <WARN> <default.collaxa.cube.activation> <AdapterFrame
work::Inbound> [Read_ptt::Read(loadPlanCollection)] - onReject: Sending invalid
inbound message to Exception Handler: file://D:/Temp/WOSSystemIntegration/Reject
edMessages
<2005-08-08 12:49:44,617> <FATAL> <default.collaxa.cube.activation> <AdapterFram
ework::Inbound> [Read_ptt::Read(loadPlanCollection)] - Resource Adapter requeste
d Process shutdown
<2005-08-08 12:49:48,676> <INFO> <default.collaxa.cube.activation> <AdapterFrame
work::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactiva
tion for portType=Read_ptt, operation=Read
<2005-08-08 12:49:48,676> <INFO> <default.collaxa.cube.activation> <File Adapter
::Inbound> Endpoint De-activation called in adapter for endpoint : D:\Temp\WOSSy
stemIntegration\InBoundFiles
<2005-08-08 12:49:49,042> <INFO> <default.collaxa.cube.activation> <AdapterFrame
work::Inbound> JCAActivationAgent::onStateChanged State is changed for process '
bpel://localhost/default/P2E_WOS_LP~1.0/', state=OFF
how can i solve this problem?can i predeploy some parameter? Is there some critical value of File size for the processing of File Adapter ?Hi,
There is no specific parameters to specify the maximum file size to be read in. It is just limited by the heap size of the JVM running the BPEL engine.
If you have enough RAM on your machine you can change the current heap size from 512Mbyte to 1Go by editing the startorabpel.bat file
and modifying the line :
set MEM_ARGS=-Xms512m -Xmx512m -Xmn300m -XX:MaxPermSize=80m
to
set MEM_ARGS=-Xms512m -Xmx1024m -Xmn300m -XX:MaxPermSize=80m
But only do it if you have at least 1.5 Gb of RAM on your machine, otherwise ot will keep spawing and you will have very bad performance.
Speaking about performance, do you really need to have a BPEL payload of 4 to 12 Mb ?
Will the BPEL process really need to access it ? if so, the best solution would be using batching techniques to cut you file in pieces and process it piece by peice.
FB. -
File Adapter Format Issue:.csv target
Hello
When i am trying to write information from DB to a file as a CSV format it is always writing into xml format, though it is named with .csv extension.
When you want to write the File as html target i need to do a html encoding but how to do it in another format like .csv?
Appreciate your help on thisyou can refer this..
http://docs.oracle.com/cd/B31017_01/integrate.1013/b28994/nfb.htm#CCGEGFDB
You need to create "JCA File Adapter with NXSD format definition" as mentioned in above link. -
File Adapter - Archived file name issue
Hello all.
I am using an 11g composite application to read from the file system and move/archive the files to a "Backup" subdirectory. Everything works well, but the archived file name has the original filename plus an extra long guid. E.g.
File_1.DAT_156dsfsdgw67rqwedb1c6b54d6fh7yerfa16wewet168erw)-dsfsdg
Does anyone know how I can control the archiving feature of the file read adapter? I would love for it to just move the file to the Backup folder and keep the original filename.
I look forward to a response.
Thank you.
Nick G.Thank you Sahil. I will look into it and test. I will post my results.
Nick G.
Maybe you are looking for
-
need help setting up second express as a range extender for my air play from 1st station which is up stairs and plugged into my home theater?????
-
so my ex step-daughter took my daughters ipad 4 and changed the passcode. she is NEVER giving me the new passcode. my daughters has pictures on there that are very important to her. pics of her late grandfather, etc. how can we get back into the ipa
-
Reader XI crashes on Macosx when opening shared document
I am unable to open any of our documents for shared review on my Mac. 100% of the time it results in a crash. I have tried uninstalling, reinstalling, removing Adobe prefs from the Library directories. The directory that holds the shared documents
-
I want to add new UI item in preexisting option dialog and Extension what i have to do ?? eg:if i select interactivity sub menu item in object menu than I select change to button and in this dialog I want add new menu with the add to object menu(at t
-
Hi , My namae is Arnesa Baxter I was purchased a Ipodtouch 4 this past chirstmas and was told that it came with ya'll message app that is supossed to be bulit in. But I don't have it and wanted to know is there any way that I can personally get this