Test: Snaps Accounts

Account settings

The following are the default conrefs (fields and field sets) that we use for Snaps Accounts.

Field / Field set Type Description
Label String Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if there are more than one of the same Snap in the pipeline.
Advanced properties Use this field set to specify the advanced properties. This field set contains the following fields:
Auto commit Checkbox Required. Select this checkbox to commit each batch immediately after it is executed. If the Snap fails, only the batch being executed at that moment gets rolled back.

Deselect this checkbox to commit the execution output only after the execution of all batches is complete. If the Snap fails, the entire transaction is rolled back, unless the Snap finds invalid input data before it sends the insert request to the server and routes the error documents to the Error view.

Default status: Selected

Batch size Integer Required. Specify the number of statements to execute at a time.
Important:
  • Select queries are not batched.
  • Using a large batch size could use up the JDBC placeholder limit of 2100.

Default value: 50

Example: 60

Fetch size Integer Required. The number of rows to fetch at a time when executing a query.
Important: Large values could cause the server to run out of memory.

Default value: 100

Example: 80

Max pool size Integer Required. The maximum number of connections a pool must maintain at a time.

Default value: 50

Example: 60

Max life time Integer Required. The maximum lifetime of a connection in the pool.
Note: Ensure that the value you enter is a few seconds shorter than any database or infrastructure-imposed connection time limit. A value of 0 indicates an infinite lifetime, subject to the Idle Timeout value. An in-use connection is never retired. Connections are removed only after they are closed.

Default value: 30

Example: 50

Idle Timeout Integer Required. The maximum amount of time a connection is allowed to sit idle in the pool.

A value of 0 indicates that idle connections are never removed from the pool.

Default value: 5

Example: 8

Checkout timeout Integer Required. The number of milliseconds to wait for a connection to be available when the pool is exhausted.
Note: If you provide 0, the Snap waits infinitely until the connection is available. Therefore, we recommend you not to specify 0 for Checkout Timeout.

Default value: 10000

Example: 1000

Auth endpoint config Use this field set to assign specific Auth endpoint parameters for OAuth2 Authentication endpoint for the App account. Configuring values in the field set is optional. Click the or icons to respectively add or remove configuration rows.
Authentication parameter String Required. Any additional parameters that you need to configure for authentication.
Authentication parameter value String Required. Any additional parameters that you need to configure for authentication.
JDBC JARs Use this field set to specify the JDBC JAR files to be loaded. Add each JAR file in a separate row. This field set contains the following fields:
JDBC Driver String The driver to use for your application. By default, the latest JDBC driver 12.2.0.jre11 is bundled with the Azure Synapse SQL Account. However, you can manually upload a custom JAR file.

Default value: N/A

Example: mssql-jdbc-11.2.0.jre11.jar

Account properties Use this fieldset to define the account properties. This field set contains the following fields:
Hostname String/Expression Required. The server's address to which you must connect.

Default value: N/A

Example: sl-synapse.sql.azuresynapse.net

Port number Integer/Expression Required. The port number of the database server to which you must connect.

Default value: N/A

Example: 1433

Database name String/Expression Required. The name of the database to which you must connect.

Default value: N/A

Example: Synapse SQL

Username String/Expression The username to connect to the database. This username is used as the default username when retrieving connections and must be valid to set up the data source.

Default value: N/A

Example: snapadminuser

Password String/Expression The password used to connect to the data source. This password is used as the default password when retrieving connections and must be valid to set up the data source.

Default value: N/A

Example: P#2,nxu0oiX2&?

Token endpoint config Use this field set to configure token endpoint parameters as necessary for the account. Click the or icons to respectively add or remove configuration rows.

Learn more about OAuth2.0 authorization code flow.

Token endpoint parameter String Required. The name for the token endpoint parameter.
Token endpoint parameter value String Required. The value for the parameter, typically the default scope.
URL properties Use this field set to define URL properties to use, if any. This field set contains the following fields:
URL Property Name String The name for the URL property if any.

Default value: N/A

Example: MAX_CONCURRENCY_LEVEL

URL Property Value String The value of the URL property.

Default value: N/A

Example: 3

Access Token String Specify the access token used to make API requests on behalf of the user associated with the client ID.
Access Token String Specify the access token used to make API requests on behalf of the user associated with the client ID.
Access token expiration String Specify the access token expiration value.
Access Token Type String Select the type of Access Token (application user or individual user) you are using for the account from the two options available.
Authorize String Click this button to acquire the required permissions for this account from the Azure portal app, when creating an account.

For existing accounts, you can click this button to re-acquire the permissions to ensure that the account works as expected. This action does not require or result in any changes to the Access Token that is already generated

Auto-refresh token String Select this checkbox to refresh the token automatically, using the refresh token, when the token is due for expiry. The token refresh does not happen automatically if this check box is not selected.
Client ID String Enter the client ID associated with your OAuth2 application. You can create the client ID as advised by your application provider.
Client secret String Enter the client secret associated with your account. You can create the client secret as advised by your application provider.
Enable error file support Checkbox Select this checkbox to specify the directory within the COPY statement where the rejected rows and the corresponding error file should be written.

Default status: Deselected

Note: The error file only applies to CSV file formats.
Enable error file support Checkbox Select this checkbox to specify the directory within the COPY statement where the rejected rows and the corresponding error file should be written.

Default status: Deselected

Note: The error file only applies to CSV file formats.
Instance URL String Specify the host URL of the application.
JDBC driver class String Specify the fully qualified name of the driver class to be used for connecting to the server.

Default value: com.microsoft.sqlserver.jdbc.SQLServerDriver

Example: com.microsoft.sqlserver.jdbc.SQLServerDriver

JDBC driver class String Specify the fully qualified name of the driver class to be used for connecting to the server.

Default value: com.microsoft.sqlserver.jdbc.SQLServerDriver

Example: com.microsoft.sqlserver.jdbc.SQLServerDriver

OAuth2 Endpoint String Authorization endpoint to authorize the application.
OAuth2 Token String Token endpoint to get the access token.
Refresh token String The refresh token retrieval for the application is specified when setting up the account for the endpoint. There, the OAuth2 flow will be executed and the resulting refresh token can be stored in this property. If the refresh token is stored, then the access token can be refreshed automatically before it expires.
Trust all certificates Checkbox Select this checkbox if all SSL certificates are to be accepted for connecting to the database.

Default status: Deselected

Trust all certificates Checkbox Select this checkbox if all SSL certificates are to be accepted for connecting to the database.

Default status: Deselected

Note: Click Validate after entering the required details to ensure that all fields have been filled accurately. Click Apply to save the settings.