<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5184736#M65111</link>
    <description>&lt;P&gt;Thanks Oussama. Could this work if we have RLS enabled and are using a Service Principal for deployment and updates?&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2026 15:00:33 GMT</pubDate>
    <dc:creator>yazdanb</dc:creator>
    <dc:date>2026-05-18T15:00:33Z</dc:date>
    <item>
      <title>UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5182911#M65093</link>
      <description>&lt;P&gt;We have an Azure DevOps pipeline that calls the Fabric REST API (POST /v1/workspaces/{id}/git/updateFromGit) to sync a workspace from Git. When a PR contains column data-type changes in a semantic model (e.g. double → int64, double → string), the operation fails with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GitSyncFailed &amp;gt; CopyOverwriteUsageException:&lt;BR /&gt;"Dataset {id} changes will cause data deletion."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Fabric UI this is solvable — Source Control → Update → "Update Anyway". We need to do this unattended from a pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we have tried:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;clearValues&amp;nbsp;first&amp;nbsp;— emptying the dataset before syncing. Failed. The gate is a schema check, not a data check. Fires even on empty tables.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;updateDefinition&amp;nbsp;to pre-apply the new schema&amp;nbsp;— fetching&amp;nbsp;model.bim&amp;nbsp;+&amp;nbsp;definition.pbism&amp;nbsp;from ADO at the target commit and calling&amp;nbsp;POST /semanticModels/{id}/updateDefinition. Returns HTTP 202 then polls to&amp;nbsp;Failed&amp;nbsp;with&amp;nbsp;RequiredOptionsMissing. The error body contains&amp;nbsp;"parameters": [{"name": "optionName"}]&amp;nbsp;— the option name slot is&amp;nbsp;left blank, so we cannot tell what option is needed.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Various&amp;nbsp;options&amp;nbsp;flags on&amp;nbsp;UpdateFromGit&amp;nbsp;— tried&amp;nbsp;allowDataDeletion,&amp;nbsp;allowDataLoss,&amp;nbsp;allowOverwriteItems,&amp;nbsp;allowOverrideUsage,&amp;nbsp;allowCopyOverwrite,&amp;nbsp;allowSchemaChange,&amp;nbsp;forceOverwrite. All silently ignored.&amp;nbsp;CopyOverwriteUsageException&amp;nbsp;still fires.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question&lt;SPAN&gt;: Is there a REST API parameter (on either&amp;nbsp;&lt;/SPAN&gt;updateFromGit&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;updateDefinition&lt;SPAN&gt;) that provides the same consent as the "Update Anyway" button in the UI? If so, what is the correct option name? The&amp;nbsp;&lt;/SPAN&gt;RequiredOptionsMissing&lt;SPAN&gt;&amp;nbsp;error strongly implies one exists but the name is not documented. If not, is there a workaround like clearing the data first and then applying the updates? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 14:45:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5182911#M65093</guid>
      <dc:creator>yazdanb</dc:creator>
      <dc:date>2026-05-14T14:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5183140#M65094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233594"&gt;@yazdanb&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;This is the workaround that actually works for schema-breaking changes in an unattended pipeline. Instead of going through &lt;FONT color="#FF0000"&gt;updateFromGit&lt;/FONT&gt;, you apply the schema change directly to the semantic model via the XMLA endpoint using a TMSL &lt;FONT color="#FF0000"&gt;alter&lt;/FONT&gt; script. This requires your workspace to be on a Premium or Fabric F/SKU capacity because it requires XMLA read/write access. &lt;SPAN class=""&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Update-schema-of-large-semantic-models/m-p/5004364" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft Fabric Community&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Your pipeline would:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Fetch the new &lt;FONT color="#FF0000"&gt;model.bim&lt;/FONT&gt;&amp;nbsp;from your ADO repo at the target commit&lt;/LI&gt;&lt;LI&gt;Connect to the XMLA endpoint (&lt;FONT color="#FF0000"&gt;powerbi://api.powerbi.com/v1.0/myorg/YourWorkspace&lt;/FONT&gt;)&lt;/LI&gt;&lt;LI&gt;Send an alter&amp;nbsp;TMSL command to apply column type changes directly (this bypasses the Git sync gate entirely)&lt;/LI&gt;&lt;LI&gt;Then call &lt;FONT color="#FF0000"&gt;updateFromGit&lt;/FONT&gt;&lt;FONT face="Menlo, Monaco, Consolas, Courier New, monospace" color="#c7254e"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;normally, since the schema is already aligned, there's no "data deletion" risk detected&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;The key here is that the XMLA path doesn't go through the same consent gate. As of June 2025, all Power BI and Fabric capacity SKUs support XMLA read/write operations by default, so you shouldn't need to ask your capacity admin to enable it anymore. &lt;SPAN class=""&gt;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/enabling-broader-adoption-of-xmla-based-tools-and-scenarios/" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Microsoft Fabric&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&amp;nbsp;&lt;/SPAN&gt;Feel free to ask me questions if needed, and d&lt;SPAN&gt;on’t forget to &lt;STRONG&gt;like (give kudos)&lt;/STRONG&gt; &amp;amp;&amp;nbsp;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&amp;nbsp;if this guidance worked for you. That's motivate me to keep helping.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Oussama (Data Consultant &amp;amp; Fabric's Expert)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 00:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5183140#M65094</guid>
      <dc:creator>oussamahaimoud</dc:creator>
      <dc:date>2026-05-15T00:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5183522#M65096</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233594"&gt;@yazdanb&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Documentation Reference&lt;/STRONG&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/git/update-from-git?tabs=HTTP" target="_blank"&gt;Git - Update From Git - REST API (Core) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 11:38:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5183522#M65096</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-05-15T11:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5184736#M65111</link>
      <description>&lt;P&gt;Thanks Oussama. Could this work if we have RLS enabled and are using a Service Principal for deployment and updates?&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 15:00:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5184736#M65111</guid>
      <dc:creator>yazdanb</dc:creator>
      <dc:date>2026-05-18T15:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5184743#M65112</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233594"&gt;@yazdanb&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XMLA schema pre-apply (your CopyOverwriteUsageException workaround): &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; 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.&lt;/P&gt;&lt;P&gt;updateFromGit with a semantic model: &lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; 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)&lt;/P&gt;&lt;P&gt;RLS role membership via XMLA: &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 15:09:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5184743#M65112</guid>
      <dc:creator>oussamahaimoud</dc:creator>
      <dc:date>2026-05-18T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: UpdateFromGit fails with CopyOverwriteUsageException - no API option to bypass deletion consent?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5185122#M65114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1233594"&gt;@yazdanb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 07:07:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/UpdateFromGit-fails-with-CopyOverwriteUsageException-no-API/m-p/5185122#M65114</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-05-19T07:07:09Z</dc:date>
    </item>
  </channel>
</rss>

