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?
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).
Once you have the sync pack, you can check (its zip) so mine looks like this..
when i import it onto a site that already has the users i get this :
but thats because the changes are hidden (clicking changes only) - shows them
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.
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.
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.
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?
Becoming urgent as we approach launch....
Thanks
Jules
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).
Once you have the sync pack, you can check (its zip) so mine looks like this..
when i import it onto a site that already has the users i get this :
but thats because the changes are hidden (clicking changes only) - shows them
This is our usync8.config. Does it look okay?
Yeah that should work ☹️
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.
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.
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(IEnumerable
1 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, IDictionary
2 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.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 :
or are you running any other nightly versions or anything ?
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.
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
-
Awesome Kevin
Will give it a go.
Cheers
Jules
As a matter of interest, because I know I will be asked, any idea when date of next release is?
It does work by the way Thanks Jules
is working on a reply...