cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArthurPedrosa
Regular Visitor

Writing data into PostgreSQL database results in AutoIncrement column error

Hi there!

I'm developing an application that has it's datasource a few tables from a database in PostgreSQL. I made sequences for each of the id columns of these tables and set them to primary key columns. The problem starts when I try to submit a form from powerapps that has one of those tables as a datasource, it says that the column that represents the id (with is the primary key and is a sequence) is required and therefore the sumbission of the form can't be completed.

Now, I'm a noob in db and powerapps, but in my point of view powerapps should had basiclly ignored this column in the form since it will be handled in the database directly. Am I wrong?

 

Thank you for your time

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @ArthurPedrosa 

Unfortunately, there is a bug that prevents this from working correctly. There are more details in my post here.

https://powerusers.microsoft.com/t5/Building-Power-Apps/MySQL-Auto-Increment-Primary-Key-Incompatibi...

The only workaround as far as I'm aware is to generate your own sequential numbers from within Power Apps (although I appreciate that this is far from ideal).

View solution in original post

2 REPLIES 2
timl
Super User
Super User

Hi @ArthurPedrosa 

Unfortunately, there is a bug that prevents this from working correctly. There are more details in my post here.

https://powerusers.microsoft.com/t5/Building-Power-Apps/MySQL-Auto-Increment-Primary-Key-Incompatibi...

The only workaround as far as I'm aware is to generate your own sequential numbers from within Power Apps (although I appreciate that this is far from ideal).

View solution in original post

But let me ask you something. This solution of yours will work on large datasets? because I belive there will be a delegation issue if you try to generate your own sequence in powerapps

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,190)