PBIR Report Won’t Import into Fabric: Missing definition/version.json
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:
definition/version.jsonwas missing. It holds the schema reference for version metadata and aversionvalue of2.0.0. The version has to match the patternX.Y.0.report.jsonwas missinglayoutOptimization, which should be"None".report.jsonwas missingreportVersionAtImport, which I set to"5.55". It is needed on both thebaseThemeand thecustomThemeentries.
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.