Unable to execute data functions in TIBCO Spotfire Web Player. Error: "Could not execute function call 'XXXX' You do not have permission to execute data functions on the server."
book
Article ID: KB0072334
calendar_today
Updated On:
Products
Versions
Spotfire Server
10.3.0 and higher
Spotfire Enterprise Runtime for R - Server Edition
1.2.0 and higher
Description
After installing the TERR Service (TERRSRV) under Node Manager, users may get the following error while executing a Spotfire data function in the Web Player:
--------- Could not execute function call 'XXXX' You do not have permission to execute data functions on the server ---------
You may also get this warning in the Spotfire Server logs (server.log file) while executing a data function in the Web Player:
--------- WARN 2020-07-07T19:39:40,884-0300 [testconsumer, #B-155, #105245] services.controller.CustomServicesRequestHandler: Capability requested TERR is not authorized. ---------
Environment
All
Resolution
This error is caused by an issue with Spotfire Server configuration.
In Spotfire Server's configuration.xml file, check if a section <custom-services-proxy> exists, and that it contains the following:
<allowed-capability>TERR</allowed-capability>.
By default, the TERR capability should be enabled if nothing else is set. However, if the user is also a Statistica customer, the user may have enabled the Statistica capability, which actually disables the TERR capability and the Python capability until the user explicitly enables them.
Typically we don't need to set these things, because TERR and Python (and now Statistica as well) are enabled by default.
Note: If using Spotfire Server 10.3 or 10.4, the Statistica service capability needs to be allowed on the Spotfire Server. If using Spotfire Server 10.5 or higher, the capability DOES NOT need to be specifically enabled. For Spotfire Server version 10.5 and above, all capabilities (TERR / Statistica / Python) are enabled by default.
In short, to resolve this error, make sure that the TERR service capability is enabled in the configuration.xml file for Spotfire Server if using Spotfire version 10.4 and below.
Issue/Introduction
This article discusses the following situation:
Unable to execute Spotfire data functions in TIBCO Spotfire Web Player.
Error: "Could not execute function call 'XXXX' You do not have permission to execute data functions on the server."
Additional Information
KB: 000041757 How to enable TIBCO Statistica Service capability for TIBCO Spotfire?