Hi,
I'm trying to use the reporting API Odata endpoint from Excel.
I'm getting a http 406 error :
Response 406.0 from Timetracker server.
CorrelationId=3f7841b6-1e50-40a5-9aae-078f006f227d
AbsoluteUri=https://s-tfstimetracker-01p:8090/api/Syst%C3%A8me%20d%E2%80%99information/odata/TimeEntryExport?api-version=2.1
I use integrated Windows authentication.
I also tried to access the Odata endpoint from my browser and i get the same error.
The request headers sent are :
-
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
-
Accept-Encoding:gzip, deflate, br
-
Accept-Language:fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
-
Cache-Control:max-age=0
-
Connection:keep-alive
-
Host:s-tfstimetracker-01p:8090
-
Upgrade-Insecure-Requests:1
-
User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
The response headers received are :
-
api-deprecated-versions:1.0, 2.0
-
api-supported-versions:2.1
-
Cache-Control:no-cache
-
Content-Length:0
-
Date:Wed, 11 Jul 2018 11:36:08 GMT
-
Expires:-1
-
Persistent-Auth:true
-
Pragma:no-cache
-
Server:Microsoft-IIS/10.0
-
X-AspNet-Version:4.0.30319
-
X-Powered-By:ASP.NET
I don't see where the problem may be so your help will be appreciated :)
-
Hi!
Thank you for your message and my apologies for the issues you are experiencing.
It is a known issue, it is presented in the latest versions of Excel and Power BI and it was already reported to Microsoft.
Here is a related topic in Power BI
As a workaround, you could use the Advanced Query Editor in Excel:
Enter the function invocation by hand from looking at the function definition within the Excel advanced query editor view e.g.
Replace Odata url with correct one (without query like "api-version"="2.1")
---
let
Source = OData.Feed("Timetracker Odata url address", null, [Query=[#"api-version"="2.1"]]),
#"TimeExport_function (startDate as text, endDate as text, populateTopParentColumns as nullable logical, groupTimeByDateByUser as nullable logical, includeBillable as nullable logical) as table" = Source{[Name="TimeExport",Signature="function (startDate as text, endDate as text, populateTopParentColumns as nullable logical, groupTimeByDateByUser as nullable logical, includeBillable as nullable logical) as table"]}[Data],
#"Invoked FunctionTimeExport_function (startDate as text, endDate as text, populateTopParentColumns as nullable logical, groupTimeByDateByUser as nullable logical, includeBillable as nullable logical) as table1" = #"TimeExport_function (startDate as text, endDate as text, populateTopParentColumns as nullable logical, groupTimeByDateByUser as nullable logical, includeBillable as nullable logical) as table"("2018-01-01", "2018-12-31", null, null, null)
in
#"Invoked FunctionTimeExport_function (startDate as text, endDate as text, populateTopParentColumns as nullable logical, groupTimeByDateByUser as nullable logical, includeBillable as nullable logical) as table1"----
Let me know if this can help you.
Kind regards,
Andarth
Please sign in to leave a comment.
Comments
2 comments