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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Visual error, responds HTTP 400, bad request when selectionId's exceeds 120 in count

When selectionId's count exceeds 120, visual throws an error,

 

"Couldn't load the data for this visual
Couldn't retrieve the data for this visual. Please try again later.
Please try again later or contact support. If you contact support, please provide these details.
Http Status Code400
Activity ID4b27912d-0319-4277-a24c-c250894aecac
Correlation ID862776de-dbc8-4b6c-3255-2f3c91746581
Request ID1fb198f8-f7d0-e066-285f-023a8690bf12
TimeWed Apr 10 2019 12:24:28 GMT+0530 (India Standard Time)
Version13.0.9059.132

 

Code: 

typeof selectionId is an Array, with length greater than 120.

selectionManager.select(selectionIds, false);
 
note: It happens the same with second argument as 'true'.
 
2 REPLIES 2
Anonymous
Not applicable

 
 
https://github.com/gsmuralee/selectionId/blob/master/SelectionId_issue.pbix is the sample application, demonstrating the issue.
 
It happens only on browser, works fine on powerbi desktop

Hello,

 

Ther are two moments:

1.  I dislike how you build selection Id here because you create it twice but it should be only like following:

host.createSelectionIdBuilder()
            .withCategory(category, i)
            .createSelectionId()

And use index as a second parameter please, don't leave it 0.

 

2 I cannot run your visual because I get the errors during building process so, I just cannot check it myself, please fix it.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.