Maybe a "stupid" answer

But 

You need perhaps to specify "/directorya/directoryb" without the slash.

I have checked where I am working with have around 10 ftp connections and all specifications without the slash.

1) $replace(pRequest.GetValueAt("MSH::MessageType.MessageType),"^","") instead of pRequest.GetValueAt("MSH::MessageType.MessageStructure",,tSC)

2) $e($zdt($h,8),1,8) instead of $tr($zdt($h,3),"-: ","")

SELECT TOP ALL FirstName||' '||LastName AS DisplayName, UserType, IsActive, RoleName, DOB FROM LISDB.ExternalUsers
Where FirstName||' '||LastName Like '%Praja%'