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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue with SQL Fields ...
Power Apps
Answered

Issue with SQL Fields having a "View" Control type

(0) ShareShare
ReportReport
Posted on by 150

I'm using SQL Server as my Data Source and I'm running into an issue. 

 

I have 3 fields that are number based (Work Order Number, Qty Passed, Qty Failed)

I have two fields that are letter based (Produced By, Comments)

 

I have an Edit Form that is set to Mode.New. I changed the cards I needed to Edit mode instead of View.

 

I noticed when I linked up the data source and added the fields, that only View was able to be chosen in the control type. 

 

I am able to dbl click in the designer and add data to each of these fields, however, when I preview the app I cannot enter anything.

 

I have tried removing fields and readding to no avail

 

Anyone have any ideas if this is a MS issue or if I did something wrong??

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Danny_L 

    The issue most likely is at your SQL datasource.

    First - is this an actual table you are using for your DataSource, or is it a View?  You cannot edit data from a View.

    Next - does your table have a primary key?  You must have one on a SQL table in order for PowerApps to update it.

     

    I hope this is helpful for you.

  • Danny_L Profile Picture
    150 on at

    Thanks for the info. I am not a programmer at all so I have only started with a simple table.

     

    It is a table and it does not have a primary key. I will have to give it one. Will get back with results

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Danny_L 

    Yes, that is your issue.  A table without a primary key is read only in PowerApps...and thus the only control choices are view choices.

    Set a column (usually ID) as a primary key, refresh the datasource from the datasource list in the designer and then (you may have to cut and paste the entire editform) you should have what you are looking for.

     

  • Danny_L Profile Picture
    150 on at

    That worked. Thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard