Perspectives Should Contain Objects
Overview
This best practice rule identifies perspectives that don't contain any visible tables. Empty perspectives serve no purpose and should be removed.
- Category: Maintenance
- Severity: Low (1)
Applies To
- Perspectives
Why This Matters
- User confusion: Empty perspectives appear in client tools but show no data
When This Rule Triggers
The rule triggers when a perspective has no visible tables:
Model.Tables.Any(InPerspective[current.Name]) == false
How to Fix
Automatic Fix
This rule includes an automatic fix that deletes the empty perspective:
Delete()
To apply:
- Run the Best Practice Analyzer
- Select the empty perspectives
- Click Apply Fix
Manual Fix
- In TOM Explorer, expand the Perspectives node
- Right-click the empty perspective
- Select Delete
Common Causes
Cause 1: Removed All Tables
All tables removed from perspective without deleting it.
Cause 2: Incomplete Configuration
Perspective created during design but never populated.
Example
Before Fix
Perspectives:
- Sales (contains: Sales, Customer, Product tables) ✓
- Marketing (contains: NO TABLES) ✗
After Fix
Perspectives:
- Sales (contains: Sales, Customer, Product tables) ✓
Compatibility Level
This rule applies to models with compatibility level 1200 and higher.