on 2016 Apr 05 8:03 AM
we have a requirement to process files below 500 MB and if there are any files above 500 MB then an error should be triggered and eventually the file should be archived.
Based on the above requirement, error is getting triggered but not able to archive the file using standard methods of archiving.
If we check maximum file size restriction and mention the size as 524288000 Bytes
and also check error when restricted option then,
whenever a file exceeds this limit the channel goes into error state.
Please provide a solution to archive such files from the directory as and when the channel goes into error state due to the large files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Everyone,
Thanks for the fast response.
We tried to resolve this requirement using Chunk Mode and running script before message processing- which would copy the files to archive folder and running a second script after message processing to delete the message from the source folder.
But this solution didnt seem quite reliable going forward(according to our architects)
Hence trying to explore Bypass PI runtime mode as explained in SFTP Adapter - Handling Large File.
Thank you
Mayuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mayuri,
Since adapter is getting in error better to request sender to limit the size of the file from their side. Other way round is to run a script from PI server at regular hours. The script checks the file size in source directory of server. Moves the eligible files to a new folder from where SFTP adapter will pick up the file. You can check this link for sample scripts Google Groups
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
11 | |
7 | |
7 | |
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.