Product: TIBCO Spotfire®
Unable to open file using data connector on TIBCO Spotfire Web Player. Error: "Sequence contains more than one matching element".
Product: TIBCO Spotfire Connectors, TIBCO Spotfire Web Player (incl. Consumer and Business Author)
Version: 6.0, 6.5, 7.0, 7.5
OS: All Supported Operating Systems
--------------------
As TIBCO Spotfire Data Connectors are client side connectors, they need to be configured on each client that will run analysis using them. This includes the TIBCO Spotfire Web Player server. As such, a file that opens fine within your installed client may not open correctly in the TIBCO Spotfire Web Player server machine if this has not been configured correctly. In this article we will go through one of those cases, where you see the error message: "Sequence contains more than one matching element".
The following error message can be seen in the TIBCO Spotfire Web Player log file:
ERROR 2016-03-24 11:25:59,097 [plk500v3hkgs3erchupwgw5p, 25484, WorkThread 25,user@domain WAT 1] Spotfire.Dxp.Web.Prompting.PromptHandler+PromptItem - System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Spotfire.Dxp.Data.Access.Adapters.AuthenticationModeService.GetAuthenticationMode(String adapterName)
at Spotfire.Dxp.Data.Access.Adapters.DataAccessDataSourceLink.NeedsToPromptForCredentials(DataAdapterExecutionContext executionContext, TransientCredentials transientCredentials)
at Spotfire.Dxp.Data.Access.Modeling.ManagedDataConnection.d__5.MoveNext()
at Spotfire.Dxp.Data.DataManager.d__93.MoveNext()
at Spotfire.Dxp.Data.DataManager.d__4c.MoveNext()
at Spotfire.Dxp.Data.DataManager.d__38.MoveNext()
at Spotfire.Dxp.Data.DataManager.d__1f.MoveNext()
at Spotfire.Dxp.Application.PartiallyOpenedDxpFile.d__0.MoveNext()
at Spotfire.Dxp.Application.AnalysisApplication.d__34.MoveNext()
at Spotfire.Dxp.Web.WebAnalysis.d__bc.MoveNext()
at Spotfire.Dxp.Web.WebAnalysis.d__c4.MoveNext()
at Spotfire.Dxp.Web.WebAnalysis.d__e0.MoveNext()
at Spotfire.Dxp.Web.Prompting.PromptHandler.PromptItem.PromptNext()
at Spotfire.Dxp.Web.Prompting.PromptHandler.PromptItem.Execute()
ERROR 2016-03-24 11:25:59,159 [plk500v3hkgs3erchupwgw5p, 25484, WorkThread 25, user@domain WAT 1] Spotfire.Dxp.Web.WebAnalysis - Unable to open file '/folder/Analysis'
System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Spotfire.Dxp.Data.Access.Adapters.AuthenticationModeService.GetAuthenticationMode(String adapterName)
An adapter is listed more than once in the WebAuthenticationMode section of the TIBCO Spotfire Web Player server configuration.
In 7.5m the name of this file is Spotfire.Dxp.Worker.Host.exe.config .
Pre 7.5, the name of this file is Web.Config .
The section mentioned looks like the following.
...
The issue can be seen if one by mistake adds the same adapter twice, for example:
...
Delete the unwanted duplicate row for the data connector you are using and save the configuration. Restart the TIBCO Spotfire Web Player Server.
Comments
0 comments
Article is closed for comments.