2016-04-28 71 views
0

我无法找到此错误的任何搜索结果:电源查询错误 - 无法获取Range类NumberFormat属性

Unable to **get** the NumberFormat property of the Range class 

有吨关于这个Excel错误的搜索结果:

Unable to **set** the NumberFormat property of the Range class 

这里是错误截图。

enter image description here

使用VBA刷新电源查询时,我得到这个错误,但不能直接刷新查询时:

ThisWorkbook.Worksheets("mySheet").Range("myQueryRange").ListObject.QueryTable.Refresh 

这是错误消息:

Error Message: 

Unable to get the NumberFormat property of the Range class 

Stack Trace: 

Microsoft.Mashup.Client.ClientShared.Com.ComWrapperException: Unable to get the NumberFormat property of the Range class ---> System.Runtime.InteropServices.COMException: Unable to get the NumberFormat property of the Range class 
    --- End of inner exception stack trace --- 
    at Microsoft.Mashup.Client.ClientShared.Com.ComWrapper.InvokeMember(String memberName, BindingFlags bindingFlags, Object[] args) 
    at Microsoft.Mashup.Client.Excel.Renderers.TableRenderer.ApplyColumnFormats(IListObject listObject, FillColumnType[] columnTypes, FillColumnType[] previousColumnTypes) 
    at Microsoft.Mashup.Client.Excel.Renderers.TableRenderer.ApplyFormatting(IApplication application, IListObject listObject, FillColumnType[] columnTypes, IEnumerable`1 recordFieldTypes, FillColumnType[] previousColumnTypes) 
    at Microsoft.Mashup.Client.Excel.Shim.AddInFillServices.<>c__DisplayClass19.<PerformPostRefreshFixups>b__17() 
    at Microsoft.Mashup.Client.Excel.BufferedPainter.<>c__DisplayClass1.<TryPaint>b__0() 
    at Microsoft.Mashup.Client.Excel.BufferedPainter.TryPaint(Func`1 paintAction) 
    at Microsoft.Mashup.Client.Excel.BufferedPainter.TryPaint(IApplication application, Func`1 paintAction) 
    at Microsoft.Mashup.Client.Excel.FillManager.RefreshFillSession.CompleteRefresh(IWorkbook workbook, Boolean onTimer) 
    at Microsoft.Mashup.Client.Excel.FillManager.RefreshFillSession.UpdateRefreshStatus(IWorkbook workbook, Boolean onTimer) 
    at Microsoft.Mashup.Client.Excel.FillManager.RefreshFillSession.ResumeFill(Boolean onTimer) 
    at Microsoft.Mashup.Client.Excel.FillManager.UpdateQueries() 
    at Microsoft.Mashup.Client.Excel.FillManager.<OnFillUpdateTimerTick>b__5() 
    at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action) 

Invocation Stack Trace: 

    at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace() 
    at Microsoft.Mashup.Client.ClientShared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace) 
    at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.<>c__DisplayClass1.<HandleException>b__0() 
    at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.HandleException(Exception e) 
    at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action) 
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

任何想法在发生什么?

我的环境:

Windows 7的 Excel 2010的64位 功率查询版本:2.29.4217.1861

+0

我不知道,但微软的家伙谁有时在这里回复可能需要您的Excel和Power Query版本详细信息。 –

回答

0

如果你点击发送,一皱眉按钮,你可以发送错误信息到我们的优秀的故障排除队也许我们之前已经看到过,但是我们在我们的bug数据库中没有发现任何问题。

(为了节省您的时间,我们可能会推荐的第一件事就是尝试更新电源查询插件,最新版本是2.32。)

+0

不幸的是,我们使用Lotus Notes,因此发送一个皱眉不能打开电子邮件。此外,我的管理权限有限,不能立即更新Power Query。 – curtisp

+1

您可以收集您的M查询,跟踪文件和堆栈跟踪并将其发送到[email protected]? (要启用跟踪:Power Query功能区 - >选项 - >诊断 - >启用电源查询跟踪复选框。单击打开跟踪文件夹链接可以找到跟踪日志。) –

相关问题