cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vincent_1234
Helper I
Helper I

Maximum text length

Dear developers,

 

I've imported data from a plain sql server table. One column contains many characters, however according the documentation this should not be an issue.

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-data-types/#text-type

 

However when reading data, I am limited to 32766 characters, which is an issue for me. How could this be and how could I overcome this?

 

With kind regards

8 REPLIES 8
Anonymous
Not applicable

hi @vincent_1234

did you ever solve this issue?

thanks

Greg_Deckler
Super User IV
Super User IV

I wonder if this is a limitation of Power Query "M" versus the Desktop data model types. In other words, the data model Text type can theoretically support large amounts of text but the import process using Power Query is truncating it to 32,766 characters.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Hi  @Greg_Deckler ,

I think I am experiencing the scenario that you have just described. Power Query appears to truncate to 32K characters.

 

Is there a solution for this?

 

Thanks

I tried importing in Excel and it's the same, text is cut off.

However the Excel limitations are clear about this https://support.office.com/en-us/article/Excel-specifications-and-limits-16c69c74-3d6a-4aaf-ba35-e6e...

Could this be the same for PowerBI?

 

Power Query has the same specs as Power BI, with much larger "Maximum size of text in a preview cell", however this being an Excel plugin, how do they come up with that. The results are still limited to 32767 chars

https://support.office.com/en-us/article/Power-Query-specifications-and-limits-5fb2807c-1b16-4257-aa...

Hmm, I would post this as an issue and supply the references you cite and ask "What gives?".

 

https://ideas.powerbi.com/forums/360879-issues

 

All the references you cite indicate that you should be able to have more than 32,767 characters in a text cell so that says there is a bug or issue somewhere. Would be interested to hear if you get any feedback on it.

 


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




No answers yet, but it seems to be a kind of API limit.

The text in the cell is the actual size, however the data I receive in the custom visual is limited

Interesting, I'd be happy with 32k.  My text is being limited to only 1024.  Same whether I pull the data from a linked Excel sheet or through a .csv file.  Wanted to use power query to join two relatively short tables with text values and it's been a complete fiasco, since I handed the finished product off only to find out that the text columns were truncated.

 

What I've tried.

both Excel and csv

setting the type to Any and Text, neither of which made any difference.

 

 

vross
Frequent Visitor

Ok, this is difficult to debug, since the preview in the query editor only shows the first 1024 characters, but the issue may be limited to data from linked Excel tables.  So to duplicate, dump >1024 characters in a cell, create a table, "Add to Data Model", then "Close & Load Too..." back into a new sheet.

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors