WMQ FTE with variable substitution ${FileName} and multiple files going to single filename.

Technote (troubleshooting)


Problem(Abstract)

Using WebSphere MQ File Transfer Edition (WMQ FTE), when monitoring a directory and transferring multiple files from a source to a destination location and using ${Filename} variable substitution, you need to test the variable substitution results. It could cause unexpected combinations of file transfer commands to be invoked.

Symptom

Multiple files appear to transfer but only 1 file ends up at the destination. You may see errors in the file transfer log showing multiple files attempting to transfer to the same destination filename and failing transfers to the same filename.


Cause

When multiple files are being processed by a FTE directory monitor, the Task xml runs for every file the monitor finds in the directory being monitored, if the ${Filename} is only specified in the destination of the xml task file and not the source, the transfer will be invoked for each file multiple times (once for each filename combination).

For example:

<source disposition="delete" recursive="false">
<file>e:\temp</file>
</source>
<destination exist="overwrite" type="file">
<file>s:\outdir\${FileName}</file>
</destination>


Environment

Websphere MQ FTE Monitoring a directory and using variable substitution for multiple file transfers.
Similar to example in the Infocenter at: Monitoring a directory and using variable substitution

Diagnosing the problem

Check the transfer logs for errors transferring multiple files. Ensure that the source filenames and destination filenames are as expected. Review the definition of the FTE monitor and the results copied from the transfer log on the FTE coordinator server.

Resolving the problem

If using ${Filename} variable substitution in the source or destination and expecting a variation of the same filename to end up at the destination, be sure to specify ${Filename} in BOTH the source and destination of your task XML definition.

Example: This example takes and File from e:\temp\<filename> and transfers it to s:\outdir\<filename>.out
<source disposition="delete" recursive="false">
<file>e:\temp\${FileName}</file>
</source>
<destination exist="overwrite" type="file">
<file>s:\outdir\${FileName}.out</file>
</destination>

Historical Number

47300
180
000

Product Alias/Synonym

WMQFTE FTE WebSphere MQ File Transfer Edition

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere MQ
WMQ File Transfer Edition

Software version:

7.0.2, 7.0.3, 7.0.4

Operating system(s):

AIX, Linux, Solaris, Windows

Reference #:

1616191

Modified date:

2012-11-21

Translate my page

Machine Translation

Content navigation