Description: This solution describes how to resolve the error, "System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation."
Version: 188.8.131.52 and higher
The full text of the error message is below:
The error is occurring because the ImportOmatic error and exception file location was specified using a network drive mapping (e.g., "E:\ImportOmatic\Errors") which is not accessible to the user account used to run the scheduled task. To resolve the issue, specify the error and exception file location as a UNC path instead: e.g., "\\FILESERVER\SHARED\ImportOmatic\Errors".
For more information, see the following note in the Scheduling an Import topic in the IOM User Guide (https://omatic-importomatic.helpdocsonline.com/scheduling-an-import):
If your data did not import and there are no error logs, it is because iom.exe was unable to write to the Error file, the Updates file, or to the Exceptions file. In this case, the import is stopped and an error is written to the Windows Event Viewer under Event Viewer > Windows Logs>Application. See http://windows.microsoft.com/en-US/windows7/What-information-appears-in-event-logs-Event-Viewer for information on Windows Event Viewer.
Refer to the ImportOmatic User Guide for additional information.