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 / Power App MSSQL stored...
Power Apps
Unanswered

Power App MSSQL stored procedures dont like JSON parameters (maybe collumn types too idk yet)

(0) ShareShare
ReportReport
Posted on by
# General Overview 
Posting this so someone does not have to go thru the troubleshooting I did....
I had a somewhat complex stored procedure that pulled from a few tables, and inserted in a few tables conditoinaly.. 20+ params
I followed the docs to add the SP to my canvas app, but was getting the following error when i called the SP in PowerFx
 
```JSON
{
  "status": 400,
  "message": "Invalid data type for parameter 'your-json-paramater' found.\r\nclientRequestId: 291b0037-eae1-4909-8dca-afa6679a3111",
  "error": {
    "message": "Invalid data type for parameter 'your-json-paramater' found."
  },
  "source": "sql-ncus.azconn-ncus-001.p.azurewebsites.net"
}
```
 
 
# important context 
your-json-paramater was Dtype JSON on my stored procedure. This SP would only use this param to insert the value into a JSON column.
I am running AZ sql
# FIX !!!!
A Sr power app dev at my org said the MSSQL power app connector might not like json.. so I updated the SP `your-json-paramater` dtype to NVARCHAR(MAX).. Kept the collumn as JSON.  Now everything works smoothly.


## QUESTION 
why does this happen ? 
my assumption is that with all the diffrent builds/versions/deployments/'flavors' of MSSQL now days the connector just does not allow JSON values as not all flavors of MSSQL have native JSON.. 
 
Categories:
I have the same question (0)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 362 Most Valuable Professional

#2
11manish Profile Picture

11manish 167

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard