<?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 persistProperties no longer persists unless property is changed via Formatting Pane in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927433#M13043</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m seeing unexpected behavior with host.persistProperties() in a custom visual using the new formatting model (getFormattingModel). Since late 2025 / early 2026, properties set programmatically are &lt;STRONG&gt;not&lt;/STRONG&gt; persisted across visual reloads (F5) unless the same property has been modified at least once through the Formatting Pane UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I observe:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The card, group, and slice are all visible in the Formatting Pane&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The property is correctly defined in capabilities.json&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If I change the value in the Formatting Pane → it persists across reloads&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If I set the value via persistProperties → it only lasts until the next reload&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Other cards that contain UI‑controlled properties persist correctly, so this seems tied to whether the card is considered “active” by the new formatting engine&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;It looks like cards without a user‑edited property are no longer treated as persistable, even if they are visible and have slices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone else run into this, or found a reliable way to make a card persistable without requiring the user to manually edit a property in the Formatting Pane?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 22:21:44 GMT</pubDate>
    <dc:creator>alexpokerface</dc:creator>
    <dc:date>2026-01-26T22:21:44Z</dc:date>
    <item>
      <title>persistProperties no longer persists unless property is changed via Formatting Pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927433#M13043</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m seeing unexpected behavior with host.persistProperties() in a custom visual using the new formatting model (getFormattingModel). Since late 2025 / early 2026, properties set programmatically are &lt;STRONG&gt;not&lt;/STRONG&gt; persisted across visual reloads (F5) unless the same property has been modified at least once through the Formatting Pane UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I observe:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The card, group, and slice are all visible in the Formatting Pane&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The property is correctly defined in capabilities.json&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If I change the value in the Formatting Pane → it persists across reloads&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If I set the value via persistProperties → it only lasts until the next reload&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Other cards that contain UI‑controlled properties persist correctly, so this seems tied to whether the card is considered “active” by the new formatting engine&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;It looks like cards without a user‑edited property are no longer treated as persistable, even if they are visible and have slices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone else run into this, or found a reliable way to make a card persistable without requiring the user to manually edit a property in the Formatting Pane?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 22:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927433#M13043</guid>
      <dc:creator>alexpokerface</dc:creator>
      <dc:date>2026-01-26T22:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: persistProperties no longer persists unless property is changed via Formatting Pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927609#M13044</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/765530"&gt;@alexpokerface&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What value are you using for &lt;FONT face="courier new,courier"&gt;selector&lt;/FONT&gt; in the persist operation? I used to use &lt;FONT face="courier new,courier"&gt;undefined&lt;/FONT&gt; prior to moving to the formatting model, but I was having the same issues and had to change this to be explcitly&amp;nbsp;&lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt; to persist correctly. This is technically the correct syntax for the data view if a property is unbound, and I suspect that the &lt;FONT face="courier new,courier"&gt;enumerateObjectInstances()&lt;/FONT&gt; method was a bit more forgiving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on your TS configuration, you may need to cast to keep the compiler happy, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  replace: [
    {
      objectName: "myObject",
      selector: null as unknown as powerbi.data.Selector,
      properties: {
        // Property value(s)
      }
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully this helps. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 04:29:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927609#M13044</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2026-01-27T04:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: persistProperties no longer persists unless property is changed via Formatting Pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927918#M13045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks a lot for your suggestion! The selector was indeed the problem. I used {} instead of null or undefined in some cases. For me now it works with both null as well as undefined.&lt;/P&gt;&lt;P&gt;I remember I couldn't get it to work with undefined or null before and had to use {} instead. But I have tried a lot since then, including changing the data type of the data to persist from numeric to string. That in combination with the undefined selector seems to work now.&lt;/P&gt;&lt;P&gt;Thanks again and kind regards,&lt;/P&gt;&lt;P&gt;Alex&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/persistProperties-no-longer-persists-unless-property-is-changed/m-p/4927918#M13045</guid>
      <dc:creator>alexpokerface</dc:creator>
      <dc:date>2026-01-27T07:33:00Z</dc:date>
    </item>
  </channel>
</rss>

