Products | Versions |
---|---|
Spotfire Analyst | 7.0 and higher |
When using an OData data connector to connect to a SharePoint list, you may see the following ERROR from the TIBCO Spotfire installed client:
An exception was thrown by the data connection. Exception text: System.NullReferenceException: Object reference not set to an instance of an object. at Spotfire.Dxp.Data.Access.CancellationHelper.Execute(CancellationToken token, Action action) at Spotfire.Dxp.Data.Access.CancellationHelper.Execute[T](CancellationToken token, Func`1 function) at Spotfire.Dxp.Data.Adapters.OData.ODataAdapterConnection.GetSchemaCore(CancellationToken cancellationToken, ReadOnlyCollection`1 tableSelection, AdapterDataSchema& adapterSchema) at Spotfire.Dxp.Data.Access.Adapters.DataAdapterConnection.GetSchema(CancellationToken cancellationToken, ReadOnlyCollection`1 tableSelection, AdapterDataSchema& adapterSchema) at Spotfire.Dxp.Data.Access.Adapters.DataAdapter.TryGetSchema(IDataAdapterExecutionContext executionContext, AdapterCredentialsValue credentials, CancellationToken cancellationToken, ReadOnlyCollection`1 tableSelection, AdapterDataSchema& adapterDataSchema) at Spotfire.Dxp.Data.Access.Adapters.DataAccessDataSourceLink.<>c__DisplayClass38.<GetSchema>b__35(CancellationToken token) at Spotfire.Dxp.Data.Access.Adapters.DataAccessDataSourceLink.ExecuteAdapterMethod(ImpersonationPolicy impersonationPolicy, AdapterMethodDelegate method, Nullable`1 cancellationToken)
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <code/> message xml:lang="en-US">An error occurred while processing this request.</message> </error>Then this means that the URL (http://<address>/ListData.svc/$metadata) you are connecting to is broken, or is no longer a valid ODATA URL, and the issue is not within Spotfire's control. One possible issue is the list name starts with a number. If so, rename the list and start with a letter. Work with your SharePoint admin to address the issue to ensure the list URL is valid.