on 09-02-2016 9:07 AM
Hello All,
I have a sender SFTP (SAP) channel with decryption parameters configured on the module tab of the channel.
When the source system places Encrypted file under IN folder sender SFTP channel is able to decrypt the file and processed it successfully. Post processing the file is moved from IN to ARCHIVE folder.
But when the source system places the Encrypted file with wrong key, SFTP channel is unable to decrypt the file and throwing error message as expected. But the file is being moved from IN to ARCHIVE folder due to which we are not coming to know that there is an issue happened.
Is there any way that channel can move the file to ERROR folder in such cases?
Note that Archive faulty file option is enabled and provided ERROR folder path in the channel
Please provide your inputs.
Regards,
Moorthy
Hi Naresh,
Is your issue resolved, In case yes, then kindly close this thread so that can be helpful for others too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naresh,
Once files have picked up by the channel and transferred to IE then it will be archived into success folder only bcoz error is in IE means Mapping not in adapter level
Possible Solution can be :-
Do multi mapping in PI add one more receiver as a file, we will have to write error validation logic in mapping.
In addition in second receiver do a simple mapping UDF to delete the file from the SUCCESS folder. otherwise your file will be archived in both the folder success and Error
see this code.
DynamicConfiguration conf = (DynamicConfiguration) para.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); DynamicConfigurationKey keyFileName1 = DynamicConfigurationKey .create("http://sap.com/xi/XI/System/File", "FileName"); inputFileName = conf.get(keyFileName1); *File f1 = new File("/usr/sap/XX/"+keyFileName1);* *boolean success = f1.delete();* *if (!success){* *System.out.println("Deletion failed.");* *System.exit(0);* *}else{* *System.out.println("File deleted.");* *}* *}*
If you would like to view that files that got failed, then select the option Add Timestamp for the archive folder, so that when the message fails then you can get the file using the Timestamp.
let me know if you still have any issues.
Regards
Suchita Tomar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Naresh,
Could you send a screenshot of the sender SFTP channel's processing tab?
Please recheck the configuration as per the following help page:
Is the used archiving parameter correct?
Best regards,
Bence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Naresh,
In the processing TAB select different for archiving faulty files.
using this option error files will be archived in different archive folder.
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.