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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power Query Editor Restricted at 1000 Rows - Doesn't pull in new arrays added to JSON

Hello, I am currently pulling in JSON data into PowerBI. Since the early this year we have added 2 new arrays to the data structure, which are way past the 1000 row limitation that the wizard uses. When I try to manually add the new arrays in the Power Query advanced editor, I get the following error:

Expression.Error: We expected newColumnNames to have the same number of items as fieldNames.
Details:
[List

 

Is there a way around this?

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Not sure if my understanding is correct, but sometimes PQ autogenerates code that requires manual ammendments to typed in twice. So if you expand a record column for example, the following code will be generated:

 

Table.ExpandRecordColumn(#"Filtered Rows", "Value", {"streetAddress", "city", "state", "postalCode"}, {"streetAddress", "city", "state", "postalCode"})

 

The list in the last parameter is optional (new column names, if needed). So you can safely omit it if you want to stick with the original field names. 

BUT if you include more columns to expand, you have to add a name for those columns as well in the last parameter:

 

Table.ExpandRecordColumn(#"Filtered Rows", "Value", {"streetAddress", "city", "state", "postalCode", "country"}, {"streetAddress", "city", "state", "postalCode", "country"})

 

Otherwise your error message will be shown.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

2 REPLIES 2
ImkeF
Community Champion
Community Champion

Not sure if my understanding is correct, but sometimes PQ autogenerates code that requires manual ammendments to typed in twice. So if you expand a record column for example, the following code will be generated:

 

Table.ExpandRecordColumn(#"Filtered Rows", "Value", {"streetAddress", "city", "state", "postalCode"}, {"streetAddress", "city", "state", "postalCode"})

 

The list in the last parameter is optional (new column names, if needed). So you can safely omit it if you want to stick with the original field names. 

BUT if you include more columns to expand, you have to add a name for those columns as well in the last parameter:

 

Table.ExpandRecordColumn(#"Filtered Rows", "Value", {"streetAddress", "city", "state", "postalCode", "country"}, {"streetAddress", "city", "state", "postalCode", "country"})

 

Otherwise your error message will be shown.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

Thank you this worked

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.