2014-09-21 27 views
1

我試圖在Spotfire信息設計器中創建一個信息鏈接,並不斷收到此錯誤。我可以訪問數據庫和驗證的列以及數據庫。任何幫助真的很感激。無法在Spotfire中創建信息鏈接

` Error message: Could not open information link. 

    TargetInvocationException at Spotfire.Dxp.Framework: 
    Exception has been thrown by the target of an invocation. (HRESULT: 80131604) 

Stack Trace: 
    at Spotfire.Dxp.Framework.ApplicationModel.ProgressService.ExecuteWithProgress(String title, String description, ProgressOperation operation) 
    at Spotfire.Dxp.Forms.Data.InformationDesigner.DesignerFormController.ExecuteInformationLink(CachedInformationLinkElement informationLink) 


ImportException at Spotfire.Dxp.Data: 
Failed to execute data source query. (HRESULT: 80131500) 

Stack Trace: 
    at Spotfire.Dxp.Data.DataSourceConnection.ExecuteQuery2() 
    at Spotfire.Dxp.Data.DataFlow.Execute() 
    at Spotfire.Dxp.Data.DataFlow.DataFlowConnection.ExecuteQueryCore2() 
    at Spotfire.Dxp.Data.DataSourceConnection.ExecuteQuery2() 
    at Spotfire.Dxp.Data.Producers.SourceColumnProducer.<>c__DisplayClass11.<GetColumnsAndProperties>b__e() 
    at Spotfire.Dxp.Framework.ApplicationModel.Progress.ExecuteSubtask(String title, ProgressOperation operation) 
    at Spotfire.Dxp.Data.Producers.SourceColumnProducer.GetColumnsAndProperties(DataSourceConnection connection) 
    at Spotfire.Dxp.Data.Persistence.DataItem.PerformUpdate(SourceColumnProducer producer, DataSourceConnection connection) 
    at Spotfire.Dxp.Data.Persistence.DataItem.Update(SourceColumnProducer producer, DataSourceConnection connection) 
    at Spotfire.Dxp.Data.Persistence.DataPool.<LoadData>d__1.MoveNext() 
    at Spotfire.Dxp.Data.Producers.SourceColumnProducer.ConfigureAndLoadData() 
    at Spotfire.Dxp.Framework.DocumentModel.Node.ConfigureSubTree() 
    at Spotfire.Dxp.Framework.DocumentModel.Node.<ConfigureSubTree>b__10(Node node) 
    at Spotfire.Dxp.Framework.DocumentModel.Node.ConfigureSubTree() 
    at Spotfire.Dxp.Framework.DocumentModel.Node.<ConfigureSubTree>b__10(Node node) 
    at Spotfire.Dxp.Framework.DocumentModel.Node.ConfigureSubTree() 
    at Spotfire.Dxp.Framework.DocumentModel.Node.<ConfigureSubTree>b__10(Node node) 
    at Spotfire.Dxp.Framework.DocumentModel.State.NodeState.ForEachChild(IDocumentNodeChild[] children, Action`1 action) 
    at Spotfire.Dxp.Framework.DocumentModel.Node.ConfigureSubTree() 
    at Spotfire.Dxp.Framework.ApplicationModel.Progress.ExecuteSubtask(String title, IndeterminateProgressFormatter progressFormatter, ProgressSpeedFormatter speedFormatter, ProgressOperation operation) 
    at Spotfire.Dxp.Framework.DocumentModel.DocumentNode.ConfigureAndAttachFromNew() 
    at Spotfire.Dxp.Framework.DocumentModel.DocumentNode.AttachSubTreeWhileExecuting(UndoableNode newOwner) 
    at Spotfire.Dxp.Framework.DocumentModel.DocumentNode.AttachToUndoableNode(UndoableNode newOwner) 
    at Spotfire.Dxp.Framework.DocumentModel.UndoableKeyedCollection`2.<>c__DisplayClass6.<Insert>b__5() 
    at Spotfire.Dxp.Framework.DocumentModel.Node.Spotfire.Dxp.Framework.DocumentModel.INode.InternalTransaction(Executor executor) 
    at Spotfire.Dxp.Framework.DocumentModel.UndoableKeyedCollection`2.Insert(Int32 index, TNode item) 
    at Spotfire.Dxp.Data.DataTableCollection.<>c__DisplayClass11.<Add>b__10() 
    at Spotfire.Dxp.Framework.DocumentModel.Node.Spotfire.Dxp.Framework.DocumentModel.INode.InternalTransaction(Executor executor) 
    at Spotfire.Dxp.Data.DataTableCollection.Add(String dataTableName, DataSource dataSource, Boolean autoCreateFilters) 
    at Spotfire.Dxp.Application.PartiallyOpenedDataSource.<LoadData>d__0.MoveNext() 
    at Spotfire.Dxp.Application.AnalysisApplication.<OpenPartiallyOpenedDocument>d__34.MoveNext() 
    at Spotfire.Dxp.Application.AnalysisApplication.<OpenDataSource>d__1b.MoveNext() 
    at Spotfire.Dxp.Application.AnalysisApplication.ConsumePromptRequests(IEnumerable`1 prompts) 
    at Spotfire.Dxp.Application.AnalysisApplication.Open(DataSource source, DocumentOpenSettings settings) 
    at Spotfire.Dxp.Forms.Data.Import.DataSourceFactoryService.OpenDataSourceWithoutPrompting(DataSource dataSource, DocumentOpenSettings documentOpenSettings, IServiceProvider serviceProvider) 
    at Spotfire.Dxp.Forms.Data.Import.DataSourceFactoryService.OpenDataSource(InformationLinkDataSource dataSource, DocumentOpenSettings documentOpenSettings, IServiceProvider serviceProvider) 
    at Spotfire.Dxp.Forms.Data.InformationDesigner.DesignerFormController.<>c__DisplayClass2.<ExecuteInformationLink>b__0() 
    at Spotfire.Dxp.Forms.Application.FormsProgressService.ProgressThread.DoOperationLoop() 


InformationModelException at Spotfire.Dxp.Data: 
An Internal Error has occurred. com.spotfire.ws.dat.OperatorException: unexpected exception (HRESULT: 80131500) 

Stack Trace: 
    at Spotfire.Dxp.Data.InformationModel.InternalInformationModelManager.DataStream.GetNextBlock() 
    at Spotfire.Dxp.Data.InformationModel.InternalInformationModelManager.DataStream.Read(Byte[] buffer, Int32 offset, Int32 count) 
    at Spotfire.Dxp.Internal.Utilities.SeekableStream.Read(Byte[] buffer, Int32 offset, Int32 count) 
    at System.IO.BinaryReader.FillBuffer(Int32 numBytes) 
    at System.IO.BinaryReader.ReadUInt16() 
    at Spotfire.Dxp.Data.Formats.Sbdf.SbdfSectionHeader.ReadSectionType(BinaryReader reader, SbdfSectionTypeId expectedType) 
    at Spotfire.Dxp.Data.Import.SbdfDataRowReader.DelayedInit() 
    at Spotfire.Dxp.Data.Import.InformationLinkDataSourceConnection.ExecuteQueryCore2() 
    at Spotfire.Dxp.Data.DataSourceConnection.ExecuteQuery2() 


InformationModelServiceException at Spotfire.Dxp.Services: 
An Internal Error has occurred. com.spotfire.ws.dat.OperatorException: unexpected exception (HRESULT: 80131509) 

Stack Trace: 
    at Spotfire.Dxp.Services.WebServiceBase`1.InvokeService[T](ServiceMethod`1 serviceMethod, ExceptionFactoryMethod exceptionFactoryMethod) 
    at Spotfire.Dxp.Data.InformationModel.InternalInformationModelManager.DataStream.GetNextBlock()` 

回答

1

您是否有權訪問數據庫日誌,因爲它可能對我有幫助。有一個基於權限修改的解析類似的帖子。 Spotfire通過可能沒有數據庫權限的用戶訪問數據庫,並且我不是在談論您提供和驗證的數據庫用戶,而是關於Spotfire使用的.NET用戶的更多信息。

+0

是的,我可以用相同的模式從不同的表中以相同的方式創建和提取數據,但在一個表中顯示此錯誤。 – 2014-09-23 20:45:33

+0

所以它似乎你必須調查表結構和數據,因爲權限似乎不是一個問題,如果它適用於不同的表,但你probaby得到了相同的結論 - 這是更多的數據類型問題或數據轉換.. – 2014-09-24 11:53:11

+0

問題是我能夠在Oracle中運行sql查詢而沒有任何問題..不知道爲什麼我不能使用相同的查詢... – 2014-09-24 20:31:03

1

您運行的是哪種Spotfire版本?

如果您有權訪問Spotfire日誌,則應該有一個server.log和一個sql.log。

您應該能夠確定Spotfire在sql.log中執行的確切查詢 - 因爲它失敗了,它應該與您的用戶ID和信息鏈接名稱一起出現,並且應該記錄爲已取消。

確切的數據庫錯誤應該在server.log中,並且時間戳記對應於sql.log取消的時間戳。

1

編輯信息鏈接並驗證每列的數據類型。最常見的情況是在Spotfire中將DATE列設置爲LongInteger。