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