UDMG File Transfer


Disclaimer

Your use of this download is governed by Stonebranch Integration Hub - Terms of Use.

Overview

UDMG (Universal Data Mover Gateway) is a business-to-business MFT (Managed File Transfer) Solution. It provides the capabilities to securely manage File transfers with external business partners (i.e. Customers or Suppliers) and between any endpoint in today’s Hybrid-IT infrastructure, on-premises, or in the cloud (public and or private).

This Universal Extension provides the capability to perform file transfer where UDMG is the client and upload or download files to remote partners.

Version Information

Template Name

Extension Name

Version

Status

UDMG File Transferue-mft-transfer1 (Current 1.4.0)

Fixes and new Features are introduced.

Refer to the changelog for version history information.

Key Features

FeatureDescription
Actions
  • GET: trigger a File Transfer on UDMG to download a file from a remote partner.
  • PUT: trigger a File Transfer on UDMG to upload a file to a remote partner.
  • MGET: trigger a Wildcard File Transfer on UDMG to download several files from a remote partner.
  • MPUT: trigger a Wildcard File Transfer on UDMG to upload several files to a remote partner. 
  • LIST: trigger a Wildcard List File Transfer on UDMG to list the files matching a wildcard pattern on a remote SFTP partner. 
File Transfer Control
  • Capability to pause a partial transfer.
  • Capability to resume a paused transfer.
  • Capability to cancel a transfer (from planned, running, paused, or error status).
  • Capability to retry a failed transfer.
  • Synchronous mode: the task monitors the UDMG transfer and terminates when the transfer is completed (either with success or error).
  • Asynchronous mode: the task registers the UDMG transfer and terminates when the transfer request is acknowledged on UDMG.

Input/Output

  • Capability for the UAC task author, to retrieve the list of partners from UDMG for a given protocol.
  • Capability for the UAC task author, to retrieve the list of transfer rules from UDMG for a given partner.
  • Monitor the transfer with periodic polling from UDMG and display to output-only fields and extension output.
Other
  • Support for SFTP, HTTPS, PeSIT, and PeSIT-TLS file transfer protocols.

Software Requirements

This integration requires a Universal Agent and a Python runtime to execute the Universal Task.

AreaDetails
Universal Agent & Python versionRequires Python version 3.7. Only Agents of version >= 7.3 are supported.
Universal ControllerUniversal Controller Version >= 7.3.0.0.
UDMG ServerUDMG Server 1.2.1.0 or higher.
Network and ConnectivityUniversal Agent requires connectivity towards the UDMG Server REST API.

Configuration Examples

Scenario A

Example for sending a file to a HTTPS server.

Scenario A

The partner configuration on UDMG.

Scenario B

Example of downloading a file from an SFTP server.

Scenario B

The partner configuration on UDMG.

Scenario C

Example of downloading multiple files from an SFTP server.

Scenario D

Example of listing files from an SFTP server.

Action Output

Output Type

Description Examples

EXTENSION

  • “exit_code“, “status“, “status_description“: General info regarding the task execution. In case of failure, it's set according to the specific error that happened during the execution. A list of possible values is provided in the exit codes table in this document.

  • “invocation” > “fields”: The task configuration used for this task execution.

  • “result: For a comprehensive overview of the results, please refer to the table below.

Example of a Single download from SFTP
{
    "exit_code": 0,
    "status_description": "Task executed successfully",
    "invocation": {
        "fields": {
            "credentials_user": "admin",
            "credentials_password": "****",
            "action": "GET",
            "protocol": "sftp",
            "mft_server": "http://udmg.somehost.com:8080/api",
            "file": "readme.txt",
            "output": null,
            "partner": "rebex",
            "rule": "rebex_receive_example",
            "use_dynamic_partner_account": false,
            "partner_account_dynamic": null,
            "user": "demo",
            "wait_for_completion": true,
            "transfer_date": null,
            "polling_interval": 5,
            "max_file_to_monitor": 100,
            "ue_task_uuid": "16835525405027449004GAT04TVODUWH"
        }
    },
    "result": {
        "mft_transfer": {
            "transfer_id": "478",
            "start": "2023-05-11 10:04:36.433385+00:00",
            "stop": "2023-05-11 10:04:40.908049+00:00",
            "status": "DONE",
            "step": "StepNone",
            "transfer_progress": "405  Bytes",
            "task_number": null,
            "error_code": "TeOk",
            "error_msg": null,
            "local_file": "/data/in/readme.txt",
            "remote_file": "/pub/example/readme.txt",
            "transfer_uuid": "1656601189657083904",
            "transfer_info": {
                "udmg_file_computed_extension": ".txt",
                "udmg_file_computed_mimetype": "text/plain; charset=utf-8",
                "udmg_sftp_client_version": "SSH-2.0-Go",
                "udmg_sftp_config_ciphers": [
                    "aes128-gcm@openssh.com",
                    "chacha20-poly1305@openssh.com",
                    "aes128-ctr",
                    "aes192-ctr",
                    "aes256-ctr"
                ],
                "udmg_sftp_config_kex": [
                    "curve25519-sha256@libssh.org",
                    "ecdh-sha2-nistp256",
                    "ecdh-sha2-nistp384",
                    "ecdh-sha2-nistp521",
                    "diffie-hellman-group-exchange-sha256",
                    "diffie-hellman-group1-sha1",
                    "diffie-hellman-group14-sha1"
                ],
                "udmg_sftp_config_mac": [
                    "hmac-sha2-256-etm@openssh.com",
                    "hmac-sha2-256",
                    "hmac-sha1",
                    "hmac-sha1-96"
                ],
                "udmg_sftp_failed_auth_methods": [
                    "none"
                ],
                "udmg_sftp_hostkey_algo": "ssh-rsa",
                "udmg_sftp_kex_algo": "curve25519-sha256@libssh.org",
                "udmg_sftp_read_algos": {
                    "cipher": "aes128-gcm@openssh.com",
                    "compression": "none",
                    "mac": ""
                },
                "udmg_sftp_server_version": "SSH-2.0-RebexSSH_5.0.8466.0",
                "udmg_sftp_sucessful_auth_methods": "password",
                "udmg_sftp_write_algos": {
                    "cipher": "aes128-gcm@openssh.com",
                    "compression": "none",
                    "mac": ""
                },
                "udmg_ue_task_uuid": "16835525405027449004GAT04TVODUWH",
                "udmg_xfer_log": "/config/logs/478.log"
            }
        },
        "mft_transfer_files_summary": {
            "done": 1,
            "error": 0,
            "cancelled": 0
        },
        "errors": []
    }
}
Example of a Wildcard download from SFTP with 3 matching files
{
    "exit_code": 0,
    "status_description": "Task executed successfully",
    "invocation": {
        "fields": {
            "credentials_user": "admin",
            "credentials_password": "****",
            "action": "MGET",
            "protocol": "sftp",
            "mft_server": "http://udmg.somehost.com:8080/api",
            "file": "m*.png",
            "output": null,
            "partner": "rebex",
            "rule": "rebex_receive_example",
            "use_dynamic_partner_account": false,
            "partner_account_dynamic": null,
            "user": "demo",
            "wait_for_completion": true,
            "transfer_date": null,
            "polling_interval": 5,
            "max_file_to_monitor": 100,
            "ue_task_uuid": "168355254050277290080KCA7YT971DJ"
        }
    },
    "result": {
        "mft_transfer": {
            "transfer_id": "479",
            "start": "2023-05-11 10:44:30.493303+00:00",
            "stop": "2023-05-11 10:44:31.144255+00:00",
            "status": "DONE",
            "step": "StepNone",
            "transfer_progress": "3 out of 3 files",
            "task_number": null,
            "error_code": "TeOk",
            "error_msg": null,
            "local_file": "/data/in/m*.png",
            "remote_file": "/pub/example/m*.png",
            "transfer_uuid": "1656611231072518144",
            "transfer_info": {
                "udmg_sftp_client_version": "SSH-2.0-Go",
                "udmg_sftp_config_ciphers": [
                    "aes128-gcm@openssh.com",
                    "chacha20-poly1305@openssh.com",
                    "aes128-ctr",
                    "aes192-ctr",
                    "aes256-ctr"
                ],
                "udmg_sftp_config_kex": [
                    "curve25519-sha256@libssh.org",
                    "ecdh-sha2-nistp256",
                    "ecdh-sha2-nistp384",
                    "ecdh-sha2-nistp521",
                    "diffie-hellman-group-exchange-sha256",
                    "diffie-hellman-group1-sha1",
                    "diffie-hellman-group14-sha1"
                ],
                "udmg_sftp_config_mac": [
                    "hmac-sha2-256-etm@openssh.com",
                    "hmac-sha2-256",
                    "hmac-sha1",
                    "hmac-sha1-96"
                ],
                "udmg_sftp_failed_auth_methods": [
                    "none"
                ],
                "udmg_sftp_hostkey_algo": "ssh-rsa",
                "udmg_sftp_kex_algo": "curve25519-sha256@libssh.org",
                "udmg_sftp_read_algos": {
                    "cipher": "aes128-gcm@openssh.com",
                    "compression": "none",
                    "mac": ""
                },
                "udmg_sftp_server_version": "SSH-2.0-RebexSSH_5.0.8466.0",
                "udmg_sftp_sucessful_auth_methods": "password",
                "udmg_sftp_write_algos": {
                    "cipher": "aes128-gcm@openssh.com",
                    "compression": "none",
                    "mac": ""
                },
                "udmg_ue_task_uuid": "168355254050277290080KCA7YT971DJ",
                "udmg_xfer_childIDs": [
                    480,
                    481,
                    482
                ],
                "udmg_xfer_files": [
                    "mail-editor.png",
                    "mail-send-winforms.png",
                    "mime-explorer.png"
                ],
                "udmg_xfer_log": "/config/logs/479.log",
                "udmg_xfer_wildcard": true
            }
        },
        "mft_transfer_files_summary": {
            "done": 3,
            "error": 0,
            "cancelled": 0
        },
        "errors": []
    }
}
Example of a wildcard list from SFTP with 2 matching files
{
    "exit_code": 0,
    "status": "SUCCESS",    
    "status_description": "SUCCESS",
    "invocation": {
        "fields": { ... }
    },
    "result": {
        "mft_transfer": {
            "transfer_id": "145",
            "start": "2023-05-26T12:36:36.405685+00:00",
            "stop": "2023-05-26T12:36:37.022167",
            "status": "DONE",
            "step": "StepNone",
            "progress": 2,
            "task_number": null,
            "error_code": "TeOk",
            "error_msg": null,
            "local_file": "/home/udmg/udmg-server/in/wince*.png",
            "remote_file": "/pub/example/wince*.png",
            "transfer_uuid": "1662075259576123392",
            "transfer_info": {
                "udmg_sftp_hostkey_algo": "ssh-rsa",
                "udmg_sftp_kex_algo": "curve25519-sha256@libssh.org",
                "udmg_sftp_read_algos": {
                    "cipher": "aes128-gcm@openssh.com",
                    "compression": "none",
                    "mac": ""
                },
                "udmg_sftp_server_version": "SSH-2.0-RebexSSH_5.0.8466.0",
                "udmg_sftp_sucessful_auth_methods": "password",
                "udmg_sftp_write_algos": {
                    "cipher": "aes128-gcm@openssh.com",
                    "compression": "none",
                    "mac": ""
                },
                "udmg_xfer_files": [
					"winceclient.png",
					"winceclientSmall.png"
                ],                
                "udmg_xfer_log": "/home/mft-user/waarp/log/145.log",
                "udmg_xfer_wildcard": true,
                "udmg_xfer_cmd": "list",
                "udmg_ue_task_uuid": "8a801e6d164c4648a32f94dbcd1bb19a"
            }
        }
    }
}

The Extension output contains the attribute result which contains the following sub-attributes:

AttributeTypeDescriptionVersion Information
mft_transferobjectThe details of the main transfer record (the single transfer or the parent transfer in case of Wildcard Transfer).Introduced in 1.0.0
mft_transfer.transfer_idstringThe identifier of the transfer on UDMG.Introduced in 1.0.0
mft_transfer.statusstringThe current status of the transfer
One of PLANNED, RUNNING, PAUSED, INTERRUPTED, DONE, CANCELED or ERROR.
Introduced in 1.0.0
mft_transfer.startstringThe date and time the transfer has started (UDMG Server time)Introduced in 1.0.0
mft_transfer.stopstring

The date and time the transfer has ended (UDMG Server time).

For a wildcard transfer, this is when the listing of matching files and the registration of the child transfers is completed.

Introduced in 1.0.0
mft_transfer.stepstringThe current processing step of the transfer
One of NONE, PRE TASKS, DATA, POST TASKS, ERROR TASKS or FINALIZATION.
Introduced in 1.0.0
mft_transfer.transfer_progresstextThe progress of the data transfer in human-readable format
  • size in KB, MB, or GB for a Single Transfer,
  • "x out of y files" for a Wildcard Transfer.
Introduced in 1.0.0
mft_transfer.error_codestringThe error code of the transfer (if an error occurred).Introduced in 1.0.0
mft_transfer.error_msgstringThe error message (if an error occurred).Introduced in 1.0.0
mft_transfer.task_numberstringThe task number in the processing step.
Only for the steps 'PRE TASKS', 'POST TASKS', and 'ERROR TASKS'.
Introduced in 1.0.0
mft_transfer.local_filestringLocal file path.Introduced in 1.0.0
mft_transfer.remote_filestringRemote file path.Introduced in 1.0.0

mft_transfer.transfer_uuid

stringThe UUID of the transfer on UDMG.Introduced in 1.1.0

mft_transfer.transfer_info

object

The transfer information fields. 

Set of metadata associated with the transfer on the UDMG Server.

Fields with the udmg_ prefix are set internally by the UDMG server.

Fields with the udmg_ue prefix are set by the UDMG File Transfer task.

Introduced in 1.1.0

mft_transfer.transfer_info.udmg_ue_task_uuid

stringThe UUID of the UDMG File Transfer task.
It can be used to easily correlate the UC task executions and the corresponding UDMG file transfers.
Introduced in 1.2.0

mft_transfer.transfer_info.udmg_xfer_wildcard

boolean

Indicator that this is a wildcard transfer.

Only for MPUT and MGET.

Introduced in 1.2.0

mft_transfer.transfer_info.udmg_xfer_cmd

string

'list' is an indicator that this is a wildcard list command.

Only for LIST.

Introduced in 1.3.0

mft_transfer.transfer_info.udmg_xfer_childIDs

array

A list of UDMG transfer IDs that are created in the context of this file file transfer. For each file matching the filename input, one file transfer process is created in UDMG.

Only for MPUT and MGET.

Introduced in 1.2.0

mft_transfer.transfer_info.udmg_xfer_files

array

The list of files that matched the user input. Each of these files is transferred with a separate file transfer execution, which transfer IDs can be found in “udmg_xfer_childIDs“ list.

Only for MPUT and MGET.

Introduced in 1.2.0

mft_transfer_files_summary

objectSummary countersIntroduced in 1.2.0
mft_transfer_files_summary.donenumberNumber of file transfers with success.Introduced in 1.0.0
mft_transfer_files_summary.errornumberThe number of file transfers in error state.Introduced in 1.0.0
mft_transfer_files_summary.cancellednumberThe number of file transfers that are canceled.Introduced in 1.0.0

errors

arrayList of errors for the child transfers.Introduced in 1.2.0

Input Fields

FieldTypeMandatoryDescriptionVersion Information
ActionChoiceYesAction performed upon the task execution.
Available actions:
  • GET
  • PUT (Default)
  • MGET
  • MPUT
  • LIST
Introduced in 1.0.0
ProtocolChoiceYes

The transfer protocol.
Available values:

  • SFTP (Default)
  • HTTP
  • HTTPS
  • PeSIT
  • PeSIT-TLS

Note

The protocol serves as a filter for the Partner list. The actual protocol for the file transfer is the one that is configured on UDMG for the selected Partner

Introduced in 1.0.0
MFT ServerTextYesUDMG Server URL. This is the URL for the REST API endpoint, the port is configured in the UDMG Server configuration file.
For example: http://udmg.company.com:8080/api
Introduced in 1.0.0
MFT CredentialsCredentialsYesUDMG Server Credentials. The Credentials definition should be as follows.
  • User Name as "Runtime User".
  • User Password as "Runtime Password".
The user must have read permissions for rules and partners, read/write permission for transfers
Introduced in 1.0.0
Source FileTextYesThe name of the source file, or the search pattern:
  • PUT: local file
  • GET: remote file
  • MPUT: wildcard pattern for local files
  • MGET: wildcard pattern for remote files
  • LIST: wildcard pattern for remote files
Introduced in 1.0.0

Target File

TextNoThe name of the file on the target system after the transfer,
  • PUT: remote file
  • GET: local file
  • MPUT/MGET/LIST: not used, the field is not displayed.
Introduced in 1.1.0
PartnerDynamic ChoiceYesDynamically fetched list of partner names.
The list is restricted to the partners that support the selected Protocol. The user can select the required partner name from a drop-down list.
Introduced in 1.0.0
RuleDynamic ChoiceYesDynamically fetched list of transfer rules.
The list is restricted to the rules that are assigned to the selected Partner. The user can select the required rule from a drop-down list.
Introduced in 1.0.0

Dynamic Retrieval of Partner Account Options

BooleanNo

If enabled, the partner account field will be replaced by a dynamic choice field variant.

The default value is false.

Introduced in 1.4.0
Partner AccountTextYes

The name of the account to use for the connection to the selected Partner.
The account credentials are configured on UDMG.

The field is visible when Dynamic Retrieval of Partner Account Options is false.

Introduced in 1.0.0

Partner Account

Dynamic ChoiceYes

The name of the account to use for the connection to the selected Partner.
The account credentials are configured on UDMG.

The field is visible when Dynamic Retrieval of Partner Account Options is true.

Introduced in 1.4.0

Wait for Transfer Completion

BooleanYes

By checking this field, the extension monitors the completion of the transfer on UDMG before completing its execution.

  • Actions PUT/GET: Wait for the single transfer to be completed.

  • Actions MPUT/MGET/LIST: Wait for the child file transfers to be completed or not. The extension will always wait for the parent process to be completed successfully, regardless of this configuration attribute.

The default value is true.

Introduced in 1.2.0

Polling Interval

IntegerNo

The amount of time (in seconds) the task will wait before polling to check the transfer status.

Valid values start from 1.

The default value is 5.

Introduced in 1.0.0

Max Files to Monitor

IntegerYes

The number of files, above which no monitor will be done, apart from the successful trigger of the file transfer.

In practice, this means that for the actions MGET & MPUT, if a wildcard transfer results in more child transfers than the number indicated, the extension will not check the transfer status of these files, and proceed to completion with a special return code (see corresponding section in this document).

The default value is 100.

Introduced in 1.2.0

Dynamic Commands

Command NameAllowed Task Instance StatusDescription
PauseRUNNING

Issue the pause command on the UDMG transfer.

For a wildcard transfer (MPUT or MGET), the pause command is issued for all child transfers on UDMG. Only the eligible children in status PLANNED or RUNNING, are considered. Failure on one transfer does not block the execution of the other transfers.

ResumeRUNNING

Issue the resume command on the UDMG transfer.

For a wildcard transfer (MPUT or MGET), the resume command is issued for all child transfers on UDMG. Only the eligible children in status INTERRUPTED or PAUSED, are considered. Failure on one transfer does not block the execution of the other transfers.

Cancelation

When the task instance is canceled on the Controller, a cancel command is issued on the UDMG transfer to attempt a graceful termination.

  • If the transfer has no children (PUT, GET, LIST action):

    • Fetch the UDMG transfer status and update the output-only fields.

    • Proceed to cancel the UDMG transfer only when its status is one of PLANNED, RUNNING, INTERRUPTED, PAUSED, or ERROR.

    • Update output only fields when the operation is completed.

  • If the transfer has children (MPUT, MGET action): cancel the execution of all of the eligible child transfers on UDMG ( in status PLANNED, RUNNING, INTERRUPTED, PAUSED, ERROR). Failure on one transfer does not block the execution of the other transfers.

Re-Run

When the task instance is re-run on the Controller, a resume command is issued on the UDMG transfer for the file transfers in status ERROR.

  • If the transfer has no children (PUT, GET, LIST action):

    • Fetch the UDMG transfer status and update the output-only fields.

    • Proceed to resume the UDMG transfer only when its status is ERROR, otherwise

    • Continue the monitoring until the UDMG transfer is completed.

  • If the transfer has children (MPUT, MGET action): resume the execution of all of the eligible child transfers on UDMG (in status  ERROR). Failure on one transfer does not block the execution of the other transfers.

Task Output

Output Only Fields

FieldTypeDescriptionVersion Information
Transfer IDTextThe identifier of the transfer on UDMG.Introduced in 1.0.0
Transfer StatusText

The current status of the transfer.
One of PLANNED, RUNNING, PAUSED, INTERRUPTED, DONE, CANCELLED or ERROR.

Used for Task instance Extension Status.

Introduced in 1.0.0
Transfer Start TimeTextThe date and time the transfer has started (UDMG Server time).Introduced in 1.0.0
Transfer End TimeText

The date and time the transfer has ended (UDMG Server time).

For a wildcard transfer, this is when the listing of matching files and the registration of the child transfers is completed.

Introduced in 1.0.0
Transfer StepTextThe current processing step of the transfer.
One of NONE, PRE TASKS, DATA, POST TASKS, ERROR TASKS or FINALIZATION.
Introduced in 1.0.0

Transfer Progress

TextThe progress of the data transfer in human-readable format.
  • size in KB, MB, or GB for a Single Transfer.
  • "x out of y files" for a Wildcard Transfer.

Introduced in 1.0.0

Modified in 1.2.0

Error CodeText

The UDMG transfer error code.

See the table below.

Introduced in 1.0.0
Error MessageTextThe error message (if an error occurred).Introduced in 1.0.0
Transfer Task NumberTextThe task number in the processing step.
Only for the Transfer Steps 'PRE TASKS', 'POST TASKS', and 'ERROR TASKS'.
Introduced in 1.0.0
Local FileTextLocal file path.Introduced in 1.0.0
Remote FileTextRemote file path.Introduced in 1.0.0

Transfer UUID

TextThe UUID of the transfer on UDMG.Introduced in 1.1.0

These fields are also available as task instance variables, with the ops_mft_ prefix:

UDMG Transfer Error Code

Error CodeDescription
TeOkThis is the code used by default. It indicates that there is no error
TeUnknownIndicates an unknown error (the details of the error can give more information).
TeInternal

Indicates that an internal error occurred in the UDMG Server (lost connection to the database, etc.)

TeUnimplementedIndicates that the partner wanted to use a valid functionality, but which is not implemented by the UDMG Server.
TeConnectionIndicates that the connection to a remote partner cannot be established. This is the most general error code. A more specific code, if available, should be used.
TeConnectionResetCorresponds to "connection reset by peer".
TeUnknownRemoteIndicates that the requested remote partner is not known in the UDMG Server database. For security reasons, the external use of this error code (returning this error to a client) is discouraged for incoming connections in favor of TeBadAuthentication, at the risk of leaking information (here, the account exists, but authentication failed).
TeExceededLimitIndicates that the transfer cannot be processed because the defined limits have been reached (number of connections, number of transfers, etc.)
TeBadAuthenticationIndicates a connection error caused by incorrect authentication data (user, password, certificate, etc. Details of the error can provide more information).
TeDataTransferIndicates that an error occurred during data transfer. This is a general error and a more specific code, if available, should be used.
TeIntegrityIndicates that the integrity check has failed.
TeFinalizationIndicates that an error occurred during the finalization of the transfer.
TeExternalOperationIndicates that an error occurred during the execution of pre-transfer, post-transfer, or error processing.
TeStoppedIndicates that the transfer was stopped.
TeCancelledIndicates that the transfer was canceled.
TeFileNotFoundIndicates that the requested file was not found.
TeForbiddenIndicates that the remote partner is not allowed to perform an action.
TeBadSizeIndicates an error related to the size of the file (it exceeds a quota, there is not enough space left on the destination disk, etc.)
TeShuttingDownIndicates that the UDMG Server is shutting down

Exit Codes

The exit codes for this Universal Extension are described below.

Exit CodeStatus Classification CodeStatus Classification DescriptionStatus Description
0SUCCESSSuccessful ExecutionSUCCESS
1FAILFailed ExecutionFAIL: < Error Description >
2AUTHENTICATION_ERRORBad CredentialsAUTHENTICATION_ERROR: Account cannot be authenticated.
3AUTHORIZATION_ERRORInsufficient PermissionsAUTHORIZATION_ERROR: Account is not authorized to perform the requested action.
10CONNECTION_ERRORBad connection data or connection timed outCONNECTION_ERROR: < Error Description >
11CONNECTION_ERRORExtension-specific connection errorCONNECTION_ERROR: 404 page not found
20DATA_VALIDATION_ERRORInput fields Validation ErrorDATA_VALIDATION_ERROR: 400 bad request:
21TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeUnknown
22TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeInternal
23TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeUnimplemented
24TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeConnection
25TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeConnectionReset
26TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeUnknownRemote
27TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeExceededLimit
28TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeBadAuthentication
29TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeDataTransfer
30TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeIntegrity
31TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeFinalization
32TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeExternalOperation
33TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeWarning
34TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeStopped
35TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeCancelled
36TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeFileNotFound
37TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeForbidden
38TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeBadSize
39TRANSFER_STATUS_ERRORTransfer Execution ErrorTRANSFER_STATUS_ERROR: Transfer failed with error code: TeShuttingDown
90CHILD_TRANSFERS_NOT_MONITORED_WARNINGAPI LimitationsCHILD_TRANSFERS_NOT_MONITORED_WARNING: Too many child transfers, skipped monitoring their completion status
100TRANSFER_STATUS_CANCELUnexpected Transfer StatusTRANSFER_STATUS_CANCEL: Unexpected CANCELLED status

STDOUT and STDERR

Note

STDOUT and STDERR provide additional information for the user. The populated content can be changed in future versions of this extension without notice. Backward compatibility is not guaranteed.

More structured information can be retrieved from the EXTENSION output.

STDERR provides additional information to the user about the task instance execution. Verbosity is increased with the Task Log Level, The Debug and Trace levels can lead to extensive details and are only recommended for troubleshooting.

STDOUT provides a summary report for the wildcard transfers, but only if Wait For Transfer Completion is set.

For MPUT and MGET actions, the list of the child file transfers with the following details.

FieldDescription
idThe identifier of the transfer on UDMG
status

The current status of the transfer
One of PLANNED, RUNNING, PAUSED, INTERRUPTED, DONE, CANCELED, or ERROR

localFilepathThe path of the file on the local disk
startThe date and time the transfer has started (UDMG Server time)
stop

The date and time the transfer has ended (UDMG Server time)

filesizeThe size of the file in bytes (or -1 when unknown)
progressThe progress of the data transfer in bytes
remoteIDThe UUID of the transfer on UDMG
errorCodeThe UDMG transfer error code.
errorMessageThe error message (if an error occurred)

step

The current processing step of the transfer
One of NONE, PRE TASKS, DATA, POST TASKS, ERROR TASKS or FINALIZATION
taskNumberThe task number in the processing step.
Only for the Transfer Steps 'PRE TASKS', 'POST TASKS', and 'ERROR TASKS'
remoteFilepathThe path to the file on the remote partner
ruleThe name of the transfer rule
isSendIndicates whether the transfer is a send (true) or a receive (false)
requestedThe name of the server/partner that requested the transfer
requesterThe name of the account that requested the transfer


 Example of STDOUT for a wildcard download from SFTP with 3 matching files
  id  status    localFilepath                    start                             stop                                filesize    progress             remoteID  errorCode    errorMsg    step      taskNumber    remoteFilepath                       rule                   isSend    requested    requester
----  --------  -------------------------------  --------------------------------  --------------------------------  ----------  ----------  -------------------  -----------  ----------  --------  ------------  -----------------------------------  ---------------------  --------  -----------  -----------
 480  DONE      /data/in/mail-editor.png         2023-05-11 10:44:30.493303+00:00  2023-05-11 10:44:40.853704+00:00       16471       16471  1656611233584906240  TeOk                     StepNone                /pub/example/mail-editor.png         rebex_receive_example  False     rebex        demo
 481  DONE      /data/in/mail-send-winforms.png  2023-05-11 10:44:30.493303+00:00  2023-05-11 10:44:50.856191+00:00       35414       35414  1656611233622654976  TeOk                     StepNone                /pub/example/mail-send-winforms.png  rebex_receive_example  False     rebex        demo
 482  DONE      /data/in/mime-explorer.png       2023-05-11 10:44:30.493303+00:00  2023-05-11 10:45:00.860761+00:00       49011       49011  1656611233656209408  TeOk                     StepNone                /pub/example/mime-explorer.png       rebex_receive_example  False     rebex        demo

For a LIST action, the list of matching files is presented: 

FieldDescription
FilenameThe name of a file on the remote path that matched with the wildcard pattern.


 Example of the STDOUT for a wildcard list from SFTP with 2 matching files
Filename
------------------------------------------------
winceclient.png
winceclientSmall.png

How To

Import Universal Template

To use the Universal Template, you first must perform the following steps.

  1. This Universal Task requires the Resolvable Credentials feature. Check that the Resolvable Credentials Permitted system property has been set to true.

  2. Import the Universal Template into your Controller.

  3. When the files have been imported successfully, refresh the Universal Templates list; the Universal Template will appear on the list.

Modifications of this integration, applied by users or customers, before or after import, might affect the supportability of this integration. For more information refer to Integration Modifications, below.

Configure Universal Task

For a new Universal Task, create a new task, and enter the required input fields.

Integration Modifications

Modifications applied by users or customers, before or after import, might affect the supportability of this integration. The following modifications are discouraged to retain the support level as applied for this integration.

  • Python code modifications should not be done.

  • Template Modifications

    • General Section

      • "Name", "Extension", "Variable Prefix", and "Icon" should not be changed.

    • Universal Template Details Section

      • "Template Type", "Agent Type", "Send Extension Variables", and "Always Cancel on Force Finish" should not be changed.

    • Result Processing Defaults Section

      • Success and Failure Exit codes should not be changed.

      • Success and Failure Output processing should not be changed.

    • Fields Restriction Section
      The template setup does not impose any restrictions concerning the "Exit Code Processing Fields" section.

      1. Success/Failure exit codes need to be respected.

      2. In principle, as STDERR and STDOUT outputs can change in follow-up releases of this integration, they should not be considered reliable sources for determining the success or failure of a task.

Users and customers are encouraged to report defects, or feature requests at Stonebranch Support Desk.

Document References

This document references the following documents:

Document LinkDescription
Universal TemplatesUser documentation for creating, working with, and understanding Universal Templates and Integrations.
Universal TasksUser documentation for creating Universal Tasks in the Universal Controller user interface.
CredentialsUser documentation for creating and working with credentials.
Resolvable Credentials Permitted PropertyUser documentation for Resolvable Credentials Permitted Property.

Changelog

ue-mft-transfer-1.4.0 (2024-06-06)

Deprecations and Breaking Changes

  • Deprecation: Integration is now compatible with Universal Controller and Universal Agent version 7.3 and up.

Enhancements

  • AddedIncreased the maximum number of retrieved values for dynamic commands from 20 to 1000 (#36860).

  • Added: Support for dynamic retrieval of partner accounts during task configuration (#32194).
  • Added: Enhanced logging on DEBUG log level (#32506).
  • Changed: The Transfer ID output field is now populated instantly (#35768).
  • Changed: API endpoints that support retrieval of entities based on Business Services (introduced on UDMG 1.2) are now used (#35581).

  • Changed: When using UMDG 2.0 and up, the dynamic retrieval of rules is now based on the account (#36832).

Fixes

  • Fixed: The environment variable `UDMG_CLIENT_MAX_THROTTLE_RATE` is now correctly interpreted as a float (#34325).
  • Fixed: Corrected the exit code of tasks when some transfers were manually canceled. The extension now correctly returns exit code 100 (#34316).

ue-mft-transfer-1.3.1 (2024-03-12)

Enhancements

  • Added: Compatibility with Python 3.11 (#35935).

ue-mft-transfer-1.3.0 (2023-09-29)

Deprecations and Breaking Changes

  • Breaking Change: "Polling Interval" minimum value is set to 1, a value of 0 could cause an infinite loop (#33815).

Enhancements

  • Added: new LIST action to retrieve the names of the files matching a wildcard pattern on a remote SFTP partner (#33358).
  • Added: Logging of dynamic command processing in the agent log with TRACE level (#32993).
  • Added: MGET/MPUT: error is raised when monitoring of child transfers is skipped because the list is greater than "Max Files To Monitor": CHILD_TRANSFERS_NOT_MONITORED_WARNING with exit code 90 (#33065).
  • Added: Support for throttling the MGET/MPUT monitoring with the environment variable UDMG_CLIENT_MAX_THROTTLE_RATE. It sets the maximum number of calls per second to the UDMG API during the monitoring phase. Default is 60 (#33432).
  • Changed: "Target File" only visible for GET & PUT actions (#33367).
  • Changed: After a dynamic command, the extension will terminate immediately if the transfer is already completed (#32989).
  • Changed: "Polling Interval" field is always visible, as it is still used to check for parent transfer completion (#32994).
  • Changed: MGET/MPUT: "Transfer Progress" is only updated when a child transfer is completed (DONE, ERROR, CANCELLED) (#33815).
  • Changed: Sorting of the "Action" list (#33064).

Fixes

  • Fixed: Exit code to be 11 in case of 404 API errors (#28881).
  • Fixed: Extension finishes successfully after unexpected transfer CANCELLED status (#29248).
  • Fixed: Fix Task Cancel to also process child transfers that are in ERROR status (#33804).
  • Fixed: Proper catching of UDMG API errors during wildcard transfer monitoring (#33310).

ue-mft-transfer-1.2.0 (2023-05-09)

Deprecations and Breaking Changes

  • Breaking Change: Transfer Progress output only field is changed to text value (#32195)

Enhancements

  • AddSupport Wildcard Transfer (#32198, #32195, #32201)
    1. New actions "MPUT" and "MGET" for wildcard transfers:
      • support for wildcard in source file parameter,
      • creation of wildcard transfer on UDMG,
      • monitoring of child transfers on UDMG,
      • tabular report on STDOUT with final child transfer status,
      • short summary report in EXTENSION output,
      • PAUSE, RESUME, and CANCEL commands are propagated to child transfers
    2. "Transfer Progress" output field is redefined to show human readable value
      • size in KB, MB, or GB for single transfer,
      • "x out of y files" for wildcard transfer
    3. "Max files to monitor" parameter: limit the number of child transfers that are monitored by the task instances, 100 by default.
    4. "Wait for transfer completion" parameter: task instance only returns when the transfer is completed (with DONE or CANCELLED status) on UDMG.
      For wildcard transfers, only returns when all child transfers are completed. Activated by default.
  • Add: Refresh task instance output with re-run (#32463)
  • AddKeep UC task instance ID in UDMG file transfer metadata field udmg_ue_task_uuid (#30931)

ue-mft-transfer-1.1.0 (2023-01-31)

Deprecations and Breaking Changes

  • Breaking Change: minimum universal agent version set to 7.3

Enhancements

  • Addset target filename (rename file) (#31174)
  • Add: transfer status as UC 7.3 extension status field. (#31041)
  • Add: retry failed transfer with Task Re-run. (#29599)
  • Add: show UUID. (#30733)
  • Add: show transfer info fields. (#30930)
  • Add: support for PeSIT and PeSIT-TLS protocols (#31051)

Fixes

  • Fix: optimize the number of API calls. (#29247)

ue-mft-transfer-1.0.0 (2022-06-30)

  • Initial version