In this article
Table of Contents | ||||
---|---|---|---|---|
|
...
The ZipFile Write Snap is a Write-type Snap that reads writes files from archive files.
...
Multiexcerpt macro | ||||||
---|---|---|---|---|---|---|
| ||||||
With the 4.33 GA release of the
|
...
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
| Downstream Snap is optional. Any Snap with a document input view can be connected downstream. | The Snap does not require input data. Input documents may be used to evaluate any JavaScript expression in the File property. It may contain value(s) to evaluate the JavaScript expression in the File property. |
Output | Binary |
|
| Binary data read from the source specified in the File property with header information about the binary stream. Each file extracted from the provided zip file is written as binary object to this output view. The header of the binary object has details about the file extracted like content-location, content-type, content-length, last-modified, and zip-filename. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
Account
This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. This Snap supports a Basic auth account, an AWS S3 auth account, SSH Auth account, SMB account, or no account. See Configuring Binary Accounts for information on setting up accounts that work with this Snap.
...
Field Name | Field Type | Description | |||||||||||||||
Label* Default Value: ZipFile Write | String | Specify a unique name for the Snap. | |||||||||||||||
File name*
| String/Expression | Specifies the URL of the file where the output binary data is written. The supported file protocols are:
This Snap supports S3 Virtual Private Cloud (VPC) endpoint. For example, s3://my-bucket@bucket.vpce-028b7814794578709-vu0vvauy.s3.us-west-2.vpce.amazonaws.com When using expressions to build a file name, ensure that the resulting file name does not contain characters that are not supported by the target platform. For example, a file name that contains the special character ":" is not supported in SMB.
| |||||||||||||||
File action* Default value: Overwrite | String/Expression | The action to perform if the file already exists. The options available include:
| |||||||||||||||
Base directory Default Value: N/A | String | The root directory for all the files added to .zip file. | |||||||||||||||
Use input view label Default Value: Deselected | Checkbox | If true, the input view label is used for all names of the files added to the zip file. Otherwise, the input view ID is used instead, when input binary stream does not have its content-location in its header. When this option is selected, if there are more than one binary input streams in an input view, for the second input stream and after, the file names will be the input view label appended with '_n'. If the label is in the format of 'name.ext', '_n' will be append to the 'name', e.g. name_2.ext for the second input stream. If you select this option, and if Base directory is testFolder and the input view label is test.csv, the file name for the first binary input stream in that input view will be testFolder/test.csv, and the second, testFolder/test_2.csv, and the third, testFolder/test_3.csv, and so on. | |||||||||||||||
Number of retries Default Value: 0 | Integer/Expression | Specifies the maximum number of retry attempts when the Snap fails to write. If the value is larger than 0, the Snap first stores the input data in a temporary zip file before writing to the target file. Ensure that the local drive has sufficient free disk space as large as the expected target file size. Minimum value: 0 | |||||||||||||||
Retry interval (seconds) Default Value: 1 | Integer/Expression | Specifies the minimum number of seconds for which the Snap must wait before attempting recovery from a network failure. Minimum value: 1 | |||||||||||||||
AWS Canned ACL Default Value: 1 | The predefined ACL grants (from AWS) to use when writing a file to S3. Choose a Canned ACL from the available options:
Watch the video for more information about AWS Canned ACL. Learn more about AWS Canned ACLs.
| ||||||||||||||||
Advanced properties | Use this field set to define additional properties for the Snap. | ||||||||||||||||
SAS URI | Dropdown | The URI of the Shared Access Storage (SAS) to be accessed. Supported SAS types are:
| |||||||||||||||
Values | String/Expression | Provide a value for the SAS URI. | |||||||||||||||
Default Value: Execute only | Dropdown list | Select one of the following three modes in which the Snap executes:
|
...