<?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: Monaco creates new segment when segments are manually updated in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300249#M39118</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/87037"&gt;@kumaravel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Yes, this is expected behaviour when segments are manually edited outside of Monaco.&lt;/P&gt;&lt;P class=""&gt;Monaco uses the&amp;nbsp;configuration name as the unique identifier&amp;nbsp;when creating or updating configurations.&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/deliver/configuration-as-code/monaco/configuration/special-configuration-types-saas" rel="noopener" target="_blank"&gt;Monaco configuration YAML file - list of special configuration types — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here's what's happening:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;When you manually edit a segment, the platform assigns it a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;new ID. When Monaco re-runs, it looks for a configuration matching its tracked identifier — but because the manual edit changed the underlying object ID, Monaco no longer recognises it as the same segment. So it creates a new one with the same name rather than updating the existing one.&lt;/P&gt;&lt;P class=""&gt;i would suggest to use &lt;EM&gt;monaco deploy --dry-run&lt;/EM&gt; before deploying to preview what Monaco intends to create vs. update — this will flag duplicates before they happen.&lt;/P&gt;&lt;P class=""&gt;Thanks,&lt;/P&gt;&lt;P class=""&gt;Sujit&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2026 23:22:56 GMT</pubDate>
    <dc:creator>sujit_k_singh</dc:creator>
    <dc:date>2026-06-02T23:22:56Z</dc:date>
    <item>
      <title>Monaco creates new segment when segments are manually updated</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300089#M39105</link>
      <description>&lt;P&gt;We are using Monaco to create a number of segments.&lt;/P&gt;&lt;P&gt;When segments are manually edited and then Monaco is re-run, instead of overriding the existing segment, a new segment with the same name is recreated.&lt;/P&gt;&lt;P&gt;Is this behaviour as expected?&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 11:52:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300089#M39105</guid>
      <dc:creator>kumaravel</dc:creator>
      <dc:date>2026-05-29T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco creates new segment when segments are manually updated</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300092#M39106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is not behaviour using another APIs.&lt;/P&gt;&lt;P&gt;Are you using latest Monaco version? If yes, maybe, I will open a support case.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 12:29:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300092#M39106</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2026-05-29T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco creates new segment when segments are manually updated</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300220#M39110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would not expect Monaco to create a duplicate segment just because the existing segment was manually updated.&lt;/P&gt;&lt;P&gt;However, I would first verify how Monaco identifies this particular segment after the manual change. The local `id` in Monaco is not the same as the Dynatrace object ID, so if the object can no longer be matched correctly, Monaco may treat it as a new configuration instead of updating the existing one.&lt;/P&gt;&lt;P&gt;I would suggest checking:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Monaco CLI version&lt;/LI&gt;&lt;LI&gt;whether the segment was originally created by Monaco or imported/downloaded later&lt;/LI&gt;&lt;LI&gt;whether the manual change modified any unique identifier/reference used by the Settings API object&lt;/LI&gt;&lt;LI&gt;running a fresh "monaco download" and comparing the downloaded object with the one in Git&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If this is reproducible with the latest Monaco version, I would open a Dynatrace support case, because creating another segment with the same name sounds risky and not like the expected GitOps/idempotent behavior.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Tomasz&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 13:50:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300220#M39110</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2026-06-02T13:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco creates new segment when segments are manually updated</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300230#M39112</link>
      <description>&lt;P&gt;I tried to check what happen when monaco creates a segment vs creation via the UI.&lt;/P&gt;&lt;P&gt;Segments created via Monaco has a field 'externalId' with a prefix of monaco (eg- monaco-8b94be1f-03b1-3872-89d7-8ac135f5aff2)&lt;/P&gt;&lt;P&gt;But segments created via UI miss the field externalId. Also when a Monaco created segment is updated from the UI, the field externalId is deleted.&lt;/P&gt;&lt;P&gt;Seems Monaco uses the externalId fields to check for an existing segment and then updated it. But deletion of externalId fields seems the reason for Monaco to not find the segments and recreate a new one.&lt;/P&gt;&lt;P&gt;The Monaco download only return the uid. The externalId was visible via swagger.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumaravel_0-1780412699570.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33329i18D84D27CC488C6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumaravel_0-1780412699570.png" alt="kumaravel_0-1780412699570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tried it with v2.28.5 and v2.28.8&lt;/P&gt;&lt;P&gt;Please let me know in case more details are needed.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 15:06:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300230#M39112</guid>
      <dc:creator>kumaravel</dc:creator>
      <dc:date>2026-06-02T15:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Monaco creates new segment when segments are manually updated</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300249#M39118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/87037"&gt;@kumaravel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Yes, this is expected behaviour when segments are manually edited outside of Monaco.&lt;/P&gt;&lt;P class=""&gt;Monaco uses the&amp;nbsp;configuration name as the unique identifier&amp;nbsp;when creating or updating configurations.&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/deliver/configuration-as-code/monaco/configuration/special-configuration-types-saas" rel="noopener" target="_blank"&gt;Monaco configuration YAML file - list of special configuration types — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here's what's happening:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;When you manually edit a segment, the platform assigns it a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;new ID. When Monaco re-runs, it looks for a configuration matching its tracked identifier — but because the manual edit changed the underlying object ID, Monaco no longer recognises it as the same segment. So it creates a new one with the same name rather than updating the existing one.&lt;/P&gt;&lt;P class=""&gt;i would suggest to use &lt;EM&gt;monaco deploy --dry-run&lt;/EM&gt; before deploying to preview what Monaco intends to create vs. update — this will flag duplicates before they happen.&lt;/P&gt;&lt;P class=""&gt;Thanks,&lt;/P&gt;&lt;P class=""&gt;Sujit&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 23:22:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Monaco-creates-new-segment-when-segments-are-manually-updated/m-p/300249#M39118</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2026-06-02T23:22:56Z</dc:date>
    </item>
  </channel>
</rss>

