on 03-26-2009 10:48 AM
We are using PI 7.1 and we have the problem that the file adapter (ftp) picks up incomplete files from time to time. That causes a mapping error.
Have a look at sap note 821267 question 3.
https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267
Here you can find a solution. But in reality this parameter isn't there. And if you check the current documentation
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/655453b48a4ddfe10000000a1553f7/content.htm
you can't find this parameter too.
Has anybody of you the same effect? Does anybody of you know the reason? And the most important question is: What is the solution for this problem. The suggested work around in this note isn't possible for us.
Hi,
May be this thread can give you some idea to deal with your problem.. see my reply there
Sorry this will not help you here..
One solution which I think is.....
Put file in your source directory with diff name, and write an script which will rename it to its original name.
The logic for scrip should be something like this.
First of all when reading the file for the very first time then check the size and wait for 10 sec and then again check the size. If both size are same then scrip should rename the file to its original name.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Mar 26, 2009 4:35 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Sarvesh. This is a solution I was thinking about too. But I'm a little bit afraid that this is another source of errors. Perhaps I will try it anyhow.
But I'm still asking me why SAP has deleted this parameter.
BTW If I choose adapter type File / SAP BASE 6.40 (not 7.10) I get this parameter back.
Hi Gil,
there is an option "Process read only files". why not make use of this?
you can run a OS command to set the file as readonly before message processing.
Or if the file is created by any other application, it can set the file as read only... if you have a chance?
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in this case , u still can run the OS command to set the file as read only before message processing.
In case, the file is still being written, the command will fail. You can anyway specify the timeout.
If the commands fails and timeout occurs, the message will not be processed.
So, either u process complete message or wait for the next poll. (with the "Terminate program after timout" option)
Edited by: Raghu KB on Mar 26, 2009 9:07 PM
I doubt if that option is avaiable..
however you have two other options:
1. ask sending application to write in folder A and XI to read from folder B ...use a script to transfer files from A to B..this would be a hard disk pointer transfer hence no problem will come
2. ask sending app to write files with name say abc* and XI to read files with name xyz*...a script would rename the files
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.