Amazon Redshift Connectors > Part II: Data Integration with Amazon Redshift V2 Connector > Troubleshooting > Troubleshooting for Amazon Redshift V2 Connector
  

Troubleshooting for Amazon Redshift V2 Connector

Using the JVM option for upsert operation

For an upsert operation, you can set the JVM option -DuseDeleteForUpsert=true and connect all the fields of the target table. Use the following rules when you set the JVM option:

Amazon S3 bucket does not exist or the user does not have permission to access the bucket

Do not modify the time on the machine that hosts the Secure Agent. The time on the Secure Agent must be correct as per the time zone. Otherwise, the mapping fails with an exception.

NOT NULL columns with default values

Even when you do not map the NOT NULL columns that have default values in an Amazon Redshift target table, the insert, update, or upsert operation is successful and the default values for NOT NULL columns are used.
If you set the JVM option -DRetainUnmappedNotNullColumnValidation value to true in the Secure Agent properties, the operation is not successful and the default values for NOT NULL columns are not used.

How to implement the upsert operation using Amazon Redshift V2 Connector?

For information about implementing the upsert operation, see Implementing the upsert operation using Amazon Redshift V2 Connector.

How to configure AWS IAM authentication for Amazon Redshift V2 Connector?

For information about configuring AWS IAM authentication, see Configuring AWS IAM Authentication for Amazon Redshift and Amazon Redshift V2 Connectors.

How to connect to Amazon Redshift Serverless offered by Amazon Web Services (AWS) using the Amazon Redshift V2 connector?

For information about connecting to Amazon Redshift Serverless, see Using Amazon Redshift Serverless with Cloud Data Integration.

Invalid timestamp error occurs when a string data type is mapped to a time data type in a mapping

When you run a mapping enabled for SQL ELT optimization to write data from a string column that contains date, timestamp and time information and you want to process it with default date/time format to write to Redshift, we can make use of JVM property -DHonorInfaDateFormat=true for the Secure Agent.
To configure the JVM option in Administrator, perform the following steps:
  1. 1Select Administrator > Runtime Environments.
  2. 2On the Runtime Environments page, select the Secure Agent machine that runs the mapping.
  3. 3Click Edit.
  4. 4In the System Configuration Details section, select Data Integration Server as the Service and DTM as the Type.
  5. 5Edit the JVM Option system property and set the value to -DHonorInfaDateFormat=true.
  6. 6Click Ok to save the changes.
We also need to set DateTime Format String session property as per the input string format under advanced session properties in a mapping task.