Get Activity of TIBCO ActiveMatrix BusinessWorks™ Plug-in for sFTP (SFTP) throws the error, "Error in GET or MGET command".
book
Article ID: KB0093093
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for sFTP
-
Not Applicable
-
Description
Description: When a user does not have read permission on the file/Directory on an FTP server, then the "get activity" exception, "Error in GET or MGET command" is thrown. Even though the user may have enough permission on the file/directory on the FTP server, having multiple TIBCO ActiveMatrix BusinessWorks™(BW) processes which are starting at the same time (by the timer activity ) and pointing to same remote directory, an error will be reported in the "get activity". See the Error Tab for details Symptoms: When you start TIBCO ActiveMatrix BusinessWorks™(BW) applications having multiple processes with the "get activity" pointing to the same remote directory, the following error will be thrown:
Error in [Processes/NBATicketRawData/GetTicketRawData.process/SFTP Get]Error in GET or MGET command. See Error Tab for details at com.tibco.plugin.sp.SFTPClient.getToLocalFile(SFTPClient.java:916) at com.tibco.plugin.sp.SFTPTransport.sftpGetFileAsFile(SFTPTransport.java:381) at com.tibco.plugin.sp.SFTPGetActivity.processSFTPCommand(SFTPGetActivity.java:189) at com.tibco.plugin.sp.SFTPActivityCommon.eval(SFTPActivityCommon.java:172) at com.tibco.pe.plugin.Activity.eval(Unknown Source) at com.tibco.pe.core.TaskImpl.eval(Unknown Source) at com.tibco.pe.core.Job.a(Unknown Source) at com.tibco.pe.core.Job.k(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source) Job-3006 [Processes/NBATicketRawData/GetTicketRawData.process/Log-1]: BW-SFTP-100005
Cause: When you have Multiple processes with the "get activity" pointing to the same remote directory and all of them are using the same shared connection object so that when the user starts the application "get activity" from multiple processes, it will try to do the SFTP from the same location with the same connection simultaneously. It will fail with the error, 'Error in GET or MGET command. See Error Tab for details'.
Issue/Introduction
Get Activity of TIBCO ActiveMatrix BusinessWorks™ Plug-in for sFTP (SFTP) throws the error, "Error in GET or MGET command".
Resolution
Make sure that the user has sufficient privileges on the file/directory configured with the "get activity" and confirm that Multiple process with "get activity" pointing to the same remote directory using the same shared connection are not tying to access the file simultaneously. If there are multiple processes with "get activity" using the same connection and accessing the same directory, then the user can confirm there is enough delay between the two processes.