Categories: SSAS

Unable to validate source query in Tabular Editor

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 😉


------------------------------------------------
Do you like this blog post? You can thank me by buying me a beer 🙂
Koen Verbeeck

Koen Verbeeck is a Microsoft Business Intelligence consultant at AE, helping clients to get insight in their data. Koen has a comprehensive knowledge of the SQL Server BI stack, with a particular love for Integration Services. He's also a speaker at various conferences.

Recent Posts

Techorama 2024 – Slides

You can find the slidedeck for my Techorama session "Microsoft Fabric for Dummies" on github.

53 mins ago

Webinar – Microsoft Fabric for Dummies

On Wednesday May 15th 2024 I will give a free webinar on MSSQLTips.com about Microsoft…

2 days ago

Get row counts of all tables in a Microsoft Fabric warehouse

I loaded some built-in sample data from Wide World Importers into a Fabric warehouse. You…

6 days ago

dataMinds Saturday 2024 – Session Materials

It was great being at dataMinds Saturday 2024 this past weekend. A great crowd of…

1 week ago

Check your regions people

Today I was having a nice discussion with some colleagues about Fabric and pricing/licensing came…

3 weeks ago

Book Review – Deciphering Data Architectures

I recently purchased and read the book Deciphering Data Architectures - Choosing Between a Modern…

1 month ago