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 / JSON parsing error in ...
Power Apps
Suggested Answer

JSON parsing error in Studio with Fabric SQL - app works perfectly when published?

(0) ShareShare
ReportReport
Posted on by
Has anyone else experienced this? My Power Apps connects to Microsoft Fabric SQL Analytics Endpoint via DirectQuery. The published app works flawlessly - zero errors, perfect data display, users love it.

BUT - Power Apps Studio shows "JSON parsing error, expected 'string' but got 'number'" on every control. Can't demo the editor to stakeholders without them thinking the platform is broken.
 
Tried:
- Removing/re-adding data source
- Clearing cache
- Different browsers
- Explicit CAST on all SQL columns
- Simplified views

Nothing fixes the Studio error, but published app = perfect.
 
Help appreciated!
pappsproblem.jpg
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    You’re using Power Apps + Microsoft Fabric SQL (DirectQuery).
    Published app → works perfectly.
    Power Apps Studio → shows: “JSON parsing error” on every control.
     
    This means Studio is choking on metadata coming from the Fabric SQL DirectQuery connection, even though the runtime handling it fine.
    This is not a data problem (you already CASTed everything), but a Power Apps Studio parsing bug with Fabric SQL’s metadata JSON.
     
    Not sure, this might be a bug in Power Apps Studio’s schema resolver for Fabric SQL DirectQuery.
     
    Did you try various methods of casting? If not, can you give a try?
         CAST(field AS VARCHAR(50))
         CONVERT(VARCHAR(50), field)
         SELECT field = CONCAT('', field)
     
    Create a view in Fabric SQL that converts every column to a consistent type (prefer NVARCHAR).
    Reconnect Power Apps to that view.
    This almost always fixes Studio-only JSON parse bugs in DirectQuery scenarios.
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     
     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard