Copied to clipboard

Flag this post as spam?

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


  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 09:39
    Jules
    0

    Sync Users with Exporter Sync Package - package seems always to be empty

    Hi Kevin

    Umb 8.18.4 - uSync 8.11.10

    Still getting error when trying to import users as described here - https://our.umbraco.com/packages/developer-tools/usync/usynccomplete/110579-usync-complete-exporter-importing-users-issue.

    However, it does look like when I try to generate a sync package for only users it is always empty (1kb).

    I tried installing the nightly build as suggested but issue was the same.

    I am not sure where to look next. Is there any enhanced debugging I can switch on.

    I did notice one thing that I'm not sure is an issue. We do have userGroupHandler enabled in config but I do not see a specific button for it. Should that be there?

    enter image description here

    Becoming urgent as we approach launch....

    Thanks

    Jules

  • Kevin Jump 2318 posts 14747 karma points MVP 8x c-trib
    Dec 16, 2022 @ 09:55
    Kevin Jump
    0

    Hi,

    I would just check if you have exporter speicifc settings in your uSync8.config file :

    https://docs.jumoo.co.uk/usync/8.x/complete/Introduction/exporter#exporter-specific-handler-setting

    (requires a restart once you've edited the file)

    Just done a quick test locally, and the users do appear, (you have to pick individual users, and admin user won't be synced on the other side but that is by design).

    enter image description here

    Once you have the sync pack, you can check (its zip) so mine looks like this..

    enter image description here

    when i import it onto a site that already has the users i get this :

    enter image description here

    but thats because the changes are hidden (clicking changes only) - shows them

    enter image description here

  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 10:04
    Jules
    0

    This is our usync8.config. Does it look okay?

    <?xml version="1.0" encoding="utf-8"?>
    

        <!-- Enables specific HandlerSet for Exporter -->
        <Exporter>
            <HandlerSet>Exporter</HandlerSet>
        </Exporter>
    
        <!-- handler sets -->
    
        <HandlerSets Default="default">
            <Handlers Name="default">
                <Handler Alias="dataTypeHandler" Enabled="true" />
                <Handler Alias="languageHandler" Enabled="true" />
                <Handler Alias="macroHandler" Enabled="true" />
                <Handler Alias="mediaTypeHandler" Enabled="true" />
                <Handler Alias="memberTypeHandler" Enabled="false" />
                <Handler Alias="templateHandler" Enabled="true" />
                <Handler Alias="contentTypeHandler" Enabled="true" />
                <Handler Alias="contentHandler" Enabled="false" />
                <Handler Alias="contentTemplateHandler" Enabled="true" />
                <Handler Alias="dictionaryHandler" Enabled="false" />
                <Handler Alias="domainHandler" Enabled="false" />
                <Handler Alias="mediaHandler" Enabled="false" />
                <Handler Alias="relationTypeHandler" Enabled="false" />
                <Handler Alias="memberHandler" Enabled="false" />
                <Handler Alias="memberGroupHandler" Enabled="false" />
                <Handler Alias="userHandler" Enabled="true" />
                <Handler Alias="userGroupHandler" Enabled="true" />
            </Handlers>
    
            <Handlers Name="publisher">
                <Handler Alias="dataTypeHandler" Enabled="true" Actions="All" />
                <Handler Alias="languageHandler" Enabled="true" Actions="All" />
                <Handler Alias="macroHandler" Enabled="true" Actions="All" />
                <Handler Alias="mediaTypeHandler" Enabled="true" Actions="All" />
                <Handler Alias="memberTypeHandler" Enabled="true" Actions="All" />
                <Handler Alias="templateHandler" Enabled="true" Actions="All" />
                <Handler Alias="contentTypeHandler" Enabled="true" Actions="All" />
                <Handler Alias="contentHandler" Enabled="false" />
                <Handler Alias="publishedContentHandler" Enabled="true" Actions="All" />
                <Handler Alias="contentTemplateHandler" Enabled="true" Actions="All" />
                <Handler Alias="dictionaryHandler" Enabled="false" Actions="All" />
                <Handler Alias="domainHandler" Enabled="false" Actions="All" />
                <Handler Alias="mediaHandler" Enabled="false" Actions="All" />
                <Handler Alias="publicAccessHandler" Enabled="true" Actions="All" />
                <Handler Alias="mediaFileHandler" Enabled="true" Actions="All">
                    <Handler Alias="userHandler" Enabled="false" />
                    <Handler Alias="userGroupHandler" Enabled="false" />
                    <Add Key="IncludeFileHash" Value="true" />
                </Handler>
            </Handlers>
    
            <Handlers Name="exporter">
                <Handler Alias="dataTypeHandler" Enabled="true" />
                <Handler Alias="languageHandler" Enabled="true" />
                <Handler Alias="macroHandler" Enabled="true" />
                <Handler Alias="mediaTypeHandler" Enabled="true" />
                <Handler Alias="memberTypeHandler" Enabled="false" />
                <Handler Alias="templateHandler" Enabled="true" />
                <Handler Alias="contentTypeHandler" Enabled="true" />
                <Handler Alias="contentHandler" Enabled="true" />
                <Handler Alias="contentTemplateHandler" Enabled="true" />
                <Handler Alias="dictionaryHandler" Enabled="true" />
                <Handler Alias="domainHandler" Enabled="false" />
                <Handler Alias="mediaHandler" Enabled="true" />
                <Handler Alias="memberGroupHandler" Enabled="false" />
                <Handler Alias="memberHandler" Enabled="false" />
                <Handler Alias="publicAccessHandler" Enabled="false" />
                <Handler Alias="userGroupHandler" Enabled="true" />
                <Handler Alias="userHandler" Enabled="true" />
            </Handlers>
        </HandlerSets>
        <!-- custom mappings to things that are already in umbraco -->
        <!-- if you content is stored exactly like it is in an existing 
             propertyEditor, you can map to it here. -->
        <!-- 
        <Mappings>
            <Add Key="MyCustomUrlPicker" Value="Umbraco.MultiUrlPicker" />
        </Mappings>
        -->
        <!-- defaults settings that can be used across all handlers -->
        <!-- 
        <HandlerDefaults>
            <Add Key="NoRemove" Value="true" />
            <Add Key="CreateOnly" Value="true" />
        </HandlerDefaults>
        -->
    </BackOffice>
    

  • Kevin Jump 2318 posts 14747 karma points MVP 8x c-trib
    Dec 16, 2022 @ 10:06
    Kevin Jump
    0

    Yeah that should work ☹️

    1. How many users are you picking for export ?
    2. Have you looked inside a sync pack file to see if there is any uSync/users folder .
  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 10:56
    Jules
    0

    Not many users. Have tried one user and multiple up to about 15.

    I can see the users added and the Create sync pack dialog that pops up lists out those users. Clicking Create generates the sync-pack but it is empty on every try.

    enter image description here

  • Kevin Jump 2318 posts 14747 karma points MVP 8x c-trib
    Dec 16, 2022 @ 11:29
    Kevin Jump
    0

    Hi,

    this is quite odd, can you turn on debugging ? maybe there is somethiong in that.

    as an example a three user sync pack for me shows this in the logs.

    enter image description here

  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 12:14
    Jules
    0

    Ah we are getting an error there:

    System.NotSupportedException: UmbracoObjectType "Unknown" does not have a matching EntityType. at Umbraco.Core.Constants.UdiEntityType.FromUmbracoObjectType(UmbracoObjectTypes umbracoObjectType) in D:\a\1\s\src\Umbraco.Core\Contants-UdiEntityType.cs:line 157 at uSync.Expansions.Core.ItemManagers.Managers.SyncDefaultItemManager.ToModel(IUmbracoEntity entity, UmbracoObjectTypes objectType) at uSync.Expansions.Core.ItemManagers.Managers.SyncDefaultItemManager.GetEntity(SyncTreeItem treeItem) at uSync.Exporter.Controllers.uSyncNuExporterApiController.GetNameAndUdi(ExportInfo exportItem) at uSync.Exporter.Controllers.uSyncNuExporterApiController.GetSyncItems(IEnumerable1 exportItems) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.

  • Kevin Jump 2318 posts 14747 karma points MVP 8x c-trib
    Dec 16, 2022 @ 12:31
    Kevin Jump
    0

    OK, that gives us something look for.

    Will take a look and see if there is a version/release issue with that.

    just to confirm you are at :

    • Umbraco v8.18.4
    • uSync.Complete : v8.11.10

    or are you running any other nightly versions or anything ?

  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 12:50
    Jules
    0

    Correct we are at:

    Umbraco v8.18.4 uSync.Complete : v8.11.10

    I did try installing https://dev.azure.com/jumoo/Public/_artifacts/feed/nightly/NuGet/uSync.Complete/overview/8.11.11-build.20221129.3

    However, issue remained and so rolled back.

  • Kevin Jump 2318 posts 14747 karma points MVP 8x c-trib
    Dec 16, 2022 @ 16:52
    Kevin Jump
    1

    OK,

    So there has been a subtle change somewhere in later versions of Umbraco, to do with the loading of custom entity types, not quite sure what,. but the effect is we now have to force the loading of our custom types for them to be recognised.

    This nightly has that in - should work 🤞

    https://dev.azure.com/jumoo/Public/_artifacts/feed/nightly/NuGet/uSync.Complete/overview/8.11.11-build.20221216.5

    -

  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 17:15
    Jules
    0

    Awesome Kevin

    Will give it a go.

    Cheers

    Jules

  • Jules 273 posts 584 karma points
    Dec 16, 2022 @ 17:21
    Jules
    0

    As a matter of interest, because I know I will be asked, any idea when date of next release is?

  • Jules 273 posts 584 karma points
    Dec 18, 2022 @ 15:10
    Jules
    0

    It does work by the way Thanks Jules

Please Sign in or register to post replies

Write your reply to:

Draft