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?
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.
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.
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?
Hi
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.
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.
is working on a reply...