Forum Discussion
Scheduled Refresh Issue with Value.NativeQuery
We have several reports that utililze Value.NativeQuery for explicit queries that up until now had supported scheduled refresh in the Power BI Service. We recently published a change to the report, unrelated to the native queries, and now the dataset can't be refreshed due to this error: You can't schedule refresh for this dataset because one or more sources currently don't support refresh. We stripped the report down to the base queries and discovered that as soon as we add a Value.NativeQuery query into the mix, this issue appears. If we remove it (or even disable it), the refresh feature reappears in the Power BI service.
Did something change in the service that I missed a notice about? Or is anyone else experiencing this?
I got notification from MS Support that the issue has been fixed in the service. I confirmed it works as the dataset now shows the refresh features (without requiring a republish) and an ondemand refresh works.
8 Replies
- GilbertQSuper User
Hi there, it would appear that something is not 100% right.
I do have a potential work around, which is working for my SQL Sources, which is to change it from Value.NativeQuery to the following:
Source = Sql.Database("SQLServerName", "DatabaseName" , [Query=" Select * from my Table ", CreateNavigationProperties=false])- bdunzweilerHelper I
GilbertQ Yes, using the inline query method does work for simple queries, but will require us to "stringify" the queries that have parameters. I would like to avoid that since I believe the intent of Value.NativeQuery is to allow parameterization. Thank you for the workaround suggestion, though.
I did speak with MS yesterday and they are researching. I was able to recreate the issue on a different Azure SQL Database server and in a fresh report.
It does seem like something changed on the service side. This only affects models that are republished. Existing reports on the service with the same types of queries are working fine. Needless to say, we are hesitant to publish any updates to other reports until this is resolved. We are having to resort to manual data refreshes in desktop and then publishing manually.
- GilbertQSuper UserSure thing, hopefully they will get it resolved.
Just a quick question how did you connect to your data in order to create the Value.NativeQuery from Get Data?