Tableau Server upgrade failing due to Exception: OpenPolicy returned 5

Published: 13 Jan 2020
Last Modified Date: 08 Jul 2022


When trying to run the upgrade script as part of the server upgrade process, the upgrade script immediately stops and the app-upgrade.log file shows the following error message:

2020-01-10 15:27:52.924 +0100 main : INFO - Granting full permissions for S-1-5-20 on D:\Program Files\Tableau\Tableau Server\data
2020-01-10 15:27:53.538 +0100 main : DEBUG - Failed to grant full control to S-1-5-20 for D:\Program Files\Tableau\Tableau Server\data
2020-01-10 15:27:53.541 +0100 main : ERROR com.tableausoftware.installer.UpgraderMain - Generic exception raised during installation. com.tableausoftware.tabutil.dll.Exception: OpenPolicy returned 5

    at com.tableausoftware.installer.operations.EnsureFilePermissionsOperation.perform(
    at com.tableausoftware.installer.AbstractOperationRunner.runInstance(
    at com.tableausoftware.installer.AbstractOperationRunner.execute(
    at com.tableausoftware.installer.AbstractOperationRunner.execute(
    at com.tableausoftware.installer.UpgraderMain.execute(
    at com.tableausoftware.installer.UpgraderMain.main(
Caused by: com.tableausoftware.tabutil.dll.Exception: OpenPolicy returned 5

    at com.tableausoftware.tabutil.dll.Exception.getException(
    at com.tableausoftware.tabutil.dll.TabutilJNI.TabSec_GrantSidFullControl__SWIG_0(Native Method)
    at com.tableausoftware.tabutil.dll.TabSec.GrantSidFullControl(
    ... 10 more



  • Tableau Server 2019.3.0, trying to upgrade to 2019.4.0
  • Windows Server 2016


To resolve the issue, start the upgrade script from a Command prompt with Administrator privileges (right click -> Run as Administrator).


The upgrade script was not run with administrative privileges.
Did this article resolve the issue?