Forum Discussion

powerbiexpert22's avatar
powerbiexpert22
Icon for Impactful Individual rankImpactful Individual
18 days ago
Solved

Semantic model got corrupted

there is a semantic model which has got corrupted in power bi service, i do not have the copy of semantic model, i used the version history to restore the semantic model. the workspace is hosted on premium capacity , is this is correct way to restore? , will i loose anything by using this method, is there a another way to restore?

  • Hi powerbiexpert22​,

    Yes, restoring the semantic model through Version History was a valid recovery approach. Microsoft now specifically documents Version History as the recommended first recovery option when a semantic model becomes corrupted and is loaded in metadata-only mode.

    There are a few details I would keep in mind.

    Version History is not limited to web edits. Once Version History has been initialized for the semantic model, publishing a PBIX from Power BI Desktop or uploading a PBIX also captures the semantic model state immediately before that publish.

    Microsoft documents that each saved version contains the semantic model metadata and data.

    However, I would not treat it as full source control. Power BI currently retains up to five versions, and restoring versions older than 14 days is officially unsupported. Microsoft recommends Git integration when you need longer-term source control and more complete version history.

    For RLS, I would distinguish the role definition from the member assignments.

    Microsoft documents that RLS roles and rules are defined in the semantic model, while users and groups are assigned to those roles separately in the Power BI Service.

    Because Version History stores the semantic model metadata, the RLS role definitions from the restored version should be part of the model restoration. However, I do not see Microsoft documenting the Service-side RLS member assignments as versioned content, so I would explicitly open the semantic model Security page after the restore and verify the role memberships.

    I would do the same for the Power BI app configuration. App audience mappings are configured at the app/service level rather than inside the semantic model itself, so I would not expect Version History to act as a restore mechanism for app audiences. Verify the app audience and any relevant report/semantic-model permissions separately after recovery.

    One other important step is to refresh the semantic model after restoring it. Microsoft notes that the data contained in the restored version can be older than the latest source data.

    Since your workspace is on Premium capacity, you may also want to configure Power BI Premium Backup and Restore for future disaster recovery. Microsoft supports XMLA-based semantic model backups to ADLS Gen2 specifically for scenarios such as corruption or loss.

    For longer-term development protection, I would also keep the semantic model in PBIP/Git rather than relying only on Version History.

    So in your current situation, I would:

    • restore the known-good version
    • refresh the semantic model
    • verify RLS roles and Service-side role membership
    • verify app audience and semantic-model permissions
    • test the reports before considering the recovery complete

    AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.

6 Replies

  • Hi powerbiexpert22​ - Yes, if the semantic model was corrupted and you had a valid version from before the corruption, restoring it through Semantic model Version history is a valid and Microsoft-documented recovery approach.                                                                                                    Since your workspace is hosted on Premium capacity, it is also important to distinguish Version history, Premium Backup/Restore, and PBIP + Git, as each serves a different purpose in recovery, backup, and source control.

    https://learn.microsoft.com/en-us/power-bi/transform-model/service-semantic-model-version-history

    Power BI Desktop-Projekte (PBIP) - Power BI | Microsoft Learn

    Hope this helps.

  • powerbiexpert22's avatar
    powerbiexpert22
    Icon for Impactful Individual rankImpactful Individual

    Hi rajendraongole1​ ,

    will it maintain change history for published semantic models from power bi desktop or only maintain changes for online edits of semantic model in power bi service?

    will it restore audience mapping for apps and RLS configuration for report in power bi service or i have to recreate or reassign it to users?

  • Version history was valid. PBIX publishing captures the pre-publish model version, so it isn’t limited to web edits. RLS roles are published with the model, but members are assigned in the Service. App audiences and RLS member assignments aren’t listed as versioned content, so I’d verify both after restore, then refresh.

  • v-kathullac's avatar
    v-kathullac
    Icon for Community Support rankCommunity Support

    Hi powerbiexpert22​ ,

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

    Regards,
    Chaithanya

  • v-kathullac's avatar
    v-kathullac
    Icon for Community Support rankCommunity Support

    Hi powerbiexpert22​ ,

    As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

    Regards,
    Chaithanya

  • ShivekMaharaj's avatar
    ShivekMaharaj
    Icon for Community Champion rankCommunity Champion

    Hi powerbiexpert22​,

    Yes, restoring the semantic model through Version History was a valid recovery approach. Microsoft now specifically documents Version History as the recommended first recovery option when a semantic model becomes corrupted and is loaded in metadata-only mode.

    There are a few details I would keep in mind.

    Version History is not limited to web edits. Once Version History has been initialized for the semantic model, publishing a PBIX from Power BI Desktop or uploading a PBIX also captures the semantic model state immediately before that publish.

    Microsoft documents that each saved version contains the semantic model metadata and data.

    However, I would not treat it as full source control. Power BI currently retains up to five versions, and restoring versions older than 14 days is officially unsupported. Microsoft recommends Git integration when you need longer-term source control and more complete version history.

    For RLS, I would distinguish the role definition from the member assignments.

    Microsoft documents that RLS roles and rules are defined in the semantic model, while users and groups are assigned to those roles separately in the Power BI Service.

    Because Version History stores the semantic model metadata, the RLS role definitions from the restored version should be part of the model restoration. However, I do not see Microsoft documenting the Service-side RLS member assignments as versioned content, so I would explicitly open the semantic model Security page after the restore and verify the role memberships.

    I would do the same for the Power BI app configuration. App audience mappings are configured at the app/service level rather than inside the semantic model itself, so I would not expect Version History to act as a restore mechanism for app audiences. Verify the app audience and any relevant report/semantic-model permissions separately after recovery.

    One other important step is to refresh the semantic model after restoring it. Microsoft notes that the data contained in the restored version can be older than the latest source data.

    Since your workspace is on Premium capacity, you may also want to configure Power BI Premium Backup and Restore for future disaster recovery. Microsoft supports XMLA-based semantic model backups to ADLS Gen2 specifically for scenarios such as corruption or loss.

    For longer-term development protection, I would also keep the semantic model in PBIP/Git rather than relying only on Version History.

    So in your current situation, I would:

    • restore the known-good version
    • refresh the semantic model
    • verify RLS roles and Service-side role membership
    • verify app audience and semantic-model permissions
    • test the reports before considering the recovery complete

    AI-assisted drafting: AI was used to help structure and phrase this response. I reviewed and validated the technical content before posting.