web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with Notificatio...
Power Automate
Unanswered

Issue with Notification on Semantic Model Refresh Failure

(1) ShareShare
ReportReport
Posted on by 2
Hi Team,

I’m currently building an auto-refresh process for my semantic model, and as part of that, I’d like to include a notification in case the refresh fails.

I’ve already configured the "Run After" settings, but I didn’t receive any notification when the semantic model refresh failed.

After investigating, I found that the "Run After" configuration only checks whether the refresh dataset step was successful—it doesn’t validate the actual refresh status from the Power BI workspace.

This behavior is similar to Dataflows, but unlike semantic models, Dataflows have a trigger that can detect when a refresh is completed.

I’m hoping to get some guidance or suggestions on how to handle this scenario. Thank you in advance for your help!
 
Best regards,
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,827 Super User 2025 Season 2 on at
     

    You're absolutely right in observing that the "Run After" configuration in Power Automate only checks whether the refresh request was successfully sent, not whether the semantic model actually refreshed successfully. This is a known limitation when working with Power BI semantic models.


    ✅ Recommended Solution: Use Power BI REST API to Check Refresh Status

    To reliably detect whether a semantic model refresh succeeded or failed, you can use the Power BI REST API:

    🔹 Step 1: Trigger the Refresh

    Use the POST /refreshes endpoint:

    POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes
    

    This initiates the refresh asynchronously.

    🔹 Step 2: Poll for Refresh Status

    Use the GET /refreshes endpoint to check the status:

    GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes?$top=1
    

    This returns the latest refresh attempt, including:

    • status: Completed, Failed, or Unknown
    • startTime, endTime
    • serviceExceptionJson (if failed)

    You can then use a condition in Power Automate to send a notification if the status is "Failed".

     


    🛠️ How to Implement in Power Automate

    1. Trigger the refresh using HTTP action.
    2. Wait/pause for a few minutes using Delay action.
    3. Call the GET refresh status API.
    4. Parse the response using Parse JSON.
    5. Add a condition:
      • If status = "Failed" → Send email notification.
      • Else → Continue or log success.

    🔐 Authentication Notes

    To use the Power BI REST API:

    • Register an Azure AD app.
    • Grant it Dataset.ReadWrite.All permissions.
    • Use OAuth 2.0 client credentials flow to get a token.

    🧠 Bonus Tip

    If you're using Microsoft Fabric Data Pipelines, you can also integrate refresh status checks directly into the pipeline using web activities.

     

    🏷️ Tag me if you have any further questions or if the issue persists.
    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.
    ❤️ Give it a Like if you found the approach useful in any way.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard