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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
VivekChadha
Frequent Visitor

How to get the big objects in custom visual? Primitive Value is unable to store more than 32767chars

How to get the big objects in custom visual? Primitive Value is unable to store more than 32767 characters.

I am using categoricalDataView.categories[infoFirstPosition].values[0] to get the data in custom visual, but its truncating the value to 32767 characters.

 

How we can overcome this?

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @VivekChadha,

This is a limitation of the data model in Power BI - text columns cannot return more than 32,766 characters, so if you'ew creating measures from these columns they will already be truncated before they hit the custom visual's data view. PrimitiveValue itself doesn't have a limit and supports regular JS strings.

If you wish to work around this in a custom visual, you will need to create a measure that combines multiple columns  of <= 32,766 characters and add that to the data view instead.

Chris Webb (Power BI CAT) has a series of blog posts beginning here that show ways to model around these limits. The second post in the series is specifically what you'll be needing to do in your data model, but it's worth reading the whole series to understand the limitations you need to work with in Power BI.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @VivekChadha,

This is a limitation of the data model in Power BI - text columns cannot return more than 32,766 characters, so if you'ew creating measures from these columns they will already be truncated before they hit the custom visual's data view. PrimitiveValue itself doesn't have a limit and supports regular JS strings.

If you wish to work around this in a custom visual, you will need to create a measure that combines multiple columns  of <= 32,766 characters and add that to the data view instead.

Chris Webb (Power BI CAT) has a series of blog posts beginning here that show ways to model around these limits. The second post in the series is specifically what you'll be needing to do in your data model, but it's worth reading the whole series to understand the limitations you need to work with in Power BI.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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