cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SFTP adapter firing in more than one node

former_member214137
Participant
0 Kudos

Hi,

Our sender comm channels using the SAP SFTP adapter are firing in more than one node.

For example we have one adapter that is set to run every sixty minutes. In comm channel monitoring I can see that in two of the four available nodes the adapter is firing at 10 minutes past the hour on one node and 20 minutes past the hour on other.

What could be causing this and what might be the solution? We are not yet applied the service pack for the SFTP adapter.

In the default java logs I see the following error being logged every minute. Could this be related?

I am not a java administrator.

Cannot access inbound channel configuration. Received exception: null
2013-05-22
12:33:15:951
com.sap.aii.adapter.sftp.ra.rar.jca.SPIManagedConnectionFactory
com.sap.aii.adapter.sftp.ra.rar.jca.SPIManagedConnectionFactory.run()
XI AF SFTP Adapter MCF 6e932db9-7b1c-11e2-a19f-0000014b7cbf
j2ee\cluster\server1\log\defaultTrace_01.trc
5b8b9da27b1c11e281020000014b7cbf
0
J2EE_GUEST
+1000
BC-XI-CON-B2B
sap.com/com.sap.aii.adapter.sftp.app
21724351000000718
5B8B9DA27B1C11E281020000014B7CBF
5b8b9da27b1c11e281020000014b7cbf
0
xxxxxxxxx
FPP
xxxxxx
server1
00010001156D61580002387500002AA0

thanks

Julian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I got the same error occuring multiple times per minute - did you ever get to its cause?

former_member214137
Participant
0 Kudos

Hi Florian,

I haven't been able to resolve this issue yet; and your response has been the first.

If you get a resolution before I do please post your solution here, as will I.

thanks

Julian

Former Member
0 Kudos

Installing SP01 of the SFTP-Adapter stopped the log file messages.

former_member214137
Participant
0 Kudos

Thanks for the update. Much appreciated.

marcelom_bovo
Participant
0 Kudos

Hello, 

I know this is a and old post, but I got into the same problem(multiple nodes getting the same file) and found the note 2424450 which address this issue

Symptom

In SFTP Adapter, the same file at the Sender channel is processed multiple times. This can be due to the following reasons.

1. The fact that the source file was not deleted after processing the first time due to some run time issues (like file locks, network faults, etc).

2. In cluster node environment where multiple server nodes try to process the same file simultaneously.

As a result, the same transaction gets executed twice, which is erroneous.

Solution

The solution involves a source code fix. At the start of processing, we validate if the file has already been processed (i.e file has been sent from the Sender Channel to the Module processor successfully). If the file has already been processed once, we skip the processing of the current file and move it to a secondary folder named "DuplicateMessageContent", which is located within the Source Directory mentioned in the Sender Channel Configuration.

To enable this new feature, the additional parameter "removeProcessedFiles" has to be set to "true".

Note: Ensure that necessary write permission is provided for the PI SFTP Adapter to create a new Directory named "DuplicateMessageContent" within the Source Directory. If sufficient permissions are not provided, it will result in a run time exception.