Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Parameter notifyOption fails by refreshing dataset via API

Hello,

 

We are refreshing our datasets in Power BI by using the rest API.  This works fine.  But now we want to receive notifications by email when the refresh from the dataset fails.

 

Therefor we tried to add the following json in de request body:

 

{
  "NotifyOption""MailOnFailure"
}
 
But if we do so, the request fails (also using postman). We get the following error:
 
{
    "error": {
        "code""InvalidRequest",
        "message""NotifyOption parameter value is not supported for application requests",
        "target""Parameter value 'MailOnFailure' is invalid for application requests"
    }
}
 
If we change the NotifyOption to "NoNotification", we don't get an error anymore.
 
We are refreshing with a Power BI service principal account, which has the following permissions.
 
nneirync_0-1646753385077.png

 

 
Does anyone know how to fix this error?
 
Thanks,
 
Nele
 
1 REPLY 1
nitishsh91
Solution Supplier
Solution Supplier

Hi @Anonymous 

 

You can call below API to find the dataset refresh history:

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

 

That's what we use to find out the refresh history post triggering the dataset refresh via API.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.