When users execute the TERR data function through Web player or Automation services, the TERR service engine hosted on the Node Manager server will be used to execute the TERR script in the data function. The TERR service engine needs to have access to the network shared drive that is coded in the TERR script.
Example: write.table(data, file="/path/to/shared/drive/file") or read.csv(file="/path/to/shared/drive/input/file")
(a) For TERR Service, log in on the Node Manager Server where TERR Service is hosted, navigate to the TERR Service bin folder,
for example, C:\tibco\tsnm\10.10.2\nm\services\TERR service Windows-1.3.0.65-82327a46-6d35-4239-8cf5-37fd3a46e915\terr\bin
Double click on TERR.exe to launch the TERR service engine session console, and run below command to check the access of TERR service engine to the shared folder:
-----------------
> dir.exists("<drive>:/path/to/shared/folder")
-----------------
If it returns FALSE, it means the TERR Service engine is unable to access the shared folder.
(b) Users would need to check and configure their network sharing of the interested folder, and make sure the Node Manager server (TERR Service) has the necessary read and write permissions to the shared folder.
Please go to the Node Manager server/machine where the TERR service is hosted, go to Control Panel > All Control Panel Items > Administrative Tools > Services > TIBCO Spotfire Node Manager Service, right click and select "Properties", under tab "Log On", check the account that the Node Manager service is running on.
If the Node Manager service is running as the Service Account, make sure that this Service Account has read/write access to the data source folder on the network shared drive.
If the Node Manager service is running as the Local System Account, make sure that this Local System Account has read/write access to the data source folder on the network shared drive.
This article is written for web player node manager service/local system account. Users may also refer to it and follow the instructions for the TERR Service Node Manager service account or local system account.
https://support.tibco.com/s/article/Web-player-not-able-to-access-data-from-network-shared-path(c) For the path of the network shared drive, users can either use UNC path of the shared network drive or Map the folder to the node manager server as a Network drive.
For example,
Access the network shared drive with the full UNC path: "//JENNYVM02.apacanalytics.lab/Jenny/"
---------
> dir.exists("//JENNYVM02.apacanalytics.lab/Jenny/")
[1] TRUE
> dir.exists("//JENNYVM02.apacanalytics.lab/Jenny/test64")
[1] TRUE
---------
Or first Map the folder to the node server as a network drive with letter name, e.g. R:
---------
> dir.exists("R:/test64")
[1] TRUE
---------
(d) If TIBCO Spotfire Statistics Service (TSSS) is used for TERR data function execution on server, similarly, the TERR engine hosted on TSSS server needs to have necessary access permissions to the network shared drive.
Find and launch the TERR engine hosted on TSSS server, for example, C:\Program Files\TIBCO\statsvcs1010\SplusServer\engines\Terr\bin\TERR.exe,
run the below command to check the access of TSSS TERR engine to the network shared folder:
----------
> dir.exists("<drive>:/path/to/shared/folder")
----------
If it returns FALSE, it means the TSSS TERR engine is unable to access the shared folder.
Users would need to check and configure the network sharing of the interested folder to the TSSS server, and make sure the TSSS (TERR) has the necessary access and write permissions to the shared folder.
(e) Please take note that R/TERR script takes only "\\" or "/" in the file path.