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 September 15. Request your voucher.

Reply
jasonyeung87
Helper V
Helper V

found extra characters at the end of the JSON input error in Power BI DevOps report

Hi,

I have a Power BI report that queries DevOps for data to generate a report. It obtains the data by accessing the Graph URL and getting the JSON. The first line of the Power Query is:

Source = Json.Document(Web.Contents("https://vssps.dev.azure.com/" & Organization & "/_apis/graph/groups?api-version=6.0-preview.1")),

 

"Organization" is my company's organization. If I open the URL in the web browser, assuming the authentication is correct, the JSON file is returned. But when I try to refresh the data, I would somethines get the error:

[ValidateMarkupTags][ccon]DataFormat.Error: [ccon]We found extra characters at the end of the JSON input.[/ccon]. Value = [ccon]<[/ccon]. Position = [ccon]4[/ccon]. [/ccon].
The exception was raised by the IDbCommand interface. Table: AzureGroupsUsers.

 

Sometimes it would fix itself, but other times the problem would continue. I was wondering if there's a way to fix this problem? 

 

Jason

 

1 REPLY 1
lbendlin
Super User
Super User

Inspect the data returned by Web.Contents, and switch to Web.BrowserContents if that gives you more details.

 

As you can probably appreciate it is nearly impossible to help with API queries without access to said API  (which you may not be willing to provide for understandable reasons)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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