Data Readiness Troubleshooting & Remediation

When Rule Prerequisite Readiness reports Insufficient Data or Partial Data Fidelity, expand Prerequisite Attributes on the rule card to see which prerequisite failed. Each (i) icon links directly to the matching remediation section below.


Fixing Harvester WHERE Clause

Symptom

bis.PhysicalElement.whereClause shows '0 elements matched' (MISSING IN SCHEMA / 0%), and Candidates is 0.

Why It Happens

Every rule in MongoDB (cc_core.rules) defines a harvester.whereClause ECSQL filter that selects candidate elements from bis.PhysicalElement (aliased as e). If your iModel uses different BIS categories, discipline model names, or ECClasses than the baseline rule filter (for example, OpenRail / Network Rail categories instead of standard IFC classes), the query matches zero elements.

How to Inspect Your iModel

Open Property Analysis → iModel Console (SQL) in BIM Checker (or the Bentley iModel Console) and run:

SELECT
  m.UserLabel AS modelName,
  c.CodeValue AS categoryName,
  ec_className(e.ECClassId, 's.c') AS ecClass,
  COUNT(*) AS cnt
FROM bis.PhysicalElement e
JOIN bis.Model m ON m.ECInstanceId = e.Model.Id
JOIN bis.Category c ON c.ECInstanceId = e.Category.Id
JOIN bis.SpatialIndex sp ON sp.ECInstanceId = e.ECInstanceId
GROUP BY m.UserLabel, c.CodeValue, ec_className(e.ECClassId, 's.c')
ORDER BY cnt DESC

How to Fix It in BIM Checker

  1. Open Settings → Validation Configurations and click Edit on your active configuration (e.g., network_rail).
  2. On the Rules tab, click the Configure / Override (sliders) icon next to the rule (e.g., BS_EN_50122_PANTOGRAPH_350).
  3. Under Harvester Scope (ECSQL), edit whereClause (ECSQL Filter) to match the exact Category, Model, or ECClass returned by your inspection query. Example:
    e.Category.Id IN (
      SELECT ECInstanceId FROM bis.Category
      WHERE CodeValue LIKE '%OLE%' OR CodeValue LIKE '%Bridge%' OR CodeValue LIKE '%Structure%'
    )
    
    (Avoid using 1=1 on large federated iModels—it includes non-spatial sub-elements without bis.SpatialIndex entries.)
  4. Click Apply to Configuration Draft, then click Update Configuration to persist the override to MongoDB (cc_core.configs.ruleOverrides).
  5. Return to Data Readiness and click Re-evaluate.

Fixing Missing Spatial Index

Symptom

bis.SpatialIndex.SpatialIndex shows 0% (e.g. 24/24193 (0%)) or MISSING IN SCHEMA, resulting in high Deficient counts.

Why It Happens

  1. Overly broad whereClause (most common): If whereClause is 1=1, the harvester pulls in thousands of non-spatial bis.PhysicalElement containers, assemblies, or metadata sub-elements that do not carry 3D bounding boxes in bis.SpatialIndex.
  2. Missing 3D geometry on export: Elements were authored or exported without 3D solid/mesh geometry, or the iModel connector did not populate bis.SpatialIndex.

How to Fix It

  1. Tighten whereClause first: Scope the rule to physical discipline categories that actually contain 3D geometry (see Fixing Harvester WHERE Clause), or add a spatial-index existence filter:
    e.ECInstanceId IN (SELECT ECInstanceId FROM bis.SpatialIndex)
    
  2. Verify geometry export: If genuine physical assets (masts, parapets, decks, doors) are missing from bis.SpatialIndex, re-export the source IFC/DGN/Revit model with 3D geometry enabled and synchronize a new iModel changeset.

Fixing Element Classification and Labels

Symptom

bis.PhysicalElement.UserLabel shows MISSING IN SCHEMA or low population.

Why It Happens

Either zero candidate elements matched whereClause (fix whereClause first), or candidate elements have empty UserLabel values and generic ECClassId types, making audit defect reports hard to trace back to authoring models.

How to Fix It

  1. Confirm Candidates > 0 by resolving Fixing Harvester WHERE Clause.
  2. In your authoring tool (Revit, OpenRail, Civil 3D, MicroStation), ensure physical elements carry meaningful UserLabel / CodeValue names and IFC/Uniclass classifications before publishing to the iModel.

Fixing Missing Track Alignment

Symptom

bis.Alignment.Alignment shows Missing (0/1 (0%)) on linear rail rules (BS_EN_50122_OCLZ_CCZ_HOOD, BS_EN_50122_PANTOGRAPH_350, NETWORK_RAIL_GAUGE_450).

Why It Happens

Rail clearance and gauge checks require a 3D linear reference centerline. BIM Checker checks:

  1. Imported alignment coordinates (centerlinePoints) on the bound Asset Preset / iModel Override, then
  2. Native bis.Alignment / RoadRailAlignment / track elements in the iModel matching the Alignment Discovery Filter.

How to Fix It

  1. Click Open Asset & Context Studio (or go to Settings → Asset & Context Configuration Studio).
  2. Switch Target Context Level to iModel Container Override and open the General & Infrastructure tab.
  3. Choose one of the two options:
    • Configure Alignment Discovery Filter (ECSQL WHERE): For Bentley OpenRail/Civil iModels storing alignments in RoadRailAlignment, set:
      e.ECClassId IS (RoadRailAlignment.HorizontalAlignment)
      
      Or for category/label matching:
      c.CodeValue LIKE '%Alignment%' OR e.UserLabel LIKE '%Alignment%'
      
    • Import Alignment (.json / .geojson): Upload a 3D LineString GeoJSON or strict alignment JSON file in the iModel's project CRS.
  4. Click Save Override for IMODEL and re-run Data Readiness.

Fixing Missing IFC Properties

Symptom

An IFC Property Set attribute (e.g., Pset_DoorCommon.FireRating, Qto_SpaceBaseQuantities.GrossFloorArea, Pset_SpaceCommon.Reference) shows MISSING IN SCHEMA or Missing IPP.

Why It Happens

The iModel either does not contain that IFC Property Set (Pset_* / Qto_*), or the property is stored under a custom/vendor property name (e.g., Revit native parameters instead of IFC Psets).

How to Fix It

  1. Click Property Mappings on the Data Readiness card to open the Property Mapping Studio.
  2. Map the canonical statutory attribute to the actual property expression present in your iModel (at iModel, iTwin, or Domain scope).
  3. If the property does not exist anywhere in the iModel, add the required parameter in your BIM authoring tool and synchronize an updated changeset.