Closed zhiweiv closed 2 days ago
Thanks for your comment, @zhiweiv. This issue has been assigned to the doc author for review.
@KesemSharabi - assigning this to you for review and verification. I think the example shows just the first line then has text that explains the rest of the response. We may need to reformat to make that clear
Adding some more details, the document says there is Location value in response header which is in URL format, we need to extract the requestId from the Location value.
The real response is that RequestId is returned in header directly, and there is no Location value returned.
Hi @zhiweiv,
When triggering an enhanced refresh the two headers are being returned, otherwise they aren’t returned. According to the documentation 'An enhanced refresh is triggered only if a request payload other than notifyOption is set.' - perhaps add something like: "retryCount": 3
to your request?
Hope this helps,
Kesem
Many thanks, now things get clear.
Standard refresh return only one header: RequestId. Enhanced refresh return both RequestId and Location.
The document https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset-in-group#example-of-refreshing-a-dataset only lists Location in sample response which is a bit confusing.
In my case RequestId is more handful, since I use Power BI SDK to query refresh status by request id. I can get request id directly from response header RequestId without parsing URL of Location.
Hi @zhiweiv - I'm glad this is clear now. Thanks for engaging with us!
In my testing
Request
Response
It is completely different with https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh#response.
The content is wrong also in https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset-in-group#response.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.