Hi,
I have a spreadsheet (Running Excel 2013) which connects to Team Foundation Server 2013.
The spreadsheet links to a query which I can normally refresh or publish from. I also have a number of columns with calculations based on the Query columns and some conditional formatting.
Yesterday, I've opened the spreadsheet and received the following error:
---------------------------
Microsoft Excel
---------------------------
TF208103: The initialization of the document to connect to Team Foundation Server was not successful. The document will close. You can try to connect again by re-opening the document.
If repeated attempts fail to initialize the document and you need to work with the data in the document, then you should disable the Team Foundation Add-in. For new or other documents bound to Team Foundation Server, you will need to re-enable the Team
Foundation Add-in.
---------------------------
OK
---------------------------
This is the THIRD time this has happened and each previous time I have ended up recreating the spreadsheet. I am able to easily make another spreadsheet and connect to TFS and read my query. I have changed nothing on my computer in regards to Office or Plugins and to my knowledge TFS has not changed since this last opened successfully.
The error really tells me nothing about what the actual problem is.
If I do what it suggests and disable the plugin then I can open the spreadsheet but can obviously then not refresh or publish from it.
Occassionally, when I close that message, I get an Excel Crash message too with the following dump:
Error Message:Exception from HRESULT: 0x800A01A8
Stack Trace:
Microsoft.Mashup.Client.Excel.ExcelShim.ExcelShimException: Exception from HRESULT: 0x800A01A8 ---> System.Runtime.InteropServices.COMException (0x800A01A8): Exception from HRESULT: 0x800A01A8
--- End of inner exception stack trace ---
at Microsoft.Mashup.Client.Excel.ExcelShim.ExcelShimObject.InvokeMember(String memberName, BindingFlags bindingFlags, Object[] args)
at Microsoft.Mashup.Client.Excel.ExcelShim.Workbook.get_Saved()
at Microsoft.Mashup.Client.Excel.ExcelShim.WorkbookUtilities.IsBlank(IWorkbook workbook)
at Microsoft.Mashup.Client.Excel.PackageManager.TryCreateWorkbookPackage(IWorkbook workbook, Byte[] externalPackageBytes, Boolean allowUserPrompt, WorkbookPackage& workbookPackage)
at Microsoft.Mashup.Client.Excel.PackageManager.OnWorkbookOpen(IWorkbook workbook)
at Microsoft.Mashup.Client.Excel.AddIn.<>c__DisplayClass29.<Excel_WorkbookOpen>b__28()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, String actionName, Action action)
Invocation Stack Trace:
at Microsoft.Mashup.Client.ClientShared.Ux.FloatingDialog.SimpleDialog.ErrorDialog.Show(IWin32Window owner, HostContext hostContext, IPackageManager packageManager, String message, Nullable`1 errorCode, String exceptionStackTrace, PackageReference sourcePackageReference)
at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.<>c__DisplayClass1.<HandleException>b__0()
at Microsoft.Mashup.Host.Document.DispatcherExtensions.<>c__DisplayClass4.<Invoke>b__3()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions[T](IExceptionHandler exceptionHandler, Func`1 func)
at Microsoft.Mashup.Host.Document.DispatcherExtensions.<>c__DisplayClass7`1.<Invoke>b__6()
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(Delegate method, Object[] args)
at Microsoft.Mashup.Host.Document.DispatcherExtensions.Invoke[T](Dispatcher dispatcher, IExceptionHandler exceptionHandler, Func`1 action)
at Microsoft.Mashup.Host.Document.DispatcherExtensions.Invoke(Dispatcher dispatcher, IExceptionHandler exceptionHandler, Action action)
at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.HandleException(Exception e)
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, String actionName, Action action)
at Microsoft.Mashup.Client.Excel.AddIn.Excel_WorkbookOpen(IWorkbook workbook)
at Microsoft.Mashup.Client.Excel.ExcelShim.Application.EventSink.WorkbookOpen(Workbook Wb)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Where can I go from here to restore my spreadsheet?
It is not reasonable to have to recreate it every time Excel/TFS decides it's not happy any more.
Thanks