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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard