PlantOps BI

PBIR Report Won’t Import into Fabric: Missing definition/version.json

Skip to the fix

Symptom

A report written as PBIR files never imported into the Fabric workspace from Git. I did not record an exact error string for this one, so there is none to quote.

Cause

The script that generated the report left out files and fields the import requires:

  1. definition/version.json was missing. It holds the schema reference for version metadata and a version value of 2.0.0. The version has to match the pattern X.Y.0.
  2. report.json was missing layoutOptimization, which should be "None".
  3. report.json was missing reportVersionAtImport, which I set to "5.55". It is needed on both the baseTheme and the customTheme entries.

Fix

Make the generator write definition/version.json and add both fields to report.json. I fixed it in the generator, not by hand, so every report it emits has them.

How I Proved It

With those changes committed and synced, the report imported and rendered correctly in the workspace: title band, cards, charts and matrix all laid out.

One more thing from the same deploy. The Git update hit a workspace conflict. I accepted the incoming change, so Git wins. I ticked the box about items that may be deleted, then chose Merge and Update.