Copied to clipboard

Flag this post as spam?

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


  • Jules 276 posts 587 karma points
    Nov 29, 2022 @ 08:50
    Jules
    0

    uSync Complete - Exporter - Importing Users Issue

    Hi there uSync Complete - 8.11.8 uSync PeopleEdition - 8.11.8 Umbraco 8.18.4

    Trying to use Exporter to export and import users (in this case a single user).
    Export runs fine but when uploading file we get this error in the UI:

    enter image description here

    And this error in the logs:

    {"@t":"2022-11-29T08:36:33.6754548Z","@mt":"Unhandled controller exception occurred for request '{RequestUrl}'","@l":"Error","@x":"System.ArgumentException: Unknown entity type \"user\".\r\nParameter name: entityType\r\n   at Umbraco.Core.Udi.Create(String entityType, String id) in D:\\a\\1\\s\\src\\Umbraco.Core\\Udi.cs:line 281\r\n   at uSync.PeopleEdition.ItemManagers.SyncUserItemManager.GetEntity(SyncTreeItem treeItem)\r\n   at uSync.Exporter.Controllers.uSyncNuExporterApiController.GetNameAndUdi(ExportInfo exportItem)\r\n   at uSync.Exporter.Controllers.uSyncNuExporterApiController.GetSyncItems(IEnumerable`1 exportItems)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()","RequestUrl":"https://lloyds.embarkdev.local/umbraco/backoffice/uSync/uSyncNuExporterApi/GetSyncItems","SourceContext":"uSync.Exporter.Controllers.uSyncNuExporterApiController","ProcessId":30084,"ProcessName":"w3wp","ThreadId":40,"AppDomainId":6,"AppDomainAppId":"LMW3SVC2ROOT","MachineName":"LT005947","Log4NetLevel":"ERROR","HttpRequestNumber":5,"HttpRequestId":"c196809f-1203-4267-a0f3-118c7340d557"}
    

    I notice our uSync complete is a couple of minor versions behind. Has this issue been seen before and fixed in upgrades?

    Kind regards

    Jules

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 29, 2022 @ 09:56
    Kevin Jump
    0

    Hi,

    I don't think there is anything explicitly fixing this in later releases - I am just having a look now to see if we "accidently" fixed it or if we need to patch something.

  • Jules 276 posts 587 karma points
    Nov 29, 2022 @ 10:41
    Jules
    0

    Thanks Kevin

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 29, 2022 @ 11:11
    Kevin Jump
    1

    Hi Jules,

    this works for us on the latest release of uSync.Complete - there was a small change to how we calculate UDI values and i think it fixed this as a by-product .

    There is another javascript bug for users on the exporter, It doesn't actually stop it exporting or importing a user but its annoying!

    So If you want to live on the edge there is a nightly build that fixes that error - (will wrap it into the next release)

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

    Its worth noting that uSync will not sync the admin user (for security reasons). and password syncing of the users will only work if the umbraco installations share a Machine Key (if they don't it should still import but the passwords won't work).

  • Jules 276 posts 587 karma points
    Nov 30, 2022 @ 14:02
    Jules
    0

    Hi Kevin

    Actually we are still getting same error after upgrading to latest (not nightly).

    That is the ui error when uploading and the same exception

    Jules

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 30, 2022 @ 14:11
    Kevin Jump
    0

    😞 - Can you look in the browser tools and see if there is any more information either in the console or the network tab - might be there is something else happening we are not capturing.

  • Jules 276 posts 587 karma points
    Nov 30, 2022 @ 14:41
    Jules
    0

    Console errors

    enter image description here

  • Jules 276 posts 587 karma points
    Nov 29, 2022 @ 11:15
    Jules
    0

    Marvelous!

    Will upgrade in that case.

    Any idea when the next release will be Kevin?

    Kind regards

    Jules

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 29, 2022 @ 11:27
    Kevin Jump
    1

    For v8 - not sure,

    At the moment this is the only issue on v8 - as it doesn't actually break it - only throw a console error we might wait till the new year. just to see if anything else pops up.

  • Jules 276 posts 587 karma points
    Nov 29, 2022 @ 12:05
    Jules
    0

    Thanks again Kevin

Please Sign in or register to post replies

Write your reply to:

Draft