I would like to save the Import statistics each time a scheduled import is run. But it seems you cannot do this from the Imported Event. Also I cannot find import statistics in the database. (or in the log file)
At this point there is no easy way to do that. I'm working on the V5 release and that will sende the stats to the event. Those improvements will be included in the V4.x version also but will take a litlle bit of time. For now you can hack your way around this I guess.
You can create initialize a static class when the import start then for each recordimported event increase the numbers yourself. The recordimportedevent gives you the update action New/Updated/Skipped. Then use the Imported event to store this information and clear statistics. It's a hack for nowbut this might be the best for now.
Is it also possible to view the error from the Imported Event? Only Skipped is not enough information I guess. I'm trying to access the record that generates errors.
Loading Statistics from Imported Event
Hi Richard,
I would like to save the Import statistics each time a scheduled import is run.
But it seems you cannot do this from the Imported Event.
Also I cannot find import statistics in the database. (or in the log file)
Is there some solution to this?
Hope to hear from you.
martin
Hi Martin,
At this point there is no easy way to do that. I'm working on the V5 release and that will sende the stats to the event. Those improvements will be included in the V4.x version also but will take a litlle bit of time. For now you can hack your way around this I guess.
You can create initialize a static class when the import start then for each recordimported event increase the numbers yourself. The recordimportedevent gives you the update action New/Updated/Skipped. Then use the Imported event to store this information and clear statistics. It's a hack for nowbut this might be the best for now.
Thanks,
Richard
Ok thanks.
Martin
Hi Richard,
Is it also possible to view the error from the Imported Event?
Only Skipped is not enough information I guess. I'm trying to access the record that generates errors.
Martin
Hi Martin,
I'm affraid not that easy. All errors are logged into the Umbracolog table but you can't link this info to an actual import process.
Best,
Richard
is working on a reply...