KNOWLEDGE BASE

Error "lmreread failed: Invalid parameter. (-42,381)" Occurs When Running lmreread on Windows OS


Published: 18 Nov 2021
Last Modified Date: 17 Oct 2022

Issue

For non-ATR activations, when attempting to run lmreread, a licensing program tool to read the license data stored on Tableau Server, the following error might occur:

lmreread failed: Invalid parameter. (-42,381)

Environment

  • Tableau Server
  • non-ATR activation

Resolution

Potential workarounds:

1. Ensure that "lmreread" is being executed from the Tableau Server bin directory (\packages\bin.<version>).

2. Open the Command Prompt as an administrator. 

3. Add an environmental variable for LM_LICENSE_FILE to point to the tableau.lic file by performing the following:
a. Open Control Panel > System > Advanced system settings to open the system properties.
b. Navigate to Environment Variables > New under "System Variable".
c. Enter the following:
- Variable name: LM_LICENSE_FILE
- Variable value: D:\Tableau\data\tabsvc\config\licenseservice_0.<version>\tableau.lic (path will vary depending on Tableau Server install directory)
User-added image

 

Cause

Incorrect permissions.

Additional Information

Note: The "lmreread" program is only for non-ATR activated Tableau Server installations and is not applicable to ATR activations.
Did this article resolve the issue?