2017-08-21 33 views
0

Power QueryとNpgsqlコネクタを使用して、私のMS Excel 2013 Pro +をPostgreSQL DBに接続しようとしています。Excel + npgsql + postgres。指定されたキャストが有効な例外ではありません

私はカスタムクエリ(例えば、select * from table)を実行しようとするまで、すべてがうまくいくようです。次に、エラーメッセージが表示されます: "指定されたcasは有効ではありません"。私はDB構造のブラウザを使用する場合 - 私はテーブルまたはビューを選択して 'ロード'を押すことができますが、それはまた私に同じエラーを与えている。

何か問題がありますか、コネクタにバグがありますか?

はここでExcelからスタックトレースです:

Feedback Type: 

しかめ面(エラー)

タイムスタンプ: 2017-08-21T09:14:00.7435203Z

現地時間: 2017-08- 21T11:14:00.7435203 + 02:00

製品バージョン: 2.48.4792.941(PQ-CY17SU07)(x86)

リリース: 7月、2017

エクセルのバージョン:15.0.4420.1017

エクセルインストール場所: C:の\ Program Files \ Microsoft Office \ Office15 \ EXCEL.EXE

IEのバージョン: 11.0.9600.17843

OSバージョン: のMicrosoft Windows NT 6.1.7601 Service Packの1(のx86 PL-PL)

CLRバージョン: 4.6.1以降[リリース番号= 394271]

ワークブックパッケージ情報: 1 * - EN-US、クエリグループ:0、fastCombine:障害者、runBackgroundAnalysis:真。

ピークワーキングセット: 268メガバイト

プライベートメモリ: 231メガバイト

ピーク仮想メモリ: 930メガバイト

エラーメッセージ: 指定されたキャストは有効ではありません。

スタックトレース: Microsoft.Mashup.Evaluator.Interface.ErrorException:指定されたキャストは無効です。 ---> Microsoft.Mashup.Evaluator.Interface.ErrorException:指定されたキャストは無効です。 ---> Microsoft.Mashup.Evaluator.Interface.ErrorException:指定されたキャストは無効です。 ---> System.InvalidCastException:指定されたキャストは無効です。 ---> System.InvalidCastException:指定されたキャストは無効です。 Microsoft.Mashup.Evaluator.RemotePageReaderでMicrosoft.OleDb.Serialization.OleDbPageWriter..ctor(ストリームstream、データテーブルschemaTable)でMicrosoft.OleDb.Serialization.PageWriter.WriteSchema(データテーブルschemaTable) で 。 <> c__DisplayClass7.b__0() マイクロソフトでは、Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTraceトレース、IEngineHost engineHost、IMessageChannelチャンネル、アクションアクション) ---内部例外スタックトレースの終わり--- Microsoft.Mashup.Evaluator.EvaluationHostで 。 <> c__DisplayClass7.b__6()Microsoft.Mashup.Common.SafeExceptions.IgnoreSafeExceptions(IEngineHostホスト、IHostTraceトレース、アクションアクション)Microsoft.Mashup.Evaluator.EvaluationHost.TryReportExceptionで (IHostTraceトレース、IEngineHost engineHost、IMessageChannelチャンネル、例外で Microsoft.Mashup.Evaluator.RemotePageReader.RunStub(IEngineHost engineHost、IMessageChannelチャネルのFunc 1 getPageReader) at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.<>c__DisplayClass11.<OnBeginGetDataReaderSource>b__f(EvaluationResult2 1結果)で例外Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptionsで) (IHostTraceトレース、IEngineHost engineHost、IMessageChannelチャネル、アクションアクション) Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Serviceで。 Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetDataReaderSource(IMessageChannelチャネル、BeginGetDataReaderSourceMessageメッセージ)Microsoft.Mashup.Evaluator.MessageHandlersで で<> c__DisplayClass1e 1.<OnBeginGetResult>b__1b() at Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action) at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetResult[T](IMessageChannel channel, BeginGetResultMessage message, Action 1アクション) 。 < Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannelチャネルでMicrosoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannelチャネル、メッセージ・メッセージ) で> c__DisplayClassa 1.<AddHandler>b__8(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.ChannelMessenger.OnMessageWithUnknownChannel(IMessageChannel baseChannel, MessageWithUnknownChannel messageWithUnknownChannel) at Microsoft.Mashup.Evaluator.MessageHandlers.<>c__DisplayClassa 1.b__8(IMessageChannelチャネル、メッセージ・メッセージ) 、メッセージMicrosoft.Mashup.Container.EvaluationContainerMain.Run(オブジェクト引数) でMicrosoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannelチャネル、メッセージ・メッセージ)Microsoft.Mashup.Evaluator.EvaluationHost.Run() であるメッセージ) でMicrosoft.Mashup.Evaluator.SafeThread2。 <> Microsoft.Mashup.Evaluator.SafeThread2でc__DisplayClass2.b__0(オブジェクトO) 。 <> Microsoft.Mashup.Evaluator.SafeThread2でc__DisplayClass15.b__14(オブジェクトO) 。 > c__DisplayClass2.b__1(オブジェクトo) 、Microsoft.Mashup.Container.EvaluationContainerMain.SafeRun(String [] args) at Microsoft.Mashup.Container.EvaluationContainerMain.Main(String [] args) ---内部の終わりマイクロソフトでMicrosoft.Mashup.Evaluator.RemoteEvaluationContainerFactory.Container.OnException(IMessageChannelチャンネル、ExceptionMessageメッセージ) でMicrosoft.Mashup.Evaluator.EvaluationHost.OnException(IEngineHost engineHost、IMessageChannelチャンネル、ExceptionMessageメッセージ) の例外スタックトレース--- .Mashup.Evaluator.MessageHandlers。 Microsoft.Mashup.EvaluatorでMicrosoft.Mashup.Evaluator.RemoteDocumentEvaluator.EvaluationThread(オブジェクトの状態) でMicrosoft.Mashup.Evaluator.RemoteDocumentEvaluator.RemoteEvaluation.Evaluate(ブールenableFirewall) で<> c__DisplayClassa 1.<AddHandler>b__8(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message) at Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](IMessageChannel channel) at Microsoft.Mashup.Evaluator.MessageBasedInputStream.ReadNextChunkAndCheckIfClosed() at Microsoft.Mashup.Evaluator.MessageBasedInputStream.ReadNextChunk() at Microsoft.Mashup.Evaluator.ChunkedInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at System.IO.BinaryReader.FillBuffer(Int32 numBytes) at System.IO.BinaryReader.ReadInt32() at Microsoft.Mashup.Evaluator.ITableSourceSerializationExtensions.ReadITableSource(BinaryReader reader) at Microsoft.Mashup.Evaluator.RemotePageReader.CreateProxy(IEngineHost engineHost, IMessageChannel channel, ExceptionHandler exceptionHandler) at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.DataReaderSourceRemoteEvaluation.GetResult(Boolean enableFirewall) at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.RemoteEvaluation.Evaluate(Boolean enableFirewall) --- End of inner exception stack trace --- at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.RemoteEvaluation 1.TryCompleteWithException(例外例外) .GlobalizedEvaluatorThreadPool。 <> c__DisplayClass4.b__3(オブジェクトs) 、Microsoft.Mashup.EvaluatorThreadPool.EvaluatorThread(オブジェクト状態) 、Microsoft.Mashup.Evaluator.SafeThread2 <> Microsoft.Mashup.Evaluator.SafeThread2でc__DisplayClass2.b__0(オブジェクトO) 。 <> Microsoft.Mashup.Evaluator.SafeThread2でc__DisplayClass15.b__14(オブジェクトO) 。 System.Threadingで<> System.Threading.ExecutionContext.RunInternalでSystem.Threading.ThreadHelper.ThreadStart_Contextでc__DisplayClass2.b__1(物体O) (オブジェクトの状態) (のExecutionContextのExecutionContext、ContextCallbackコールバック、オブジェクト状態、ブールpreserveSyncCtx) 。 System.Threading.ExecutionContext.Run(ExecutionContext executionContext、ContextCallbackコールバック、オブジェクト状態)のExecutionContext.Run(ExecutionContext executionContext、ContextCallbackコールバック、オブジェクト状態、ブールpreserveSyncCtx) System.Threadingで ThreadHelper.ThreadStart(オブジェクトobj) ---内部例外スタックトレースの終わり---

サーバースタックトレース:[0]に再スロー

例外:Microsoft.OleDb.AsyncResult 1.get_Value() at Microsoft.Mashup.OleDbProvider.DataHost.BufferingMashupEvaluator.BufferingMashupEvaluation.GetBufferedReaderSource(AsyncResult 1結果で )マイクロソフトのMicrosoft.Mashup.Host.ProviderShared.MashupResource.GetStatusで () :Microsoft.Mashup.OleDbProvider.DataHost.BufferingMashupEvaluator.BufferingMashupEvaluation.OnEvaluationComplete(AsyncResult`1結果)[1]で再スロー

例外で .Mashup.Client.Excel.Fill.PollingFillD Microsoft.Mashup.Client.Excel.Fill.PollingFillDownloadWorker.InvokeWorkerでownloadWorker.b__1() (Func`1アクション)

呼び出しスタックトレース: Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTraceで() Microsoft.Mashup.Client.ClientShared.StackTraceInfo..ctor(String exceptionStackTrace、String invocationStackTrace) at Microsoft.Mashup.Client.ClientShared.FeedbackErrorInfo..ctor(文字列メッセージ、Nullable 1 errorCode, String requestId, Exception exception) at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.<>c__DisplayClass1.<HandleException>b__0() at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.SendAndMarshalExceptions(SynchronizationContext context, Action callback) at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.HandleException(Exception e) at Microsoft.Mashup.Client.Excel.Fill.FillSession.HandleDownloaderException(IWorkbook workbook, Exception e) at Microsoft.Mashup.Client.Excel.Fill.PollingInitialFillSession.FillDownloadResult(IWorkbook workbook, Boolean onTimer) at Microsoft.Mashup.Client.Excel.Fill.PollingInitialFillSession.<>c__DisplayClass4.<ResumeFill>b__0() at Microsoft.Mashup.Client.Excel.Fill.IUndoServicesExtensions.<>c__DisplayClass2.<InvokeWithConditionalDiscardedUndoScope>b__0(IUndoScope undoScope) at Microsoft.Mashup.Client.Excel.Shim.AddInUndoServices.InvokeUndoableAction(IWorkbook workbook, UndoableActionType actionType, Action 1アクション) at Microsoft.Mashup.Client .Excel.Fill.IUndoServicesExtensions.InvokeWithConditionalDiscardedUndoScope(IUndoServices undoServices、ブール条件、IWorkbookワークブック、UndoableActionTypeアクションタイプ、アクションアクション)Microsoft.Mashup.Client.Client.Excel.PollingFillManager.b__7(IFillSession fillSession) 、Microsoft.Mashup.Client.ClientShared.Model.QueriesUtilitiesの でMicrosoft.Mashup.Client.Excel.Fill.PollingInitialFillSession.ResumeFill(Boolean onTimer)を返します。 Microsoft.MashupでForEachWithChangeScope Microsoft.Mashup.Client.Excel.PollingFillManager.b__6で[T](IEnumerableを1 items, Func 2 getQueries、アクション1 action) at Microsoft.Mashup.Client.Excel.Fill.FillManager.ForEachFillSessionByWorkbook(Action 1つのアクション)Microsoft.Mashup.Client.Excel.PollingFillManager.UpdateQueriesで () () .Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler、アクションアクション) 、Microsoft.Mashup.Client.Excel.PollingFillManager.OnFillUpdateTimerTick(Object sender、EventArgs eventArgs) at System.Windows.Forms.Timer.OnTick(EventArgs System.Windows.Forms.Timer.TimerNativeWindow.WndProc System.Windows.Forms.NativeWindow.Callbackで(メッセージ& M) (のIntPtr hWndは、MSGのInt32、のIntPtr WPARAM、LPARAMのIntPtr)

ユーザID AT E) : -ed65-4886-993e-0d6507a0de3f f1b43d3f

は、プレミアムコンテンツのサポート: 真

テレメトリ有効: 真

DPIスケール: 100%

式:

セクションセクション1;

共有# "DataRecords Campaign_000008" =( "10.100.120.18"、 "ContactDirect")、 DataRecords_Campaign_000008 =Źródło{[スキーマ= "DataRecords"、アイテム= "Campaign_000008"]} [ Źródło= PostgreSQL.Databaseを聞かせデータ] in DataRecords_Campaign_000008;

共有# "DataRecordsはCampaign_000008_ChangeLog" =( "10 Źródło= PostgreSQL.Databaseをしましょう。100.120.18" は、 " DataRecords_Campaign_000008_ChangeLogでContactDirect")、 DataRecords_Campaign_000008_ChangeLog =Źródło{[スキーマ= "DataRecords"、アイテム= "Campaign_000008_ChangeLog"]} [データ] ;

答えて

1

答えは:Npgsqlの3.2のバグ。 5 - インストール後3.1.9 - すべてが動作する;)

関連する問題