cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ldd1
Level: Powered On

Create New Form - MySQL Primary Key Required Error

Hello,

 

I'm trying to create a form that saves to a MySQL database.  When use SubmitForm, the app is requiring that I enter a primary key value.  I have the primary key on my db set to PK, NN, AI.  How do I create new records for this table without setting a primary key in the app?  The primary key should auto increment once the record reaches the db anyways.  

 

Thanks for any help.

2 REPLIES 2
Dual Super User
Dual Super User

Re: Create New Form - MySQL Primary Key Required Error

Hi @ldd1 

 

Ensure that your primary key in the table has the following settings

 

Indentity Column - is set to the primary key

Capture.PNG

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

ldd1
Level: Powered On

Re: Create New Form - MySQL Primary Key Required Error

Hi @RezaDorrani,

 

Thanks for the response. I'm running MySQL for this, but have these settings.Capture.PNG

Helpful resources

Announcements
thirdimage

Power Platform 24

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,751)