on 09-21-2016 2:07 PM
GM All,
I have an issue...Customer running a program from their end and placing a file in particular directory, and PI pickup the file and process it, but we faced a issue..the file is not yet completely downloaded but before that pi grabbed the partial file and sent the partial file to another location. Customer don't want to change anything at their end, so is there anyway we can restrict PI to pickup the file until its completely downloaded...
thought of scheduling, but in this case it will not work as customer is not having standard time to run the program.
Thanks,
Vijay
Hi Vijay,
Are you using NFS or FTP to pick up the file.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
If this option is not available for the settings you would like to use, the following algorithm (to be implemented in your application) may be used to ensure that the File Adapter only processes completely written files:
- Create the file using an extension, which does not get processed by the File Adapter, e.g., ".tmp"
- Write the file content
- Rename the file to its final name, so the File Adapter will notice its existence and pick it up
Regards,
Praveen.
thank you all, I already passed these ideas like
1. creating temporary file name and renaming it
2. placing the file in temporary directory and once complete, move it to the original directory where PI looking for
But for both the suggestions, they said they are not going to make any change as it is a standard program which has been shared with many other vendors it seems...so they can't make any change
Is something can be done at the abap end...so i take help from abapers...
Thanks,
Vijay
Hello Vijay,
For this type of situation you can use the parameter MSecs to Wait Before Modification Check. Please check the below documentation
Configure Sender File Adapter
https://help.sap.com/saphelp_nw73/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/frameset.htm
You can also check section 3 of the SAP Note 821267 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 File Adapter.
Regards
Eoin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vijay,
Get the time frame in msecs like how much time the file will be ready to be picked.
Based on that configure msecs wait before modification, This will wait for the time maintained then the file will be picked. But there are some restrictions, refer the below links
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.