cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User III
Super User III

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
Super User III
Super User III

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,053)