Bulk insert auto incrementing primary key

I have got a simple database (using the in-built retool database - postgresql - structure) where I have set the table to have an auto-incrementing ID column (at least, that's what I THOUGHT I did, by creating a new column, selecting the auto-increment ID option and then setting that new column to be my primary key).

The interface for adding new data looks like this:

My submit query looks like this:

I built arrListView like this:
image

I've checked and the arrListView.value array does not have the UID value defined, so in theory, if I submit this form, the primary key IDs should be auto-generated. However, when I try to submit, I get this error:
image

What's weird is that the UID column that I set up in my database (which I set up as an auto-incrementing integer ID:

Seems to revert to a regular integer field after I've set it to be my primary key??

Any help would be wildly appreciated!

Cheers

1 Like

Hi @Grant_Humphries! Welcome back to the community. :slightly_smiling_face:

I'm not certain how this might have happened, but the default value associated with that column should be asi_census_uid_seq. Try manually updating it and then let me know if you are successfully insert data!