COMPRESSION Gzip compress function

The COMPRESSION Gzip compress function in RPA.

Help CentreBuilding Processes

This article describes the RPA Compression functionality to compress a file using gzip.

For a full list of available functions, please read COMPRESSION functions.


Description

The Gzip compress function compresses a single file using gzip compression. The output file defaults to the original filename with a .gz extension appended.


Setting it up

To use the Gzip compress function, follow these instructions:

{{popups:rpas/add:action=gzip-compress}}

Once on a process map:

  1. Navigate to the process where you would like to add the Gzip compress function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the COMPRESSION Gzip compress option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File PathYesText-The path to the file to compress
Output PathNoTextfile_path + .gzThe path for the compressed output file
VariableNoTextcompressed_fileVariable name to store the output file path

Output variables

VariableTypeDescription
{compressed_file}StringThe path to the compressed output file

Errors

ErrorDescription
File not foundThe source file does not exist
File write errorCould not write the compressed file

Tips

  • Gzip only compresses single files – use tar-create for directories
  • The original file is not modified or deleted

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.