"Could not read the selected data" when opening Excel file in Spotfire client

"Could not read the selected data" when opening Excel file in Spotfire client

book

Article ID: KB0070628

calendar_today

Updated On:

Products Versions
Spotfire Analyst 10.3, 10,4, 10,5, 10.6, 10.7

Description

When trying to open Excel files in the  Spotfire installed or web client, you get the following error message:

Error message: Could not read the selected data.

NullReferenceException at System.Windows.Forms:
Object reference not set to an instance of an object. (HRESULT: 80004003)

Stack Trace:
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
at Spotfire.Dxp.Forms.Application.FormsApplicationThread.InvokeOnUIThreadAndTransferTransactionStartPermission(ApplicationInvocation method)
at Spotfire.Dxp.Framework.DocumentModel.ThreadTransactionInfo.InvokeAndTransferCurrentInfo(ApplicationThread invoker, ApplicationInvocation method)
at Spotfire.Dxp.Forms.Application.FormsProgressService.PerformPrompt(Func`1 promptMethod)
at Spotfire.Dxp.Forms.WebView.FormsAddDataController.InvokePromptingOperation(String title, String description, AddDataPromptingOperation operation, Action`1 onFinished)

 

Issue/Introduction

When opening an Excel file in Spotfire client, you get the error message "Could not read the selected data". This particular issue has been addressed in hotfixes and later releases.

Resolution

This issue has been addressed from version 10.8, as well as in hotfix HF-011 for 10.3, and hotfix HF-001 for 10.7.

Note: other variants of this general Excel-import issue (also resulting in the same "Error message: Could not read the selected data." but with a different stack trace from the one documented here) have been reported. If you encounter that, please contact Support.

Additional Information

List of hotfixes for Spotfire Clients (Analyst, Web Player (Consumer/Business Author) and Automation Services) in the Community