Skip to content

Removing a Group fails #1009

Closed
Closed

Description

@Myster

Describe the bug
If the usync config specifies a property should move out of a goup, the import fails.
If you run a bulk import nothing happens
If you run a single doctype import it actually exports instead.

To Reproduce
Import this:

<?xml version="1.0" encoding="utf-8"?>
<ContentType Key="f706c4d9-6a2c-4584-86f6-6ae26901657c" Alias="test" Level="1">
  <Info>
    <Name>Test</Name>
    <Icon>icon-document</Icon>
    <Thumbnail>folder.png</Thumbnail>
    <Description></Description>
    <AllowAtRoot>False</AllowAtRoot>
    <ListView>00000000-0000-0000-0000-000000000000</ListView>
    <Variations>Nothing</Variations>
    <IsElement>false</IsElement>
    <HistoryCleanup>
      <PreventCleanup>False</PreventCleanup>
      <KeepAllVersionsNewerThanDays></KeepAllVersionsNewerThanDays>
      <KeepLatestVersionPerDayForDays></KeepLatestVersionPerDayForDays>
    </HistoryCleanup>
    <Compositions />
    <DefaultTemplate></DefaultTemplate>
    <AllowedTemplates />
  </Info>
  <Structure />
  <GenericProperties>
    <GenericProperty>
      <Key>66555d00-1d72-4acf-8807-6a77de39710b</Key>
      <Name>Prop1</Name>
      <Alias>prop1</Alias>
      <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
      <Type>Umbraco.TextBox</Type>
      <Mandatory>false</Mandatory>
      <Validation></Validation>
      <Description><![CDATA[]]></Description>
      <SortOrder>0</SortOrder>
      <Tab Alias="content">Content</Tab>
      <Variations>Nothing</Variations>
      <MandatoryMessage></MandatoryMessage>
      <ValidationRegExpMessage></ValidationRegExpMessage>
      <LabelOnTop>false</LabelOnTop>
    </GenericProperty>
  </GenericProperties>
  <Tabs>
    <Tab>
      <Key>b675670e-77f8-4e85-8e46-27e0f4a36b54</Key>
      <Caption>Content</Caption>
      <Alias>content</Alias>
      <Type>Group</Type>
      <SortOrder>0</SortOrder>
    </Tab>
  </Tabs>
</ContentType>

Change the file on disk to this:

<?xml version="1.0" encoding="utf-8"?>
<ContentType Key="f706c4d9-6a2c-4584-86f6-6ae26901657c" Alias="test" Level="1">
  <Info>
    <Name>Test</Name>
    <Icon>icon-document</Icon>
    <Thumbnail>folder.png</Thumbnail>
    <Description></Description>
    <AllowAtRoot>False</AllowAtRoot>
    <ListView>00000000-0000-0000-0000-000000000000</ListView>
    <Variations>Nothing</Variations>
    <IsElement>false</IsElement>
    <HistoryCleanup>
      <PreventCleanup>False</PreventCleanup>
      <KeepAllVersionsNewerThanDays></KeepAllVersionsNewerThanDays>
      <KeepLatestVersionPerDayForDays></KeepLatestVersionPerDayForDays>
    </HistoryCleanup>
    <Compositions />
    <DefaultTemplate></DefaultTemplate>
    <AllowedTemplates />
  </Info>
  <Structure />
  <GenericProperties>
    <GenericProperty>
      <Key>66555d00-1d72-4acf-8807-6a77de39710b</Key>
      <Name>Prop1</Name>
      <Alias>prop1</Alias>
      <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
      <Type>Umbraco.TextBox</Type>
      <Mandatory>false</Mandatory>
      <Validation></Validation>
      <Description><![CDATA[]]></Description>
      <SortOrder>0</SortOrder>
      <Tab></Tab>
      <Variations>Nothing</Variations>
      <MandatoryMessage></MandatoryMessage>
      <ValidationRegExpMessage></ValidationRegExpMessage>
      <LabelOnTop>false</LabelOnTop>
    </GenericProperty>
  </GenericProperties>
  <Tabs />
</ContentType>

Run an import ... nothing happens. ❌
Run a report, click the 'test' content type, click 'import' ... the config has reverted (aka export) ❌

Expected behavior
both imports should move the property out of the group like so:

Screenshots
Image

About your Site (please complete the following information):

  • Umbraco Version: 17.5.3
  • uSync Version: 17.3.6
  • Browser: chrome

Activity

  1. self-assigned this
    on Jul 27, 2026
  2. KevinJump commented on Jul 27, 2026

    @KevinJump
    Owner

    Thanks,

    Will be fixed for next release -

    this fix actually works around an Umbraco issue - we have logged that too umbraco/Umbraco-CMS#23481 but we are not dependent on it.

  3. Myster commented on Jul 29, 2026

    @Myster
    Author

    Legend, chur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions