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 / Invalid Mashup Express...
Power Apps
Unanswered

Invalid Mashup Expression using supplied values. inner exception: Microsoft SQL: Line 1: Incorrec...

(0) ShareShare
ReportReport
Posted on by 7

Whenever I attempt to setup a SQL Server connection in PowerApps, I receive the following error:

 

"Invalid Mashup Expression using supplied values. inner exception: Microsoft SQL: Line 1: Incorrect syntax near 'max'."

 

I've selected "Connect using on-premises data gateway" (which I've installed on my office machine).

For SQL server name, I'm using the IP address of the server.

I selected Windows Authentication Type.

 

The SQL Server information is as follows:

  • Product: Microsoft SQL Server Standard Edition
  • OS: Microsoft Windows NT 5.2 (3790)
  • Platform: NT INTEL X86
  • Version: 8.00.2066

Any thoughts on what is causing the error?

 

Thanks!

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

    Hi @sir_ironpants,

     

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

     

    Make sure that you have gone throught the below article:

    https://powerapps.microsoft.com/en-us/tutorials/connection-azure-sqldatabase/

     

    Best regards,
    Mona

  • sir_ironpants Profile Picture
    7 on at

    Thank you for the reply!

     

    Unfortunately, even after checking all the suggested things in your response, I still cannot connect to the on-premises SQL Server. I receive the same "Invalid Mashup Expression" error every time I try to establish a connection in PowerApps.

     

    Is there anything else you can think of for me to try?

  • rajeevkumar Profile Picture
    2 on at

    I'm also getting the same error, checked all rules are set. 

     

    Below command also works fine from PowerShell cmd

    Test-NetConnection -ComputerName watchdog.servicebus.windows.net -Port 9350

     

     

    Error:

     

    {
      "status"400,
      "message""Invalid Mashup Expression using supplied values.\r\n     inner exception: The key didn't match any rows in the table.\r\nclientRequestId: 3241abed-fdc7-4aa1-9555-3792ce5a3cb7",
      "source""sql-logic-cp-southindia.logic-ase-southindia.p.azurewebsites.net"
    }

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard