"NULL result in a non-nullable column" error while inserting data from one snowflake table to other snowflake table using Talend Data Integration

Six Stars

"NULL result in a non-nullable column" error while inserting data from one snowflake table to other snowflake table using Talend Data Integration

Hello Team,

  I am creating a SCD2 flow without using SCD2 components(ex: SCDELT).

My source and target tables are in Snowflake database only.

Attaching my SCD2 flow.

I am trying to just insert the new records from source to target.

When i checked the SK and other column values in tLOGROW, they are all not null.

But while inserting data in Snowflake target, it is giving error as:"

"Caused by: net.snowflake.client.jdbc.SnowflakeSQLException: NULL result in a non-nullable column"

 

Only SK column has Not Null constraint.

 

Thank you.


Accepted Solutions
Six Stars

Re: "NULL result in a non-nullable column" error while inserting data from one snowflake table to other snowflake table using Talend Data Integration

Hello,
Thank you for your help.
There was some issue with column names between source and target due to which error was coming in talend.
Issue is solved now.

Thank you

View solution in original post


All Replies
Highlighted
Moderator

Re: "NULL result in a non-nullable column" error while inserting data from one snowflake table to other snowflake table using Talend Data Integration

Hello,

Are there empty strings in the source data? Could you please verify whether you have unchecked the below check box in tDBOutput(Snowflake)?

snowflakeemptystring.png

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: "NULL result in a non-nullable column" error while inserting data from one snowflake table to other snowflake table using Talend Data Integration

Hello,
Thank you for your help.
There was some issue with column names between source and target due to which error was coming in talend.
Issue is solved now.

Thank you

View solution in original post

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog