The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm learning semantic link and encounter an error with the code below:
'''''
Solved! Go to Solution.
Hi @Jeanxyz,
Thank you for reaching out to the Microsoft Fabric Forum Community.
The 202 Accepted status means your request to retrieve the semantic model definition has been received and is being processed asynchronously. It is not an error, but a confirmation that the process is in progress.
Please consider the following steps:
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi @Jeanxyz,
I wanted to check if you had the opportunity to review the information provided by @lbendlin. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
How can I see the result when the request is accepted? I used sleep() method, but still don't get results. My code above is complete, it will work on any Fabric notebook.
the 202 response shoud include a polling URL that you can use to probe the status of the request, and a download URL when the request is complete
Tried both url, it didn't provide any new information. Is it just me who encountered the API problem?
Hi @Jeanxyz,
We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.
Thank you.
Hi @Jeanxyz,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @Jeanxyz,
Thank you for reaching out to the Microsoft Fabric Forum Community.
The 202 Accepted status means your request to retrieve the semantic model definition has been received and is being processed asynchronously. It is not an error, but a confirmation that the process is in progress.
Please consider the following steps:
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi @v-saisrao-msft - I'm also facing similar issue. I got status_code 202 from this
client.post(f"/v1/workspaces/{workspaceId}/items/{itemId}/getDefinition")
Then I extracted x-ms-operation-id and Retry-After from the response. Waited till the Retry-After & polled this
requests.get(f"https://api.fabric.microsoft.com/v1/operations/{operation_id}", headers=headers)
I got the below mentioned response
{'status': 'Succeeded', 'createdTimeUtc': '2025-07-23T09:49:32.9426438', 'lastUpdatedTimeUtc': '2025-07-23T09:49:34.2863596', 'percentComplete': 100, 'error': None}
I did not get the actual definition for semantic model. Please help.
Aren't you supposed to get a request id with your 202, and then you need to present that ID in the polling calls and the retrieval call?
Thats what I did. Afterwhich upon getting status as 'Succeeded'. I again have to get the result using
requests.get(f"https://api.fabric.microsoft.com/v1/operations/{operation_id}/results", headers=headers)
Which I haven't done. Now I'm getting.
Ref: Long Running Operations - Get Operation Result - REST API (Core) | Microsoft Learn
User | Count |
---|---|
20 | |
13 | |
6 | |
3 | |
3 |
User | Count |
---|---|
49 | |
25 | |
17 | |
12 | |
12 |