Skip to content

Check Tabular Model Status #1368

Sep 2, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Could you clarify what you mean by "data model status is invalid"?

Many objects in the model have a State property. It is simple to check if those objects are all in the Ready state:

var relationshipsReady = Model.Relationships.All(r => r.State == ObjectState.Ready);
var partitionsReady = Model.AllPartitions.All(r => r.State == ObjectState.Ready);
var measuresReady = Model.AllMeasures.All(r => r.State == ObjectState.Ready);
var columnsReady = Model.AllColumns.All(r => r.State == ObjectState.Ready);
var hierarchiesReady = Model.AllHierarchies.All(r => r.State == ObjectState.Ready);
var calculationItemsReady = Model.AllCalculationItems.All(r => r.State == ObjectState.Ready);

var modelReady = 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@muhssamy
Comment options

Answer selected by muhssamy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants