When you have a very large fact table in Analysis Services Tabular, you most likely have it partitioned. Suppose you are making some changes to the underlying source of the table and you hit “refresh table metadata” to add some new columns for example.
What happens behind the scenes is that Tabular Editor will run the query from the first partition against the source. If this is SQL Server, it will surround the query with SET FMTONLY ON to return only metadata. However, if for whatever reason this query takes a long time, you might encounter a timeout. This throws the error “Unable to validate source query”.
Not good. A quick fix is to go to your first partition, edit the query and just add WHERE 1 = 0 to the end of the query. (Note that I’m using the legacy sources, meaning I’m not using Power Query to extract data. But you should be able to add such a filter there as well.)
Now the table metadata should refresh instantaneously. I’ve logged a bug for Tabular Editor here. Just don’t forget to remove your filter from the partition when you’re done 😉
You can find all the session materials for the presentation "Indexing for Dummies" that was…
The slidedeck and the SQL scripts for the session Indexing for Dummies can be found…
You can find the slides of my session on the €100 DWH in Azure on…
I've used Logic Apps a couple of times over the past years for simple workflows,…
I'm giving two online sessions soon on virtual events that are free to attend. The…
I wanted to try out the new JSON index which is for the moment only…