Complementos Power Query y Power Pivot para Excel 2016 dejaron de funcionar bien en Windows 10

Copper Contributor

Los complementos Power Query y Power Pivot para Excel 2016 estaban funcionando bien y ahora no. He intentado muchas opciones y todavía no doy con la solución.

 

El mensaje de error al tratar de abrir el editor de Power Query de un archivo que funcionaba correctamente hasta la semana pasada es es siguiente:

 

Feedback Type:
Frown (Error)

Error Message:
No se pudo recuperar el generador de clases COM para el componente con CLSID {926749FA-2615-4987-8845-C33E65F2B957} debido al siguiente error: 800736b1 No se pudo iniciar la aplicación; la configuración en paralelo no es correcta. Consulte el registro de eventos de la aplicación o use la herramienta sxstrace.exe de la línea de comandos para obtener más detalles. (Excepción de HRESULT: 0x800736B1).

Stack Trace:
en Microsoft.Mashup.Client.UI.Windows.Ribbon.RibbonCoreBase.InitializeRibbon(IntPtr handle, CultureInfo currentUICulture)
en Microsoft.Mashup.Client.UI.Shared.Ribbon.EditorRibbonControlBase.InitializeControl()
en Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)

Stack Trace Message:
No se pudo recuperar el generador de clases COM para el componente con CLSID {926749FA-2615-4987-8845-C33E65F2B957} debido al siguiente error: 800736b1 No se pudo iniciar la aplicación; la configuración en paralelo no es correcta. Consulte el registro de eventos de la aplicación o use la herramienta sxstrace.exe de la línea de comandos para obtener más detalles. (Excepción de HRESULT: 0x800736B1).

Invocation Stack Trace:
en Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
en Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
en Microsoft.Mashup.Client.UI.Shared.FeedbackErrorInfo..ctor(String message, Exception exception, Nullable`1 stackTraceInfo, String messageDetail)
en Microsoft.Mashup.Client.UI.Windows.UIHost.RaiseErrorDialog(IWindowHandle activeWindow, FeedbackPackageInfo feedbackPackageInfo, Exception e, LocalizedString dialogTitle, LocalizedString dialogMessage, Boolean useGDICapture)
en Microsoft.Mashup.Client.Excel.Native.NativeUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
en Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass15_0.<HandleException>b__0()
en Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.SendAndMarshalExceptions(SynchronizationContext context, Action callback)
en Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
en Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialogBase`1.DelayedInitializationExceptionHandler.HandleException(Exception e)
en Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
en Microsoft.Mashup.Client.UI.Shared.EditorDialogBase.OnWindowCreated()
en Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialogBase`1.OnWebDialogWindowCreated(Object sender, EventArgs e)
en Microsoft.Mashup.Host.Models.EventHandlerExtensions.RaiseEvent(EventHandler handler, Object sender)
en Microsoft.Mashup.Client.UI.Windows.DialogWindowBase.OnHandleCreated(EventArgs e)
en System.Windows.Forms.Control.WmCreate(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.Form.WmCreate(Message& m)
en System.Windows.Forms.Form.WndProc(Message& m)
en Microsoft.Mashup.Client.UI.Windows.WebDialogWindow.WndProc(Message& message)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
en System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
en System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
en System.Windows.Forms.Control.CreateHandle()
en System.Windows.Forms.Form.CreateHandle()
en System.Windows.Forms.Control.get_Handle()
en System.Windows.Forms.WebBrowserSiteBase.System.Windows.Forms.UnsafeNativeMethods.IOleInPlaceSite.GetWindowContext(IOleInPlaceFrame& ppFrame, IOleInPlaceUIWindow& ppDoc, COMRECT lprcPosRect, COMRECT lprcClipRect, tagOIFI lpFrameInfo)
en System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
en System.Windows.Forms.WebBrowserBase.DoVerb(Int32 verb)
en System.Windows.Forms.WebBrowserBase.TransitionFromRunningToInPlaceActive()
en System.Windows.Forms.WebBrowserBase.TransitionUpTo(AXState state)
en System.Windows.Forms.WebBrowser.get_AxIWebBrowser2()
en System.Windows.Forms.WebBrowser.get_Document()
en System.Windows.Forms.WebBrowser.get_ReadyState()
en Microsoft.Mashup.Client.UI.Windows.HostedWebBrowser.Microsoft.Mashup.Client.UI.Shared.IHostedWebBrowser.get_ReadyState()
en Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.EnsureWebBrowserInitialized()
en Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.ShowModal(IWindowHandle owner)
en Microsoft.Mashup.Client.Excel.QueriesEditorWindow.ShowModal(IUIHost uiHost, FormulaHistoryManager formulaHistoryManager, ApplicationTracingHost applicationTracingHost, ExcelServices excelServices, ConnectionManager connectionManager, DialogManager dialogManager, FillManager fillManager, PackageManager packageManager, IFileDialogManager fileDialogManager, ITelemetryService telemetryService, IWindowHandle ownerWindow, IWorkbookIdentity workbookIdentity, QueriesEditorParameters queriesEditorParameters, Queries queries)
en Microsoft.Mashup.Client.Excel.UI.LegacyMashupClientUIServices.ShowQueriesEditorWindow(IUIHost uiHost, FormulaHistoryManager formulaHistoryManager, ApplicationTracingHost applicationTracingHost, ExcelServices excelServices, ConnectionManager connectionManager, DialogManager dialogManager, FillManager fillManager, PackageManager packageManager, IFileDialogManager fileDialogManager, ITelemetryService telemetryService, IWindowHandle ownerWindow, IWorkbookIdentity workbookIdentity, QueriesEditorParameters queriesEditorParameters, Queries queries)
en Microsoft.Mashup.Client.Excel.QueriesEditorWindowManager.ShowModalQueriesEditorWindow(IWindowHandle ownerWindow, IWorkbookIdentity workbookIdentity, QueriesEditorParameters queriesEditorParameters, Queries queries, IUndoScope undoScope)
en Microsoft.Mashup.Client.Excel.QueriesEditorWindowManager.<>c__DisplayClass13_1.<ShowModalQueriesEditorWindow>b__1(IUndoScope undoScope)
en Microsoft.Mashup.Client.Excel.Shim.NativeUndoServices.<>c__DisplayClass6_0.<InvokeUndoableAction>b__0()
en Microsoft.Mashup.Client.Excel.Shim.NativeWorkbookStorageServices.Microsoft.Mashup.Client.Excel.Shim.IDeferredStorageInvoker.InvokeDeferredStorageAction(IWorkbook workbook, Action action)
en Microsoft.Mashup.Client.Excel.Shim.NativeCoAuthServices.InvokeCoauthAction(IWorkbook workbook, UndoableActionType actionType, Action action)
en Microsoft.Mashup.Client.Excel.Shim.NativeUndoServices.InvokeUndoableAction(IWorkbook workbook, UndoableActionType actionType, Action`1 action)
en Microsoft.Mashup.Client.Excel.QueriesEditorWindowManager.<>c__DisplayClass13_0.<ShowModalQueriesEditorWindow>b__0()
en Microsoft.Mashup.Client.Excel.Shim.NativeCoAuthServices.NotifyGetDataPresence(IWorkbook workbook, Action action)
en Microsoft.Mashup.Client.Excel.QueriesEditorWindowManager.ShowModalQueriesEditorWindow(IWindowHandle ownerWindow, IWorkbookIdentity workbookIdentity, QueriesEditorParameters queriesEditorParameters, Queries queries)
en Microsoft.Mashup.Client.Excel.DialogManager.TryShowModalEditor(IWindowHandle ownerWindow, IWorkbook workbook, Query query, Boolean isNewQuery, Boolean navigatorExpanded)
en Microsoft.Mashup.Client.Excel.ExcelRibbonHandler.<>c__DisplayClass58_0.<OnShowEditorAction>b__0(IWorkbook workbook)
en Microsoft.Mashup.Client.Excel.Shim.IWindowContextExtensions.TryInvokeOnParentWorkbook(IWindowContext windowContext, Action`1 action)
en Microsoft.Mashup.Client.Excel.ExcelRibbonHandler.OnShowEditorAction(IWindowContext windowContext)
en Microsoft.Mashup.Client.Excel.NativeRibbonHandler.<>c__DisplayClass6_0.<OnRibbonButtonAction>b__0()
en Microsoft.Mashup.Client.Excel.NativeRibbonHandler.<>c__DisplayClass17_0.<InvokeRibbonActionAndHandleExceptions>b__0()
en Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
en Microsoft.Mashup.Client.Excel.NativeRibbonHandler.InvokeRibbonActionAndHandleExceptions(Action action)
en Microsoft.Mashup.Client.Excel.NativeRibbonHandler.OnRibbonButtonAction(IntPtr uiFrame, Int32 buttonID)
en Microsoft.Mashup.Client.Excel.NativeRibbonCallbacks.<>c__DisplayClass3_0.<OnRibbonButtonActionCallback>b__0()
en Microsoft.Mashup.Client.Excel.Native.NativeExcelCallbackInvoker.InvokeAndReturnHResult(Action action)
en Microsoft.Mashup.Client.Excel.NativeRibbonCallbacks.OnRibbonButtonActionCallback(IntPtr uiFrame, Int32 buttonID)


Error Code:
-2147010895 (0x800736B1)

Supports Premium Content:
True

Formulas:


section Section1;

shared #"Avanzado - 4 - Power Query - Ventas por vendedor" = let
Origen = Folder.Files("C:\Users\jreve\Google Drive\Cursos\Excel\Ejemplos excel\Avanzado\Avanzado - 1 - Power Query - Ventas por estado"),
#"Archivos ocultos filtrados1" = Table.SelectRows(Origen, each [Attributes]?[Hidden]? <> true),
#"Invocar función personalizada1" = Table.AddColumn(#"Archivos ocultos filtrados1", "Transformar archivo", each #"Transformar archivo"([Content])),
#"Filas filtradas" = Table.SelectRows(#"Invocar función personalizada1", each true),
#"Columnas con nombre cambiado1" = Table.RenameColumns(#"Filas filtradas", {"Name", "Source.Name"}),
#"Otras columnas quitadas1" = Table.SelectColumns(#"Columnas con nombre cambiado1", {"Source.Name", "Transformar archivo"}),
#"Columna de tabla expandida1" = Table.ExpandTableColumn(#"Otras columnas quitadas1", "Transformar archivo", Table.ColumnNames(#"Transformar archivo"(#"Archivo de ejemplo"))),
#"Tipo cambiado" = Table.TransformColumnTypes(#"Columna de tabla expandida1",{{"Source.Name", type text}, {"Vendedor", type any}, {"Nombre", type any}, {"Factura", type any}, {"Fecha", type any}, {"Pedido", type any}, {"Nº ped.cliente", type any}, {"Tipo", type any}, {"Tipo Doc.", type any}, {"Cond. Pago", type any}, {"Estado", type any}, {"Cód. Cliente", type any}, {"Cód. Gpo de Cliente", type any}, {"Grupo de Cliente", type any}, {"Grupo Cta.", type any}, {"Descripción de Cliente", type any}, {" Año", type any}, {"Mes", type any}, {"Cód. Producto", type any}, {"Tipo Mat.", type any}, {"Descripción del Producto", type any}, {"Familia", type any}, {"Grupo", type any}, {"SubGrupo", type any}, {"Marca", type any}, {"Desc. Marca", type any}, {"Proveedor", type any}, {"Nombre del Proveedor", type any}, {"Clasificacion", type any}, {"Region", type any}, {"Sector", type any}, {"Canal", type any}, {"Cantidad UMV", type any}, {"Unidad de Medida", type any}, {"Cantidad UMB", type any}, {"Unidad de Medida2", type any}, {" Valor Neto Bs.", type any}, {"Moneda", type any}})
in
#"Tipo cambiado";

shared Parámetro1 = #"Archivo de ejemplo" meta [IsParameterQuery=true, BinaryIdentifier=#"Archivo de ejemplo", Type="Binary", IsParameterQueryRequired=true];

shared #"Transformar archivo de ejemplo" = let
Origen = Excel.Workbook(Parámetro1, null, true),
Tabla1_Table = Origen{[Item="Tabla1",Kind="Table"]}[Data]
in
Tabla1_Table;

shared #"Archivo de ejemplo" = let
Origen = Folder.Files("C:\Users\jreve\Google Drive\Cursos\Excel\Ejemplos excel\Avanzado\Avanzado - 1 - Power Query - Ventas por estado"),
Navegación1 = Origen{0}[Content]
in
Navegación1;

[ FunctionQueryBinding = "{""exemplarFormulaName"":""Transformar archivo de ejemplo""}" ]
shared #"Transformar archivo" = let
Origen = (Parámetro1 as binary) => let
Origen = Excel.Workbook(Parámetro1, null, true),
Tabla1_Table = Origen{[Item="Tabla1",Kind="Table"]}[Data]
in
Tabla1_Table
in
Origen;

4 Replies

@jrevetie 

As variant some system file was corrupted. You may try sfc / scannow from Command Prompt with admin rights. Perhaps Office / PQ add-in repair helps.

I´ve already tried it, but it did not repair the error.

I also tried reinstalling Microsoft Visual C++

@jrevetie 

That's more .net framework which PQ actively uses. I'd check event viewer if it gives more information. 

Anyway, had no such case in my practice with PQ.

In in event viewer I see two error msgs, not only with Power Query or Power Pivot but also with Power BI desktop´s transform option:

First err msg:

Error al generar el contexto de activación para "C:\WINDOWS\system32\UIRibbon.dll". No se encontró el ensamblado dependiente Microsoft.Windows.GdiPlus,language="&#x2a;",processorArchitecture="&#x2a;",publicKeyToken="6595b64144ccf1df",type="win32",version="1.1.6000.16386". Use sxstrace.exe para obtener un diagnóstico detallado.

Second err msg:

No se pudo programar el servicio de protección de software para reiniciarse a las 2021-07-03T04:00:07Z. Código de error: 0x80070002.