web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Writing data into Post...
Power Apps
Unanswered

Writing data into PostgreSQL database results in AutoIncrement column error

(0) ShareShare
ReportReport
Posted on by 4

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

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    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-Incompatibility/m-p/408532

    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).

  • ArthurPedrosa Profile Picture
    4 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard