Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi every one,
I'm receiving 404 error code when i try to request the url to get some data from a partner.
The error:
DataSource.Error: Web.Contents failed to get contents from 'https://identity.za.mixtelematics.com/events/assets/from/20230522101010/to/20230524000000' (404): Not Found
Details:
DataSourceKind=Web
DataSourcePath=https://identity.za.mixtelematics.com/events/assets/from/20230522101010/to/20230524000000
Url=https://identity.za.mixtelematics.com/events/assets/from/20230522101010/to/20230524000000
The code:
let
baseUrl = baseURL,
relativePath = "/events/assets/from/20230522101010/to/20230524000000",
authToken = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", // Generated Token
headers = [
Authorization = "Bearer " & authToken,
#"Content-Type" = "application/json"
],
url = baseUrl & relativePath,
bodyJson = "{ ""EntityIds"": [
1364697368073863168, 1377075261210570752, 1377075986498007040, 1377076326538620928, 1359320615020978176, 1359320613981949952, 1359320616934739968, 1359320616019222528
],
""EventTypeIDs"": [ -9097769333405069134, -1712533633274024830, 6698868737266655739, -480217926216925926, -2551671922416006333, 2903108875463146536
]
}",
response = Web.Contents(url, [Headers = headers, Content = Text.ToBinary(bodyJson)]),
jsonResponse = Json.Document(response)
in
jsonResponse
Postman ScreenShoots:
Please, Help
What am I doing wrong?
User | Count |
---|---|
97 | |
76 | |
76 | |
47 | |
26 |