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 / Error to retrieve tabl...
Power Apps
Unanswered

Error to retrieve tables from SQL Server on premise

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I have configured SQL Server On premise using SQL Server Express 2014. I can connect it succesfully through SQL Server Management Studio. 

 

But when I tried to connect to Powerapps, it failes.

 

Here what I did:

 

1. Install Gateway (success)

2. Add SQL server connection on premise (success)

 

It successfully detect my database (TestExpense), but failed to read dataset, as it read "default". When I clicked the "Default" dataset, it provide errors "The table didn't load correctly. Please try again."

 

 

 Capture.PNG

 

Here is the full errors.

Invalid Mashup Expression using supplied values.
inner exception: Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

 

Please help

Categories:
I have the same question (0)
  • arisprabhawa Profile Picture
    Microsoft Employee on at
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Arisprabhawa,

     

    According to the error message, it seems that there is something wrong with your SQL Server On-premise. Please check the following things.

     

    1. Please make sure your database engine is configured to accept remote connections.
    2. Please make sure that you create an exception on the firewall for the SQL Server instance and port you are using.
    3. Please check if your SQL server services is up and running properly.
    4. Please make sure that you enable TCP/IP in SQL Server Configuration

     

    This article could be a reference for you:
    https://www.mssqltips.com/sqlservertip/2340/resolving-could-not-open-a-connection-to-sql-server-errors/

     
    Best regards,
    Mabel Mao

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard