Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Snowflake Insert/Update Error "Primary Key required for update option"

akihirokomatsu
8 - Asteroid

Hi all -

 

Having some issues updating a Snowflake database by inserting/updating records based on a primary key. Getting this error below:

akihirokomatsu_3-1632236140241.png

 

My set up: 

 

I have set a primary key in the Snowflake DB "PRIMARY_KEY", using the statement:

 

ALTER TABLE [TABLE NAME] ADD PRIMARY KEY (PRIMARY_KEY);

akihirokomatsu_1-1632235971967.png

 

I have the same field "PRIMARY_KEY" in my Alteryx DB that I am using to write to the Snowflake table.

akihirokomatsu_0-1632235902794.png

 

My output options are:

akihirokomatsu_2-1632236055027.png

 

I am using the Snowflake Driver ODBC Driver 2.23.2

 

Is there anything I can do to fix this? Thanks!

2 REPLIES 2
emilyforeman
7 - Meteor

I am experiencing the same issue-- any luck?

 

apathetichell
19 - Altair

I'm super curious about this one - because Snowflake doesn't even enforce Primary Keys! I'll take a look into it and see what I see (I use the DSII driver)

 

also see this thread:

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Output-Data-Tool-update-insert-if-new/...

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels