Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MaartenVissers 32 posts 150 karma points
    Jan 14, 2022 @ 08:08
    MaartenVissers
    0

    uSync: ContentTypeHandler failed

    I don't understand what this means... my doctype does not contain any compositions.

    enter image description here

    Exception: enter image description here

    Doctype:

    enter image description here

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jan 14, 2022 @ 09:11
    Kevin Jump
    0

    Hi

    the error is coming from Umbraco internally when the content type is saved. it is probably that his content type is used as a composition somewhere else and that is where the clash is.

    from a uSync point of view - check you are running the latest version as there are some mitigation for issues like this in there

    the error comes from a method that checks what groups/tabs are present on a content type

    when it does this is also checks all compositions of a content type and anywhere the content type is used as a composition.

    if there are tabs/groups with the same name on any of these other content types then they have to be of the same type (e.g a group or a tab) .

    you can't for example have a tab in on content type called 'Content' and group in another one called 'Content' too * - if you do then this error is the result.

    uSync v9.0.4+ does have some code to try and compensate for this when it happens in a sync, so hopefully updating to the latest version would fix it

    *Its not actually the name of the tab/group, its the alias that matters, you can have two with the same 'name' not the same alias

  • MaartenVissers 32 posts 150 karma points
    Jan 14, 2022 @ 13:02
    MaartenVissers
    0

    Hi, thanks for your reply. I think it's strange that it does work on my local environment, but not on my staging env. So it does'nt seem that there is something wrong with the Umbraco configuration?

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jan 14, 2022 @ 15:25
    Kevin Jump
    0

    I think its usually around the change from groups to tabs.

    when you do the change locally (e.g turn all your 'Content' groups in to 'Content' tabs) then there are multiple changes and things sort of have to happen in a certain order.

    once you finish this any pass it over to be synced - uSync has to do a little dance to make this work:

    We can't change the group to a tab on only one item in a chain of content types because it will cause a clash either up or down the tree, so uSync changes the group to a tab with a temporary name, once it has done this for all the places that group -> tab happens across all the content types, it flips the temporary name back to the original one.

    this current method is how we do it v9.0.4 + pre v9.0.4 it was a little let robust so worked sometime not all.

    if this issue is still happening and you are running v9.0.6 then we can take a look at the files and see if we can do anything extra to fix it.

  • MaartenVissers 32 posts 150 karma points
    Jan 14, 2022 @ 17:33
    MaartenVissers
    0

    I've updated my site from 9.4 to 9.6 to be sure, but still the same error. I don't see the issue...

  • MaartenVissers 32 posts 150 karma points
    Jan 14, 2022 @ 17:36
    MaartenVissers
    0

    This is my home.config:

    <?xml version="1.0" encoding="utf-8"?>
    <ContentType Key="d20cba80-821a-4cac-81d5-620e50715569" Alias="home" Level="2">
      <Info>
        <Name>Home</Name>
        <Icon>icon-home color-orange</Icon>
        <Thumbnail>folder.png</Thumbnail>
        <Description></Description>
        <AllowAtRoot>True</AllowAtRoot>
        <IsListView>False</IsListView>
        <Variations>Culture</Variations>
        <IsElement>false</IsElement>
        <Folder>Pages</Folder>
        <Compositions />
        <DefaultTemplate></DefaultTemplate>
        <AllowedTemplates>
          <Template Key="363aa8cb-5b7b-4002-9e20-e499292c690a">Home</Template>
        </AllowedTemplates>
      </Info>
      <Structure>
        <ContentType Key="7e1af141-6217-4827-a492-e3b782f8da08" SortOrder="0">projects</ContentType>
      </Structure>
      <GenericProperties>
        <GenericProperty>
          <Key>34c377e2-d898-424f-ae9f-d88ce90bee62</Key>
          <Name>Content</Name>
          <Alias>aboutUsContent</Alias>
          <Definition>ca90c950-0aff-4e72-b976-a30b1ac57dad</Definition>
          <Type>Umbraco.TinyMCE</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>2</SortOrder>
          <Tab Alias="aboutUs">About us</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>337088b0-798d-47b0-8f68-42aa182432d5</Key>
          <Name>Image</Name>
          <Alias>aboutUsImage</Alias>
          <Definition>ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3</Definition>
          <Type>Umbraco.MediaPicker3</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>3</SortOrder>
          <Tab Alias="aboutUs">About us</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>9f291168-3ba8-493d-a219-dacc58fa05e3</Key>
          <Name>Image Text</Name>
          <Alias>aboutUsImageText</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>4</SortOrder>
          <Tab Alias="aboutUs">About us</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>90c2afbb-5cd5-4ed5-94e8-f5fa549dc4a3</Key>
          <Name>Subtitle</Name>
          <Alias>aboutUsSubtitle</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>1</SortOrder>
          <Tab Alias="aboutUs">About us</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>4f9e1ec3-d204-4491-9f5b-df36a9f8b8e7</Key>
          <Name>Title</Name>
          <Alias>aboutUsTitle</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab Alias="aboutUs">About us</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>a5deff8f-6a31-4d54-a315-71764fabae47</Key>
          <Name>Button Text</Name>
          <Alias>contactFormButtonText</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>3</SortOrder>
          <Tab Alias="contact/contactForm">Contact Form</Tab>
          <Variations>Culture</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>6c49e4a5-bc0a-4de7-8a18-bfaf30ed29da</Key>
          <Name>Email Label</Name>
          <Alias>contactFormEmailLabel</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>1</SortOrder>
          <Tab Alias="contact/contactForm">Contact Form</Tab>
          <Variations>Culture</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>d19a8b90-6bf9-41b2-b31d-8c01363e4b5f</Key>
          <Name>Message Label</Name>
          <Alias>contactFormMessageLabel</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>2</SortOrder>
          <Tab Alias="contact/contactForm">Contact Form</Tab>
          <Variations>Culture</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>89071e25-6fe5-41c1-b898-bb3454009086</Key>
          <Name>Name Label</Name>
          <Alias>contactFormNameLabel</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab Alias="contact/contactForm">Contact Form</Tab>
          <Variations>Culture</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>a0cbf8b6-0f6a-4806-9c9f-54d97c7f1ef1</Key>
          <Name>Contact Image</Name>
          <Alias>contactImage</Alias>
          <Definition>ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3</Definition>
          <Type>Umbraco.MediaPicker3</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab Alias="contact">Contact</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>b391e9aa-6a97-400b-ae89-d9570d7f5109</Key>
          <Name>Title</Name>
          <Alias>projectsTitle</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab Alias="projects">Projects</Tab>
          <Variations>Culture</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>f3288cf6-c34f-4d67-b25a-f01c35399402</Key>
          <Name>Services</Name>
          <Alias>services</Alias>
          <Definition>50cff1b6-6eb8-4a9a-aa94-558967eb3afb</Definition>
          <Type>Umbraco.NestedContent</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>1</SortOrder>
          <Tab Alias="services">Services</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>e6ae21fe-74fd-4d73-a731-da956fbc9eb8</Key>
          <Name>Title</Name>
          <Alias>servicesTitle</Alias>
          <Definition>0cc0eba1-9960-42c9-bf9b-60e150b429ae</Definition>
          <Type>Umbraco.TextBox</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab Alias="services">Services</Tab>
          <Variations>Nothing</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
        <GenericProperty>
          <Key>59aac24a-8ce4-45db-bcf1-d7a6f2387e75</Key>
          <Name>Slider</Name>
          <Alias>slider</Alias>
          <Definition>8e94696a-c268-4acd-a712-125d49d70c76</Definition>
          <Type>Umbraco.NestedContent</Type>
          <Mandatory>true</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab Alias="content">Content</Tab>
          <Variations>Culture</Variations>
          <MandatoryMessage></MandatoryMessage>
          <ValidationRegExpMessage></ValidationRegExpMessage>
          <LabelOnTop>false</LabelOnTop>
        </GenericProperty>
      </GenericProperties>
      <Tabs>
        <Tab>
          <Key>7c12a62f-18ad-408f-91dc-15944f05f84f</Key>
          <Caption>Content</Caption>
          <Alias>content</Alias>
          <Type>Group</Type>
          <SortOrder>0</SortOrder>
        </Tab>
        <Tab>
          <Key>0622595e-a5be-4f1b-abb7-ad77c850791e</Key>
          <Caption>Contact Form</Caption>
          <Alias>contact/contactForm</Alias>
          <Type>Group</Type>
          <SortOrder>0</SortOrder>
        </Tab>
        <Tab>
          <Key>bc3f87b5-4c55-411f-b8e8-5f2622ea425f</Key>
          <Caption>About us</Caption>
          <Alias>aboutUs</Alias>
          <Type>Tab</Type>
          <SortOrder>1</SortOrder>
        </Tab>
        <Tab>
          <Key>fe3230dc-b376-4631-b009-e525f7b7440b</Key>
          <Caption>Projects</Caption>
          <Alias>projects</Alias>
          <Type>Tab</Type>
          <SortOrder>2</SortOrder>
        </Tab>
        <Tab>
          <Key>90d2f97c-8ce5-477f-b8ca-79ffcceecedc</Key>
          <Caption>Services</Caption>
          <Alias>services</Alias>
          <Type>Tab</Type>
          <SortOrder>3</SortOrder>
        </Tab>
        <Tab>
          <Key>93ed04d7-9a81-495d-b1bf-c123b1bb1387</Key>
          <Caption>Contact</Caption>
          <Alias>contact</Alias>
          <Type>Tab</Type>
          <SortOrder>4</SortOrder>
        </Tab>
      </Tabs>
    </ContentType>
    
  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jan 14, 2022 @ 18:13
    Kevin Jump
    0

    The issue is likely not on home, but something that uses home as a composer?

    will happily have a deeper look if you want to send me a copy of the uSync folder of the site [email protected]

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jan 14, 2022 @ 19:36
    Kevin Jump
    0

    Hi

    Yeah there is nothing wrong with those files 😔 they sync fine on to a clean site.

    was their anything on site you where applying these files to before you ran the sync ?

  • MaartenVissers 32 posts 150 karma points
    Jan 18, 2022 @ 19:10
    MaartenVissers
    100

    I found something. I deleted the doctypes and content on my staging env, published again and imported again. Now it works.

    I now have to turnoff uSync automatic exports at the staging env, because I don't want to change stuff accidentally.

Please Sign in or register to post replies

Write your reply to:

Draft