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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Shafir
New Member

Scheduled refresh and performance optimization Greyed out!!!

Hello All, 

 

This morning, while attempting to manage our Data Marts, I encountered an unexpected issue. While I am able to manually refresh the Data Mart, I am unable to activate the scheduled refresh option. This discrepancy has led me to believe that there may have been alterations to the Data Mart settings, the Data Mart setting menu has changed.

Despite conducting thorough checks, I can confirm that neither a gateway issue nor a credential problem is responsible for this anomaly.

 

It's worth noting that our Data Marts are typically executed on a monthly basis, and I can confirm that we did not encounter any such issues during the previous month's operation.

 

Shafir_0-1716907650807.png

 

I would greatly appreciate any insights or suggestions you may have regarding this matter. 

 

 

1 ACCEPTED SOLUTION
v-jtian-msft
Community Support
Community Support

Hi,@Shafir 
I am glad to help you.

Unfortunately, in my testing, I found that my previous bed build of datemart was also unable to configure a scheduled refresh

This issue has been confirmed as a known issue internally.

Other users are also experiencing this issue

Please be patient to wait for fixing. If there is any news, I will update it here

Thank you for your understanding.

Below I provide some possible alternatives:

  1. Use API to control refreshing the semantic model
    Enhanced refresh with the Power BI REST API - Power BI | Microsoft Learn
    You can try to refresh the semantic model using the powershell command

To do this you need to install the powershell module that manages power BI.

Here are some common power shell commands that you may find useful

install

Install-Module -Name MicrosoftPowerBIMgmt   

install different modules

Install-Module -Name MicrosoftPowerBIMgmt.Workspaces

login power BI service

Connect-PowerBIServiceAccount

get workspace

Get-PowerBIWorkspace

get workspace info

Get-PowerBIWorkSpace -id "your workspaceID"

get semantic model by workspaceId

Get-PowerBIDataset -WorkspaceId " your workspaceID "

refresh semantic model

$workspaceId = " your workspaceID "

$semanticmodelId = "your semanticmodelID"

$refreshBody = [PSCustomObject]@{ type = "Full"; startTime = "2024-05-05T12:00:00Z" } | ConvertTo-Json

Invoke-PowerBIRestMethod -Url "groups/${workspaceId}/datasets/${semanticmodelId}/refreshes" -Method POST -Body $refreshBody

To be able to remotely manipulate the workspace, you need to enable XMLA endpoints
url:Semantic model connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft...

  1. recreate a normal semantic model based on datamart's semantic model

Perform a schedule refresh on this semantic model (if feasible)
Here are my test results:

vjtianmsft_0-1716958815639.png

The previous setting screen is as follows:

vjtianmsft_1-1716958833638.png

 

But now it's come to this:

vjtianmsft_2-1716958845086.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jtian-msft
Community Support
Community Support

Hi,@Shafir 
I am glad to help you.

Unfortunately, in my testing, I found that my previous bed build of datemart was also unable to configure a scheduled refresh

This issue has been confirmed as a known issue internally.

Other users are also experiencing this issue

Please be patient to wait for fixing. If there is any news, I will update it here

Thank you for your understanding.

Below I provide some possible alternatives:

  1. Use API to control refreshing the semantic model
    Enhanced refresh with the Power BI REST API - Power BI | Microsoft Learn
    You can try to refresh the semantic model using the powershell command

To do this you need to install the powershell module that manages power BI.

Here are some common power shell commands that you may find useful

install

Install-Module -Name MicrosoftPowerBIMgmt   

install different modules

Install-Module -Name MicrosoftPowerBIMgmt.Workspaces

login power BI service

Connect-PowerBIServiceAccount

get workspace

Get-PowerBIWorkspace

get workspace info

Get-PowerBIWorkSpace -id "your workspaceID"

get semantic model by workspaceId

Get-PowerBIDataset -WorkspaceId " your workspaceID "

refresh semantic model

$workspaceId = " your workspaceID "

$semanticmodelId = "your semanticmodelID"

$refreshBody = [PSCustomObject]@{ type = "Full"; startTime = "2024-05-05T12:00:00Z" } | ConvertTo-Json

Invoke-PowerBIRestMethod -Url "groups/${workspaceId}/datasets/${semanticmodelId}/refreshes" -Method POST -Body $refreshBody

To be able to remotely manipulate the workspace, you need to enable XMLA endpoints
url:Semantic model connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft...

  1. recreate a normal semantic model based on datamart's semantic model

Perform a schedule refresh on this semantic model (if feasible)
Here are my test results:

vjtianmsft_0-1716958815639.png

The previous setting screen is as follows:

vjtianmsft_1-1716958833638.png

 

But now it's come to this:

vjtianmsft_2-1716958845086.png

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.