Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article

Table of Contents
minLevel1
maxLevel2
absoluteUrltrue

...

You can use this Snap to unsubscribe the spreadsheeta Spreadsheet.

...

Snap Type

Google Sheet Unsubscribe Snap is a READ-type Snap.

...

Works in Ultra Pipelines

Limitations

NoneThere is some delay after unsubscribing a Spreadsheet due to the Google API behavior.

Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 0

  • Max: 1

  • Mapper

  • Copy

Requires the EDI data and internal ID as a JSON documentChannel ID and Resource ID.

Output

Document

  • Min: 1

  • Max: 1

  • File Writer

The EDI transaction ID and order confirmationReturns the Channel ID and Resource ID of the unsubscribed Spreadsheet.

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:

  • Stop Pipeline Execution: Stops the current pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the rest of the records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

...

Field Name

Field Type

Description

Label*

Default ValueGoogle Sheet Unsubscribe
ExampleGoogle Sheet Unsubscribe

String

The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline.

Channel ID

Default value: N/A
Example: _channel+Date.now().getFullYear()+Date.now().getMonthFromZero()+Date.now().getSeconds()+Date.now().getMinutes()+Date.now().getMilliseconds()+$value 123e4567-e89b-12d3-a456-42661417400

String/Expression

Specify a UUID or similar unique string that identifies the channel.

Resource ID

Default value:
Example: $resourceId 9DAX6QMX4TWySd_evM14cly-N678

String/Expression

Specify an ID which identifies the resource being watched on the given channel.

Snap Execution

Default ValueValidate & Execute
Example: Validate & Execute only

Dropdown list

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Troubleshooting

...

Error

...

Reason

...

Resolution

...

Account validation failed.

...

The Pipeline ended before the batch could complete execution due to a connection error.

...

Verify that the Refresh token field is configured to handle the inputs properly. If you are not sure when the input data is available, configure this field as zero to keep the connection always open.


...

Example

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/2533687407/Google+Sheet+Subscribe#Subscribing-and-Unsubscribing-to-a-Google-Spreadsheet

...