Runs interactively, but scheduled job fails on Progress Bar?

Nov 14, 2011 at 11:26 PM


Thanks for building this utility, it looks very promising.  I've got it running nicely interactively.  However when I try to run it as a scheduled job (via SQL 2008 R2 Job), it fails with the following error:

Started running at 15/11/2011 9:43:30 AM  Running on the system XXXXX Added Site Collection: XXXXXX  Found 2 sub-webs.  Added Site Collection: XXXXX   Waking 3 sites under the address XXXXX Unhandled Exception:System.IO.IOException: The handle is invalid.       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)     at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)     at System.Console.set_CursorLeft(Int32 value)     at SPWakeup3.Program.drawTextProgressBar(Int32 progress, Int32 total)     at SPWakeup3.Program.Main(String[] args).

Is there some issue with the Progress Bar in this scenario?

My environment is SP 2010 SP1 on Win 2008 R2 SP1.



Nov 14, 2011 at 11:29 PM

I seem to have found a workaround for this issue - add the -verbose switch to the command-line.