Earlier today I hit
the following errors (found in the event log) when trying out a newly deployed
FTP send port:
The adapter failed to transmit message going to send
port "DCSendLimaPurchaseOrder_FTP" with URL "ftp://<servername>:21/uat/GO_PO_XML/inbound/pending/File_To_Lima_%datetime_bts2000%.xml". It will be retransmitted after the retry
interval specified for this Send Port. Details:"DNS Lookup for the server
"ftp://<servername>:21" failed with the following error message: No
such host is known
Please check
the configuration. ".
And
The adapter failed to transmit message going to send
port "DCSendLimaPurchaseOrder_FTP" with URL
"<servername>:21/uat/GO_PO_XML/inbound/pending/File_To_Lima_%datetime_bts2000%.xml".
It will be retransmitted after the retry interval specified for this Send Port.
Details:"Invalid URI: The URI scheme is not valid.".
The FTP Adapter is
very particular about the format of its <uri> and <serverAddress> elements. After much head scratching today I
finally came up with the set of values for the btdfproj file that would work:
PortBindingsMaster.xml
<PrimaryTransport>
<Address>ftp://${LimaHost}:21/${LimaSendPath}/${LimaSendFilename}</Address>
<TransportType
Name="FTP" Capabilities="80907"
ConfigurationClsid="3979ffed-0067-4cc6-9f5a-859a5db6e9bb" />
<TransportTypeData>
<CustomProps>
<AdapterConfig
vt="8">
<Config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<uri>ftp://${LimaHost}:21/${LimaSendPath}/${LimaSendFilename}</uri>
<serverAddress>${LimaHost}</serverAddress>
<serverPort>21</serverPort>
<userName>${LimaUserName}</userName>
<password>${LimaPassword}</password>
<accountName
/>
<targetFolder>${LimaSendPath}</targetFolder>
<targetFileName>${LimaSendFilename}</targetFileName>
<representationType>binary</representationType>
<allocateStorage>False</allocateStorage>
<appendIfExists>False</appendIfExists>
<connectionLimit>0</connectionLimit>
<passiveMode>True</passiveMode>
<firewallType>NoFirewall</firewallType>
<firewallAddress
/>
<firewallPort>21</firewallPort>
<useSsl>False</useSsl>
<useDataProtection>True</useDataProtection>
<ftpsConnMode>Explicit</ftpsConnMode>
</Config>
</AdapterConfig>
SettingFileGenerator.xml
LimaHost
|
<servername>
|
LimaSendPath
|
uat/GO_PO_XML/inbound/pending
|
LimaPassword
|
XXX
|
LimaUserName
|
username
|
Print | posted on Wednesday, June 24, 2015 1:20 PM