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
HaiVN
Helper III
Helper III

Get data - The length of the string exceeds the value specified for the maxJsonLength property

Hello Power BI Community,

 

I have tried to get data from web ( without API)  and got error message : "An error occurred while serializing or deserializing using the JSON JavaScriptSerializer. The length of the string exceeds the value specified for the maxJsonLength property" Can anyone please help me to overcome this problem?

Thanks!

2 REPLIES 2
khajahussain
New Member

The error you are seeing is because, you are trying to load data which is kind of too large for the default limit in Power BI's web connector. try to reduce the data size. Use query string to fiter our unwanted data. You can paste your JSON into a tool like JSON Reader tool to make sure it's valid and to preview its structure.

PhilipTreacy
Super User
Super User

Hi @HaiVN 

So you are receiving JSON?  As you are not doing this via API it must be a regular HTTP request?  If so, try just making the HTTP request in your browser and see what is returned.

Check the returned JSON at either of these sites

JSON Validator - Free Tool To Validate JSON Code Online (jsononline.net)

JSON Validator | Best online JSON checker | JSON Validator (jsonparser.org)

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.