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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AndyBrew
Regular Visitor

Error when consuming JSON Form Web data source

Hi,

Just testing Power BI's ability to connect to a From Web Json data source and all of a sudden I'm getting the error: -

"We found extra characters at the end of JSON input."

 

This is my raw Json exactly as it is returned from my Test API: -

 

 

{"Table1":[{"Id": "1"},
{"Id":"2"},
{"Id":"3"}
],"Table2":[{"Id":"3"}
,{"Id":"4"}
,{"Id":"5"}
]}

 

 

 This is the error from the trace dump: -

 

 

DataMashup.Trace Warning: 24579 : {"Start":"2020-02-18T09:08:03.2333789Z","Action":"StreamMessenger/Read","Exception":"Exception:\r\nExceptionType: System.IO.EndOfStreamException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\r\nMessage: Unable to read beyond the end of the stream.\r\nStackTrace:\n   at System.IO.__Error.EndOfFile()\r\n   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)\r\n   at System.IO.BinaryReader.ReadInt32()\r\n   at Microsoft.Mashup.Evaluator.MessageSerializer.Deserialize(BinaryReader reader)\r\n   at Microsoft.Mashup.Evaluator.StreamMessenger.Read()\r\n\r\n\r\n","ProductVersion":"2.76.5678.782 (19.12)","ActivityId":"00000000-0000-0000-0000-000000000000","Process":"Microsoft.Mashup.Container.NetFX45","Pid":35344,"Tid":1,"Duration":"00:00:00.0009399"}

 

 

 Whilst import requesting the data I get the following: - 

Json-Error

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi , @AndyBrew 

 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or your reply as Answered to close this thread?

 

Best Regards,
Community Support Team _ Eason

v-easonf-msft
Community Support
Community Support
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @AndyBrew,

 

is there a non-printable character at the end?

Try Text.Trim to remove such characters

https://docs.microsoft.com/en-us/powerquery-m/text-trim

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.