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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,926)