How to configure Spotfire Web Player to use mapped drive paths, such as S:\myshare\files.

How to configure Spotfire Web Player to use mapped drive paths, such as S:\myshare\files.

book

Article ID: KB0070384

calendar_today

Updated On:

Products Versions
Spotfire Web Player 7.5 and higher

Description

Description:
Spotfire Web Player can be set up to use UNC paths (such as \\myshare\myfiles). It can also be configured to use mapped drive paths (such as S:\myfile.txt).

Resolution

Step 1:  Create a Mapped drive.

The drive needs to be mapped on the Node Manager machine:

  • Create a .bat file containing the drive mapping, e.g., net use S: \\mymachine\myshare\myfiles /persistent:yes .
  • Place this in C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup .  Create the "Scripts" and "Startup" folders for this path, if they do not already exist.
  • Open MMC. Click Start. Click in the Start Search box. Type mmc and then press ENTER.
  • On the File menu, click Add/Remove Snap-in.
  • In the Add or Remove Snap-ins dialog box, click Group Policy Object Editor, and then click Add. In the Select Group Policy Object dialog box, click Browse.
  • Go to Computer Configuration\Windows Settings\Scripts (Startup/Shutdown).
  • Double-click on Startup in the Startup Properties. Click "Add..." and choose the script you created.
  • Restart the machine.
  • Verify in Windows Explorer that the drive is presented as "Disconnected Network Drive".

 

Step 2: Update the configuration files

 

1). Import the configuration file back into Spotfire Server, and use the "import-service-config" command to name the configuration:

          config import-service-config --config-name="Set AllowAllFilePaths" 

2). Browse to the Spotfire Server admin URL, then to "Nodes and Services".

3). Edit the Web Player Service to select the created Configuration.

 

Notes:

1). Ensure that the service (Node Manager in 7.5) (and also the Web Player application pool, prior to 7.5) is running with a service account user that has the required permissions to access the mapped drive path. If not, set the service account user, then be sure to restart the service.

2). For versions prior to 7.5, follow Step A to map the drive, then follow Knowledge Article 42035 to configure the Web Player for file paths.

 

Validation:

In the Spotfire Analyst client, load a file from the mapped drive path (such as S:\ myfile.txt) created above (Step A) into a new Spotfire analysis. Save this analysis in the Spotfire library, then test by opening the analysis via the Web Player.  Verify that the data table that is linked to the file in the mapped drive path opens without errors or warnings, and that it contains the expected data.

Issue/Introduction

How to configure Spotfire Web Player to use mapped drive paths, such as S:\myshare\files.

Additional Information

Doc: Manually editing the service configuration files, Spotfire Server and Environment - Installation and Administration guide External: Net use, Microsoft Learn