cancel
Showing results for 
Search instead for 
Did you mean: 

Issue during Decryption by SFTP sender channel

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

suchitatomar
Participant
0 Kudos

Hi Naresh,

Is your issue resolved, In case yes, then kindly close this thread so that can be helpful for others too.

suchitatomar
Participant
0 Kudos

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

0 Kudos

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:

Configuring the SFTP Sender Channel - SAP NetWeaver Process Integration, secure connectivity add-on ...

Is the used archiving parameter correct?

Best regards,

Bence

former_member186851
Active Contributor
0 Kudos

Hello Naresh,

In the processing TAB select different for archiving faulty files.

using this option error files will be archived in different archive folder.

Former Member
0 Kudos

Hello Sritharan,

As mentioned in my post, archive faulty option is already enabled with folder path.

But still the file is moving to Archive folder instead of Error folder.

former_member186851
Active Contributor
0 Kudos

Hello Naresh,

That parameter should work.

Can you re-configure and try.Also post the screenshots as Bence requested.