AlloyDB Bulk Load

AlloyDB Bulk Load

This page is no longer maintained (May 13, 2026). For the most current information, go tohttps://docs.snaplogic.com/snaps/snaps-data/sp-google-alloydb/snap-alloydb-bulk-load.html.

In this article

Overview

You can use this Snap to bulk load data into AlloyDB tables. If the target table does not exist in AlloyDB, you can create a table. This Snap supports both binary and document inputs. You can configure the input view in the Views tab.Ā Ā 

Snap Type

The AlloyDB Bulk Load Snap is a Write-type Snap.

Prerequisites

None.

Support for Ultra Pipelines Ā 

Does not supportĀ Ultra Pipelines.Ā 

Limitations

If the target table does not exist and the input is binary, the Snap does not fetch the table's schema from the input. The table's schema must be passed to the Snap through the second input view.

Known Issues

None.

Behavior Changes

MultiExcerpt

Ā 

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

InputĀ 

  • Document

  • Binary

Ā 

  • Min: 1

  • Max: 2

  • Mapper Snap

  • Copy Snap

  • File Reader

  • AlloyDB Select

The data to be loaded into the AlloyDB table.Ā This Snap has one document input view by default.

A second view can be added for table metadata as a binary or document stream so that the target absent table can be created in the database with a schema similar to the source table. This schema is usually fromĀ the output of a database Select Snap.

Output

Document

Ā 

  • Min: 0

  • Max: 1

  • JSON Formatter

  • File writer

The Snap outputs one document specifying the status, with the records count that are being inserted into the table. Any error occurring during the process is routed to the error view.

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:

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

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining 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.

Snap Settings

  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon (:Suggest_Icon:): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon (:Expression_Enabler: ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( :Plus: ): Indicates that you can add fields in the fieldset.

  • Remove icon ( :Minus:): Indicates that you can remove fields from the fieldset.

  • Upload icon (:Upload_icon: ): Indicates that you can upload files.

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

Ā 

Default Value:Ā AlloyDB Bulk Load
Example:Ā Load Employee Data

String

Specify a unique name for the Snap.

Ā 

Schema

Ā 

Default Value:Ā N/A
Example:Ā EmployeeĀ 

String/Expression

Specify the database schema name in AlloyDB. If you do not specify a schema, then the suggestion for theĀ Table nameĀ retrieves all tableĀ names of all schemas.

Ā 

Table name*


Default Value:Ā N/A
Example:Ā Employee.PersonnelInformation

String/Expression

Specify the AlloyDB table on which to run the bulk load operation.

Ā 

Create table if not present


Default Value:Ā Deselected

Checkbox

Select this checkbox to automatically create the target table if it does not exist.

  • If a second input view is configured for the Snap and it contains a document with schema (metadata) of the source table, the Snap creates the new (target) table using the same schema (metadata). However, if the schema comes from a different database, the Snap might fail with Unable to create table: "<table_name>"Ā errorĀ due to data type incompatibility.

  • In the absence of a second input view (the schema/metadata document), the Snap creates a table based on the data types of the columns generated from the first row of the input document (first input view).

A newly created table is not visible to subsequent database Snaps during runtime validation. If you want to immediately use the newly updated data you must use a child Pipeline that is invoked through a Pipeline Execute Snap.

Columns

Use this field set to define the columns to be loaded/copied. If you do not configure this field set, then all columns in the input data stream are loaded into the target table. You can also set how you want the Snap to handle null values for each column.

  • Column order is critical when using the binary input view.

  • You can select both Force Non-Null and Force Null simultaneously. In such cases, the Snap converts quoted null strings to null values and unquoted null strings to empty strings.

Column


Default Value:Ā N/A
Example:Ā emp_name

String/Expression

Specify the name of the column/field. This is a suggestible field and lists all field names in the input.

Ā 

Force Not-Null


Default Value:Ā Deselected
Example:Ā N/A

Checkbox

Select this checkbox to not match the selected column's value against the null string.Ā The Snap reads empty null strings as zero-length strings rather than nulls, even when they are not quoted.

Ā 

Force Null


Default Value:Ā Deselected
Example:Ā N/A

Checkbox

Select this checkbox to match the selected columnĀ value against the null string, even if it has been quoted. If a match is found, the fieldĀ value is set toĀ NULL.

By default, when the null string is empty, the Snap converts a quoted empty string into NULL.

Ā 

Format*


Default Value:Ā Text
Example:Ā CSV

Dropdown list

Choose the data format to be written.Ā This field is applicable only when using the binary input view.Ā 

  • Text - tab-separated-values (default)

  • CSV - comma-separated-values

  • Binary - AlloyDB specific format

Ā 

Header Provided


Default Value:Ā Deselected
Example:Ā N/A

Checkbox

Select this checkbox to include the input data asĀ a header.Ā Applicable only whenĀ using the binary input view andĀ CSV option in the Format field.

Ā 

Encoding

Ā 

Default Value:Ā UTF8
Example: Unicode

Dropdown list

Choose one of the following encodings to use. This is limited to the encodings supported by the AlloyDB server:

ABC ALT BIG5 EUC_CN EUC_JIS_2004 EUC_JP EUC_KR EUC_TW GB18030 GBK ISO88591 ISO885910 ISO885913 ISO885914 ISO885915 ISO885916 ISO88592 ISO88593 ISO88594 ISO88599 ISO_8859_5 ISO_8859_6 ISO_8859_7 ISO_8859_8 ISO_8859_8 JOHAB KOI8 KOI8R KOI8U LATIN1 LATIN2 LATIN3 LATIN4 LATIN5 LATIN7 LATIN9 Mskanji SHIFT_JIS_2004 SJIS SQL_ASCII ShiftJIS TCVN TCVN5712 UHC UTF8 Unicode VSCII WIN WIN1250 WIN1251 WIN1252 WIN1253 WIN1254 WIN1255 WIN1256 WIN1257 WIN1258 WIN866 WIN874 WIN932 WIN936 WIN949 WIN950 Windows932 Windows936 Windows949 Windows950

Snap Execution

Default Value:Ā 
Example: Validate & Execute

Dropdown list

Select one of the following three modes in which the Snap executes:

  • 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 runtime without generating preview data.

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

Snap Pack History


Related Links

Ā