Details:
It is possible that after an upgrade, or even initial installation of Spotfire Analyst 14.x, selecting Tools-> Statistica will result in an error message:
"The type initializer for 'Statistica.Spotfire.Extensions.DataFunctionHelper' threw an exception"
The corresponding error message in Analyst client's log file might be:
2024-02-06T21:10:41,931-05:00 2024-02-07 02:10:41,931 admin [Main Thread] ERROR Statistica.Spotfire.Extensions [(null)] - An error occurred:
System.TypeInitializationException: The type initializer for 'Statistica.Spotfire.Extensions.DataFunctionHelper' threw an exception. ---> System.TypeLoadException: Could not load type 'Spotfire.Dxp.Internal.Utilities.SharedMemoryStream' from assembly 'Spotfire.Dxp.Internal, Version=56.2.18020.4056, Culture=neutral, PublicKeyToken=789861576bd64dc5'.
at Statistica.Spotfire.Extensions.DataFunctionHelper..cctor()
--- End of inner exception stack trace ---
at Statistica.Spotfire.Extensions.DataFunctionTool.ExecuteCore(Document context)
Resolution:
This issue is most likely to occur when outdated Statistica packages are deployed on Spotfire Server.
To resolve the issue, please download the newest versions of Statistica packages from our download site (https://revvitysignals.flexnetoperations.com/) and deploy them in your Spotfire Server.
For example, for Spotfire 14.0 LTS, the download file is:
TIB_stat-ext_14.1.0_win_spotfire_12_0_and_above.zip
Once the zip file is downloaded, extract it and locate two Spotfire package files - StatisticaEngine.spk and StatisticaExtension.spk. Remove previous version of these files from Spotfire Server's deployment area and save the deployment area:
Upload the two new packages and again save the deployment area. Once this is done, the version of Statistica packages should be listed as 14.1.0.8:
Finally, restart Spotfire Analyst client and allow it to be updated when prompted:
Reference: https://docs.tibco.com/products/tibco-statistica-14-1-0