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 / Creating a view in Azu...
Power Apps
Unanswered

Creating a view in Azure Synapse on Parent Child tables with nested JSON

(0) ShareShare
ReportReport
Posted on by 168

My goal is to use Cognitive Search to index data created in a PowerApp. I have my tables syncing fine via Synapse Link and am able to query the data in the Serverless SQL pool. In order to prepare the data for ingestion by Cognitive Search I need to denormalize a Parent:Child relationship, grouping Child records into a JSON field. I am able to create a view similar to this one below:

 

CREATE SCHEMA vw

GO

 

CREATE VIEW [vw].[HotelRooms] AS SELECT *, (SELECT *         FROM dbo.Rooms$         WHERE dbo.Rooms$.HotelID = dbo.Hotels$.HotelID FOR JSON AUTO) AS Rooms FROM dbo.Hotels$

GO

(https://learn.microsoft.com/en-us/power-apps/maker/data-platform/azure-synapse-link-create-view)

 

The query runs fine but when I run a SELECT on the view I get an error: The query references an object that is not supported in distributed processing mode Selecting the first column only works fine.

 

This might be more a Serverless SQL Pool question than a Dataverse one but I’m curious if anybody is doing the same thing, or if there’s another way around this problem? I’m really trying to avoid an additional step of transforming the data with Data Factory although that might be my last resort. Thanks for any thoughts people have.

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

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard