Copied to clipboard

Flag this post as spam?

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


  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Oct 02, 2020 @ 11:58
    Rasmus Berntsen
    0

    Deleted content after import

    Hi Kevin.

    First of all thanks a lot for a great package that brings a lot of value to the community.

    Unfortunately we have 4-5 times now experienced missing data after import. It generally doesn't happen and we don't see a certain pattern. I can't see any errors in the log and all I can see is that Umbraco after import believes the specific properties (often Nested Content) never had any data if I try to do a rollback. My best guess is that it "re-adds" the property which ends up doing a delete and an add in some way.

    This is happening on Umbraco 8.6.4 and uSync 8.5.0.

    Is there any way you could see this happen? Is it possible to enable a setting that makes uSync unable to delete (as a workaround)?

    Best regards,

    Rasmus

  • Kevin Jump 2310 posts 14694 karma points MVP 7x c-trib
    Oct 02, 2020 @ 12:45
    Kevin Jump
    0

    Hi Rasmus, ,

    That doesn't sound good :(

    The thing to check is if you have any 'empty' delete files in your uSync folder, so .config files starts <empty...> then that will be a thing that 'might' delete a doctype or datatype.

    this could cause a property to be removed (because the datatype is removed) but if the datatype has been recreated by something else that doesn't mean uSync will delete it. You can stop this by removing the empty files (a clean export does that, see below)

    in terms of properties, uSync shouldn't delete a property from a content type unless it can't find it by key (GUID) or Alias. If something has renamed the property in-between syncs then the key match should stop a delete, but if for what ever reason the key and alias are different, then it will remove it (seems unlikely). You can't really stop this behaviour, its the sync part, If the property isn't there in key or alias, then it will be removed by the sync - if it is there in anyway the delete should not happen*

    I would

    1) do a clean export (this removes all the files so wipes the empty files) - so no deletes in the actions 2) turn on the debug logging, and see if you can spot something getting removed. https://docs.jumoo.co.uk/uSync/v8/debug/

    In the logs a remove would be Removing: {0} where {0} is the property alias. and it would show up in the details element of a sync

    *it is obviously possible something unknown is happening and we need to fix a thing, not ruling that out.

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Oct 02, 2020 @ 14:09
    Rasmus Berntsen
    0

    Hi Kevin.

    Thanks for the reply!

    The weird thing is that I can't see anything that would cause neither the datatype nor the contenttype to be re-created. We don't "touch" these programmatically and the editors doesn't have access to this.

    Here's the ContentType:

    <?xml version="1.0" encoding="utf-8"?>
    <ContentType Key="b922ff2b-3592-44c7-a53d-c8318b29430b" Alias="contentPage" Level="2">
      <Info>
        <Name>Content Page</Name>
        <Icon>icon-article color-black</Icon>
        <Thumbnail>folder.png</Thumbnail>
        <Description></Description>
        <AllowAtRoot>False</AllowAtRoot>
        <IsListView>False</IsListView>
        <Variations>Culture</Variations>
        <IsElement>false</IsElement>
        <Folder>Pages</Folder>
        <Compositions>
          <Composition Key="3b9085b1-4e14-4c4e-9bae-d614f45c5520">configurationPageComposition</Composition>
          <Composition Key="a2516bc2-0e80-4a53-ad1f-8753eb5dcc21">metaPageComposition</Composition>
          <Composition Key="cb8449a6-cc85-40bd-b979-61559aa0a3bb">seoPageComposition</Composition>
        </Compositions>
        <DefaultTemplate></DefaultTemplate>
        <AllowedTemplates />
      </Info>
      <Structure>
        <ContentType Key="e3f14b64-92bc-450f-b24c-2050a45419c9">allFoodAndBeveragePage</ContentType>
        <ContentType Key="5527e0d9-5d25-4ec1-bc5c-8901d02d5953">attractionsHeightRestrictionsPage</ContentType>
        <ContentType Key="e44c33f0-0b77-4d64-99d3-a62c701ce106">blogOverviewPage</ContentType>
        <ContentType Key="8e7c912e-af48-40a5-b807-5373f0dbcd2f">campaignPage</ContentType>
        <ContentType Key="b922ff2b-3592-44c7-a53d-c8318b29430b">contentPage</ContentType>
        <ContentType Key="f88a7928-4b61-4bf2-9705-96afc3e4e0d7">creatureFigureOverviewPage</ContentType>
        <ContentType Key="e1a7c5dd-d330-48c1-acae-d565ee575eba">LegolandBillundHotelCampaignPage</ContentType>
        <ContentType Key="758fdaa4-0226-4c18-8f9f-01d839fbb642">linkPage</ContentType>
        <ContentType Key="9fd88041-dd99-4bde-b2d8-c612cea6bc7a">offersPackagesDetailsPage</ContentType>
        <ContentType Key="35c17f1b-63c6-433a-8b6b-f5df3d6f2223">openingHoursPage</ContentType>
        <ContentType Key="88353627-0d23-4b14-a7fe-d37dcf6b43bc">ticketsPassesDetailsPage</ContentType>
      </Structure>
      <GenericProperties>
        <GenericProperty>
          <Key>7b2611db-4a33-419f-b21c-68d6bf3aa9f5</Key>
          <Name>Content Modules</Name>
          <Alias>content</Alias>
          <Definition>e1b2ff79-357a-4d18-9fb7-cd34a2287aac</Definition>
          <Type>Umbraco.NestedContent</Type>
          <Mandatory>false</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>2</SortOrder>
          <Tab>Content</Tab>
          <Variations>Culture</Variations>
        </GenericProperty>
        <GenericProperty>
          <Key>2ce29e95-239d-4599-bf99-539b8ab82ada</Key>
          <Name>Hero</Name>
          <Alias>hero</Alias>
          <Definition>7a060dde-8c0f-4a9a-b3ca-1a49aa1caa17</Definition>
          <Type>Umbraco.NestedContent</Type>
          <Mandatory>false</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>0</SortOrder>
          <Tab>Content</Tab>
          <Variations>Culture</Variations>
        </GenericProperty>
        <GenericProperty>
          <Key>3e0fecbf-4501-45b0-8893-ed4e44066c00</Key>
          <Name>USP Band</Name>
          <Alias>uSPBand</Alias>
          <Definition>da37c84f-5998-4e3f-8e99-1f3682c1559a</Definition>
          <Type>Umbraco.NestedContent</Type>
          <Mandatory>false</Mandatory>
          <Validation></Validation>
          <Description><![CDATA[]]></Description>
          <SortOrder>1</SortOrder>
          <Tab>Content</Tab>
          <Variations>Culture</Variations>
        </GenericProperty>
      </GenericProperties>
      <Tabs>
        <Tab>
          <Caption>Content</Caption>
          <SortOrder>21</SortOrder>
        </Tab>
      </Tabs>
    </ContentType>
    

    And here's the DataType for which we have lost content:

    <?xml version="1.0" encoding="utf-8"?>
    <DataType Key="e1b2ff79-357a-4d18-9fb7-cd34a2287aac" Alias="[NC] Content Page Blocks" Level="3">
      <Info>
        <Name>[NC] Content Page Blocks</Name>
        <EditorAlias>Umbraco.NestedContent</EditorAlias>
        <DatabaseType>Ntext</DatabaseType>
        <Folder>NestedContent</Folder>
      </Info>
      <Config><![CDATA[{
      "ContentTypes": [
        {
          "ncAlias": "textArea",
          "ncTabAlias": "Text Area",
          "nameTemplate": "{{$index}}: Text Area"
        },
        {
          "ncAlias": "scriptBlock",
          "ncTabAlias": "Script Block",
          "nameTemplate": "{{$index}}: Script Block"
        },
        {
          "ncAlias": "reviewWithQuote",
          "ncTabAlias": "Review with Quote",
          "nameTemplate": "{{$index}}: Review: {{reviewWithQuoteRatingStars}} stars, {{reviewWithQuoteQuoteeNameAndPlace}}"
        },
        {
          "ncAlias": "fullWidthImageWithOverlappingColourBlock",
          "ncTabAlias": "Full Width Image with Overlapping Colour Block",
          "nameTemplate": "{{$index}}: Full Width Image with Overlapping Colour Block: {{fullWidthImageWithOverlappingColourBlockHeadline}}"
        },
        {
          "ncAlias": "twoColumnGallery",
          "ncTabAlias": "2 Column Gallery",
          "nameTemplate": "{{$index}}: 2 Column Gallery: {{twoColumnGalleryHeadline}}"
        },
        {
          "ncAlias": "galleryWithText",
          "ncTabAlias": "Gallery with Text",
          "nameTemplate": "{{$index}}: Gallery with Text: {{galleryWithTextHeadline}}"
        },
        {
          "ncAlias": "fourColumnGallery",
          "ncTabAlias": "Module Four Column Gallery",
          "nameTemplate": "{{$index}}: 4 Column Gallery: {{fourColumnGalleryHeadline}}"
        },
        {
          "ncAlias": "mosaicWithHoverTextBlock",
          "ncTabAlias": "Mosaic",
          "nameTemplate": "{{$index}}: Mosaic: {{mosaicHeadline}}"
        },
        {
          "ncAlias": "imageWithTextAsymmetricalList",
          "ncTabAlias": "Asymmetric Vertical List",
          "nameTemplate": "{{$index}}: Image with Text, Asymmetrical List: Asymmetric Vertical List"
        },
        {
          "ncAlias": "fourColumnListWithButtons",
          "ncTabAlias": "4 Column List with Buttons",
          "nameTemplate": "{{$index}}: 4 Column List with Buttons: {{fourColumnListWithButtonsHeadline}}"
        },
        {
          "ncAlias": "imageWithTextSingle",
          "ncTabAlias": "Image with Text, Single",
          "nameTemplate": "{{$index}}: Image with Text, Manual:  {{imageWithTextSingleHeadline}}"
        },
        {
          "ncAlias": "imageWithTextSingleAuto",
          "ncTabAlias": "Item",
          "nameTemplate": "{{$index}}: Image with Text, Single (Auto)"
        },
        {
          "ncAlias": "informationList",
          "ncTabAlias": "Information List",
          "nameTemplate": "{{$index}}: Information List"
        },
        {
          "ncAlias": "twoColumnLinkWithBackgroundImageBlock",
          "ncTabAlias": "2 column link with background image",
          "nameTemplate": "{{$index}}: 2 Column Link with Background Image Block: {{leftHeadline}} / {{rightHeadline}}"
        },
        {
          "ncAlias": "ticketsAndPassesComparisonListBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Tickets & Passes Comparison List Block"
        },
        {
          "ncAlias": "passesComparisonTableBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Passes Comparison Table Block"
        },
        {
          "ncAlias": "eventsShowsTeaserBandBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Events & Shows Teaser Band Block"
        },
        {
          "ncAlias": "openingHoursBarBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Opening Hours Bar"
        },
        {
          "ncAlias": "signUpForm",
          "ncTabAlias": "SignUp Form",
          "nameTemplate": "{{$index}}: SignUp Form"
        },
        {
          "ncAlias": "pricingTableWithButtonBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Pricing Table {{lHeadline}}"
        },
        {
          "ncAlias": "videoWithText",
          "ncTabAlias": "Video with Text",
          "nameTemplate": "{{$index}}: Video with Text"
        },
        {
          "ncAlias": "openingHoursCalendarBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Opening Hours Calendar"
        },
        {
          "ncAlias": "halfImageAndHalfColourBlock",
          "ncTabAlias": "Half Image and Half Colour Block",
          "nameTemplate": "{{$index}}: Half Image and Half Colour Block"
        },
        {
          "ncAlias": "tabbedContent",
          "ncTabAlias": "Tabbed Content",
          "nameTemplate": "{{$index}}: Tabbed Content"
        },
        {
          "ncAlias": "fourColumnTeaserBand",
          "ncTabAlias": "4 Column Teaser Band",
          "nameTemplate": "{{$index}}: 4 Column Teaser Band"
        },
        {
          "ncAlias": "threeColumnTeaserBand",
          "ncTabAlias": "3 Column Teaser Band",
          "nameTemplate": "{{$index}}: 3 Column Teaser Band"
        },
        {
          "ncAlias": "formBlock",
          "ncTabAlias": "Form Picker",
          "nameTemplate": "{{$index}}: Form Picker"
        },
        {
          "ncAlias": "iconsBandHorizontal",
          "ncTabAlias": "Icons Band Horizontal",
          "nameTemplate": "{{$index}}: Icons Band Horizontal"
        },
        {
          "ncAlias": "fullWidthColourOverlappingImageBlock",
          "ncTabAlias": "Full Width Image with Overlapping Colour Block",
          "nameTemplate": "{{$index}}: Full Width Colour with Overlapping Image: {{headline}}"
        },
        {
          "ncAlias": "horizontalListStartingWithLargeImageBlock",
          "ncTabAlias": "Horizontal List starting with Large Image Block",
          "nameTemplate": "{{$index}}: Horizontal List starting with Large Image"
        },
        {
          "ncAlias": "areaDetailsBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Area Details: {{headline}}"
        },
        {
          "ncAlias": "imageGalleryLarge",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Image Gallery, Large: {{headline}}"
        },
        {
          "ncAlias": "countdownTimerBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Countdown Timer: {{countdownTimerReference | ncNodeName}}"
        },
        {
          "ncAlias": "accordionBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Accordion: {{headline}}"
        },
        {
          "ncAlias": "mediaDownloadBlock",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Media Download: {{headline}}"
        },
        {
          "ncAlias": "ticketsAndPassesList",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Tickets and Passes List"
        },
        {
          "ncAlias": "reviewWithQuoteSlider",
          "ncTabAlias": "Items",
          "nameTemplate": "{{$index}}: Review With Quote Slider"
        },
        {
          "ncAlias": "imageOrVideoSingleFullWidth",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Image or Video, Single Full Width"
        },
        {
          "ncAlias": "blogTextAreaBlock",
          "ncTabAlias": "Text Area",
          "nameTemplate": "{{$index}}: Blog Text Area"
        },
        {
          "ncAlias": "beforeAfterImageDivider",
          "ncTabAlias": "Content",
          "nameTemplate": "{{$index}}: Before & After Image Divider"
        }
      ],
      "MinItems": null,
      "MaxItems": null,
      "ConfirmDeletes": true,
      "ShowIcons": true,
      "HideLabel": false
    }]]></Config>
    </DataType>
    

    I guess there's nothing here that can cause the behavior? I can't see any empty sync-files related to this.

    I'll try and add some debugging and do the clean export. Thanks again!

Please Sign in or register to post replies

Write your reply to:

Draft