Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4b7jneJXf2QOt2Do+6kyct
Power Apps - Building Power Apps
Unanswered

Issue Connecting with SQL Server

Like (0) ShareShare
ReportReport
Posted on 18 Jan 2022 07:25:47 by

Hello everyone!

 

I have 2 issues here from building my first power app and I can't seem to find the right solution anywhere on the internet so I'm turning to this forum. I have already created a SQL database on Microsoft Azure, and when I tried to create a power app directly from it, the screen was loading for a while before it says '404 resource not found'. After the connection failed, I went into the list of connections inside power apps, and the SQL server, which previously failed to connect, was already there. When I tried to manually connect it at that point and create the app from there, it was able to connect successfully. However, it only generated 2 screens instead of the 3 I was expecting to get (the EditScreen was missing). I've tried recreating a new database as well as restarting everything from scratch, but the same problem remains.

 

The second problem, which could be a result of the first problem, is when I tried to manually create the edit screen and create a new form, I was able to add the column names directly from the app, but the text field did not show up at all. This meant that the app is able to display the data from the SQL server, but cannot edit the data. The power app simply does not seem to have 'write' access to the database on Azure. Is there any pointers as to how I can connect SQL server to power apps more seamlessly?

 

Any help is appreciated,

Thank you!!

 

Categories:
  • timl Profile Picture
    34,939 Super User 2025 Season 1 on 18 Jan 2022 at 12:19:55
    Re: Issue Connecting with SQL Server

    Hi @dlin63 

    Do you have a primary key on your table? Power Apps cannot write to a table without a primary key, and this is the most likely cause of the issue.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Write-Back-to-SQL-Default-screens/m-p/543001

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard