Copied to clipboard

Flag this post as spam?

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

  • vapenation 21 posts 139 karma points
    Dec 08, 2016 @ 07:57

    USync doesn't log Import

    I have the following controller in my umbracosite. I call the page in question whenever I want to manually trigger an import.

    public class ImportPage: BaseRenderController
        public override ActionResult Index(RenderModel model)
            var uSyncBackOffice = uSyncBackOfficeContext.Instance;
            var actions = uSyncBackOffice.ImportAll();
            return base.Index(ImportModelFeedback(true));

    The call seems to work fine as I get an action-list back which lists every action. However, when I open BackOffice, I see now new log entry. I checked "/app_data/temp/usync" and no new entry was there either.

    Why is this? Does this mean that the sync for some reason wasn't successful or simply that the ImportAll() doesn't care to create a log entry. If not, which method in the usync api can I call to do this manually?

  • Kevin Jump 1768 posts 11344 karma points MVP 4x c-trib
    Dec 08, 2016 @ 08:20
    Kevin Jump


    yeah the log is written out directly by the call to import all (it probibly should be)

    however if you have the actions

    uSyncActionLogger.SaveActionLog("Import", setupActions);

    will save it. usally i check for any real 'change' actions before firing it.

        if (setupActions.Any(x => x.Change > ChangeType.NoChange))
                    uSyncActionLogger.SaveActionLog("Startup", setupActions);
  • vapenation 21 posts 139 karma points
    Dec 08, 2016 @ 09:27

    Right, I'll try that. Thanks! I wasn't aware that Usync only creates a log when there's been an actual change, so I'll verify to make sure that isn't the reason.

Please Sign in or register to post replies

Write your reply to: