The automation completes successfully. However, occasionally a pop-up window that says the TargetInvocationException Error shows up. The job finishes without problems, but it seems like TDP has a problem shutting down.
Toad encountered a serious error and must close.
Please save your data and close the application.
we apologize for the inconvenience.
TargetInvocationException
Exception has been thrown by the target of an invocation.
Stack Trace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)