Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Macc-PA
Helper I
Helper I

Json expansion - no columns were found

Hi,

 

I am reading a table containing a json column using OData.

The column in the database is defined as nvarchar(max).

 

The json looks fine in the table and I can transform the column from Text to Json.

When I try and expand the column, I get 'No columns were found' in the popup.

 

MaccPA_0-1674742663176.png

 

When I click on the record, I see the correct fields so the data is there.

MaccPA_3-1674743115782.png

 

 

 

However if I read the same table directly from SQL Server into Power BI the expansion works fine.

MaccPA_2-1674743032551.png

 

 

For security reasons we have to use Odata.  Can anyone help with what the problem is when using Odata?

 

Thanks

 

 

 

 

1 ACCEPTED SOLUTION

When you go to expand that Record column and see "No columns ...", click on "Load more" in bottom right. I was able to reproduce your issue and this worked.

 

ppm1_0-1675127813123.png

 

Pat

Microsoft Employee

View solution in original post

3 REPLIES 3
Macc-PA
Helper I
Helper I

Hi,

 

Thanks for getting back.  I have added the custom column. There are no empty rows and the count retruns 7 fields.

MaccPA_0-1675081429000.png

If I click on any of the records it shows the 7 individaul fields.

MaccPA_1-1675081601423.png

 

What else can I try?

When you go to expand that Record column and see "No columns ...", click on "Load more" in bottom right. I was able to reproduce your issue and this worked.

 

ppm1_0-1675127813123.png

 

Pat

Microsoft Employee
ppm1
Solution Sage
Solution Sage

I suspect the Record on your first row is empty, which is what is used to get the field names to expand. There are several ways to solve that. One is to add a custom column with the count of field names with the expression below and then sort by that column descending (and then expand it, and it should work).

 

= Record.FieldCount([Custom]) //replace Custom with your column name

 

Pat

Microsoft Employee

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors