Hi,
I have a table in a MS SQL Server DB which has a PK and setup to autoincrement (integer value):
However, my Powerapp - where I use the patch function to create a new record complains about not proving this key. I have refreshed the DB source connection, removed and refreshed it, but I is still complaining about the missing field an throwing an error.
What I am missing ? I thought and that is what I am reading from other posts that unlike for other DB types (e.g. Postgres, MySQL) this should be possible out of the box with MS SQL. Or is my understanding wrong?
Appreciate if someone can pinpoint me to solving this issue!
Cheers,
Udo
I agree.
@zmansuri thanks for the research...I read that post you provided also earlier, but I thought some solution must be out there, because I also came across this post where the user claims not having had an issue with MS SQL:
postgresql - PowerApps Postgres auto increment ID - Stack Overflow
But reading through your posted thread a bit more user still (this year) complain about the missing support for this. So I guess I have to get rid of the autoincrement and determine the next value myself as a workaround...😒 that is pretty lousy considering that we are in year 2021 where 20 years ago this was possible in php or coldfusion etc. etc. I do not get it...
Ok i searched it.
PowerApps connection to MySQL: id issue - Power Platform Community (microsoft.com)
This post is from 2019. i am assuming issue still exist.
Hi @zmansuri ,
thank your trying to help! Really appreciate...I tried that and it is coming back with a type error (text instead of expected int) 🙄:
I haven't work with SQL. But, try this add id columns syntax with patch in the value just write ""
Like {ID:""}
WarrenBelz
223
Most Valuable Professional
MS.Ragavendar
110
Michael E. Gernaey
89
Super User 2025 Season 1