Forum Discussion
UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?
- 4 months ago
Hi yazdanb,
XMLA schema pre-apply (your CopyOverwriteUsageException workaround): ✅ Works with a Service Principal, it can connect to the XMLA endpoint and run the TMSL alter for column type changes. Your existing RLS role definitions in model.bim survive untouched.
updateFromGit with a semantic model: ⚠️ Unreliable with a Service Principal. In practice you need to run it with the credentials of the semantic model owner via a PAT token. (Microsoft Fabric Community)
RLS role membership via XMLA: ❌ Hard block. Service Principals cannot be added as model role members through the XMLA endpoint. (Microsoft Learn) Role definitions (the DAX filter expressions) are fine, but assigning users to roles is not.
Solution: Use your Service Principal for everything except the semantic model Git sync step, swap in a dedicated deployment user's PAT just for that one call. It's not clean, but it's the only reliable path today.
Hi yazdanb,
Based on the official Microsoft Fabric REST API documentation, the updateFromGit API (POST /v1/workspaces/{workspaceId}/git/updateFromGit) includes an options object in the request body, however, the documentation does not define any parameters related to data deletion consent, schema override, or similar functionality. The only option reflected in usage examples is allowOverrideItems, which allows overriding existing items during the update operation. The documentation does not describe any additional flags or parameters that would correspond to confirming potentially destructive changes.
Additionally, the official documentation does not mention any REST API mechanism equivalent to the Fabric UI’s Update Anyway confirmation, nor does it document a way to provide consent for operations that may result in data deletion during a Git sync. As a result, based strictly on the documented API surface, no such capability is currently described for use in automated or programmatic scenarios.
Documentation Reference
- Anonymous4 months agoNot applicable
Hi yazdanb ,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.
- Anonymous4 months agoNot applicable
Hi yazdanb ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.