Follow-On Topics

Related Topics

# Technical Summary

## Working with other Tools

The other tools that a File Management step interacts directly with, either by exposing information to it or consuming information from it, are listed below.

### Consuming from Other Tools

Icon | Tool Name | Tool Category
--- | --- | ---
| Import Flat File | Input
| Import XML Document | Input

### Objects Consumed

Objects that a File Management Step consumes that are exposed by other Steps are listed below.

|  | FileLocation — This object consumes the source files file name, stored in a new property called `FileName`, and the file location, stored in a new property called `Path`.

### Exposing to Other Tools

The File Management tool does not expose recordsets or variables that can be consumed directly by other tools.

### Objects Exposed

Objects that a File Management Step exposes that can be utilised by other Steps are listed below.

|  | FileProcessed — This object exposes the following:

|  | InputFileName — The name of the source file

|  | OutputFileName — The name of the output file, populated at Task runtime, which is dependant on the selections made in the Step dialog

|  | InputFilePath — The location of the source file

|  | OutputFilePath — The destination path of the output file, populated at Task runtime, which is dependant on the selections made in the Step dialog box

The values returned for the FileProcessed object are updated each time the Step processes a file. Therefore if a wildcard (`*`) is used to select multiple files for inclusion in the Step, the FileProcessed object is updated with information for the first file processed by the Step, then for the second file processed and so on for each available file.

This is particularly useful when utilising the memory feature within the Step as information for all processed files can be maintained in a Repository to preclude the inclusion of files that were previously processed.

## Error Handling

Errors that may occur are written to the King Task Centre event log for the upload and download options. They include:

|  | Connection to the remote server errors at runtime (including account permission errors)

|  | Read only errors or other file permissions errors

|  | If the folder that a file is moved to at run time is zipped an error is written

|  | If the combined total of the selected file(s) sizes for upload or download exceed the amount of remaining space available within the destination folder, an error is written

Copyright © 2018 Quadrant Software B.V. All rights reserved.