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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
summer025
Regular Visitor

PowerBIIntegration.Refresh() sometimes not work

What I do:

1. Create a PowerBI report in PowerBI Desktop, publish to Power BI service.

2. On Power BI service ,create a PowerApp embed in the PowerBI.

3. In PowerApp,there is a button which call PowerFlow to update data in SQLServer.

 

Expected:The PowerBI table should refresh


My problem is: On by button OnSelect event, I use 'PowerBIIntegration.Refresh();' to refresh the PowerBI table,sometimes successfuly refresh, but sometimes the table not refresh.

 

My Button OnSelect Event:
If(
Delete.Run(
param1,
param2
),
Notify(
"Records updated successfully ",
NotificationType.Success,
1500
),
Notify(
"Records not updated",
NotificationType.Error
)
);
PowerBIIntegration.Refresh();

1 REPLY 1
v-robertq-msft
Community Support
Community Support

Hi, @summer025 

I’m not familiar with Power App functions. If you use PowerBIIntegration.Refresh() function, you must use a source that supports DirectQuery and the data connection must be created using the DirectQuery method.

Here are some cases linked to this issue, you can take a look:

https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerBiIntegration-Refresh-is-not-working/td...

https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerBIntegration-Refresh-not-working/m-p/39...

For more useful help, I suggest you to open a case in the Power App community and @ some top users so that more experts can see it and help you in advance.

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors