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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
KJanssens
Helper II
Helper II

OData JSON error (same query works in Excel but not in PowerBI)

I have the following query in Excel (source url a bit obfuscated):

 

let
Source = OData.Feed("https://xxx.timehub.7pace.com/api/odata", null, [Implementation="2.0"]),
#"TimeExport_function" = Source{[Name="TimeExport"]}[Data],
#"Invoked FunctionTimeExport_function" = #"TimeExport_function"("2019-01-01", "2020-01-01", false, false, true)
in
#"Invoked FunctionTimeExport_function"

it works fine, I get all data I need

 

However, when I use the same query in Power BI Desktop (Version: 2.67.5404.801 64-bit) it throws the following error:

 

DataSource.Error: OData: Invalid JSON. Unexpected end of input was found in JSON content. Not all object and array scopes were closed.
Details:
    DataSourceKind=OData
    DataSourcePath=https://xxx.timehub.7pace.com/api/odata/TimeExport(startDate='2019-01-01',endDate='2020-01-01',populateTopParentColumns=false,groupTimeByDateByUser=false,includeBillable=true)

Why is PowerBI throwing this error and Excel not?

Thanks,

Koen

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @KJanssens 

If you only have this issue for Power BI, you'd better create a support ticket in Power BI Support to get further help.

Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

 

 

submit a support ticketsubmit a support ticket

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I do not have a Pro license, so I cannot make a support ticket... 

Regarding that, as a consultant, I am helping other companies with their BI needs. Since we do not need BI within our own company, iss there any way I can get a developer license of Power BI Pro (similar to a SQL Server Developer license)?

Thanks,

Koen

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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