<?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: Error &amp;quot;LRO API Error: 'Alm_InvalidRequest_PurgeRequired' - Dataset e66..&amp;quot; in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4652365#M60429</link>
    <description>&lt;P&gt;Interesting not seen that before. It sounds like it wants you to delete all the data. You can do this with XMLA endpoint by running a clear values on the table in question or the model. Can you SSMS or enchanted refresh API.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/tmsl/refresh-command-tmsl?view=asallproducts-allversions" target="_blank"&gt;https://learn.microsoft.com/en-us/analysis-services/tmsl/refresh-command-tmsl?view=asallproducts-allversions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could see if &lt;A href="https://microsoft.github.io/fabric-cicd/latest/" target="_self"&gt;Fabric CICD&lt;/A&gt; is more robust&lt;/P&gt;</description>
    <pubDate>Mon, 14 Apr 2025 19:01:07 GMT</pubDate>
    <dc:creator>Deku</dc:creator>
    <dc:date>2025-04-14T19:01:07Z</dc:date>
    <item>
      <title>Error "LRO API Error: 'Alm_InvalidRequest_PurgeRequired' - Dataset e66.."</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4651090#M60405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After removing one table from the Semantic Model, the Azure Pipeline start failing to deploy the semantic model.&lt;/P&gt;&lt;P&gt;I am using Approach 4 "Deploy content by using only Azure Pipelines" from &lt;A href="https://learn.microsoft.com/en-us/power-bi/guidance/powerbi-implementation-planning-content-lifecycle-management-deploy#deploy-content-by-using-only-azure-pipelines" target="_self"&gt;Microsoft Documentation -&amp;nbsp;Power BI implementation planning: Deploy content&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dpiresm92_0-1744624805126.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1259916i471106C73E7D4E75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dpiresm92_0-1744624805126.png" alt="dpiresm92_0-1744624805126.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The script I've been using was got from&amp;nbsp;&lt;A href="https://github.com/microsoft/Analysis-Services/tree/master/pbidevmode/fabricps-pbip" target="_blank" rel="noopener"&gt;Analysis-Services/pbidevmode/fabricps-pbip at master · microsoft/Analysis-Services&lt;/A&gt;&amp;nbsp;from&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/584246"&gt;@RuiRomanoMS&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That´s the PowerShell script responsible to deploy the semantic model and report. ( I just added parameters so that I can get as Enviroment Variables in the Azure Pipeline )&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dpiresm92_1-1744625149030.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1259917i11D66C83DF77A1E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dpiresm92_1-1744625149030.png" alt="dpiresm92_1-1744625149030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 10:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4651090#M60405</guid>
      <dc:creator>dpiresm92</dc:creator>
      <dc:date>2025-04-14T10:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error "LRO API Error: 'Alm_InvalidRequest_PurgeRequired' - Dataset e66.."</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4652365#M60429</link>
      <description>&lt;P&gt;Interesting not seen that before. It sounds like it wants you to delete all the data. You can do this with XMLA endpoint by running a clear values on the table in question or the model. Can you SSMS or enchanted refresh API.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/tmsl/refresh-command-tmsl?view=asallproducts-allversions" target="_blank"&gt;https://learn.microsoft.com/en-us/analysis-services/tmsl/refresh-command-tmsl?view=asallproducts-allversions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could see if &lt;A href="https://microsoft.github.io/fabric-cicd/latest/" target="_self"&gt;Fabric CICD&lt;/A&gt; is more robust&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 19:01:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4652365#M60429</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-04-14T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error "LRO API Error: 'Alm_InvalidRequest_PurgeRequired' - Dataset e66.."</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4652813#M60437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/790896"&gt;@dpiresm92&lt;/a&gt;,&lt;BR /&gt;Thank you for reaching out to the Microsoft fabric community forum. Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231947"&gt;@Deku&lt;/a&gt;,&amp;nbsp;for your inputs on this issue.&lt;BR /&gt;&lt;BR /&gt;​The error message you are encountering—"LRO API Error: 'Alm_InvalidRequest_PurgeRequired'"—indicates that the deployment process is failing because the semantic model's schema has changed. Specifically, a table has been removed, and the existing dataset in the target environment contains outdated data that does not match the updated schema.&lt;BR /&gt;&lt;BR /&gt;If you are not currently incorporating scripting into your deployment pipeline, you can: Access the Power BI Service, navigate to the target workspace, and manually delete the dataset (this will remove the old schema and associated data). Then, redeploy the semantic model using your existing pipeline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Automate the Purge Step (Recommended for CI/CD pipelines): To ensure a fully automated pipeline, add a purge step using the XMLA endpoint before deployment. This can be achieved using PowerShell, Azure CLI, or tools like Tabular Editor. The purge clears the dataset content to accept the updated schema. For instance, PowerShell with the Invoke-ASCmd command is a common method used in CI/CD workflows.&lt;BR /&gt;&lt;BR /&gt;For additional context, Microsoft has published guidance on common deployment errors, including the Alm_InvalidRequest_PurgeRequired issue, in their CI/CD troubleshooting documentation:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/troubleshoot-cicd" target="_blank"&gt;Troubleshoot the Fabric lifecycle management tools. - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also please go through the solved link for more information:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Deployment-Pipeline-looses-bindings-and-creates-duplicates/m-p/3640781/highlight/true" target="_blank"&gt;Solved: Re: Deployment Pipeline loses bindings and create... - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this post&amp;nbsp;helps, then please give us ‘Kudos’ and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;&lt;BR /&gt;Thank you for using Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 04:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4652813#M60437</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-04-15T04:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error "LRO API Error: 'Alm_InvalidRequest_PurgeRequired' - Dataset e66.."</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4655659#M60484</link>
      <description>&lt;P&gt;I consider this to be a bug, I'm discussing internally how to handle it. It may be caused by a semantic model change that causes data loss in the target semantic model such as change of a column data type.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the meantime, a workaround is to use the FABCLI and run a refresh clear command on the target semantic model before deploying.&lt;BR /&gt;&lt;BR /&gt;- Install FAB CLI -&amp;nbsp;&lt;A href="https://microsoft.github.io/fabric-cli/" target="_blank"&gt;fabric-cli | &lt;span class="lia-unicode-emoji" title=":high_voltage:"&gt;⚡&lt;/span&gt; Microsoft Fabric CLI&lt;/A&gt;&lt;BR /&gt;- Run the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;api -X post /groups/&amp;lt;workspace id&amp;gt;/datasets/&amp;lt;semantic model id&amp;gt;/refreshes
 -i {"type": "ClearValues"} -A powerbi&lt;/LI-CODE&gt;&lt;P&gt;- deplloy the semantic model&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned by others you can also use SSMS to run a refresh clear command.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 12:05:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-quot-LRO-API-Error-Alm-InvalidRequest-PurgeRequired/m-p/4655659#M60484</guid>
      <dc:creator>RuiRomanoMS</dc:creator>
      <dc:date>2025-04-16T12:05:10Z</dc:date>
    </item>
  </channel>
</rss>

