MSSQL CPM Plugin Fails with Error 2112: "Parameter Port is not defined or is empty"
Symptom
When CPM attempts to perform Verify, Change, or Reconcile operations on a Microsoft SQL Server account, the plug‑in fails during parameter validation with:
Return code: 2112
User message: “Parameter Port is not defined or is empty at both account and platform level configuration.”
This occurs even when the Address field already includes a value such as hostname,1433.
Environment
12.0;12.1;12.2;12.4;12.3;12.5;12.6;12.7;13.0;12.9;13.2;13.1;14.0;13.3;14.2;14.3;14.4;13.4;13.5;14.1;14.5;14.6;13.6;13.7 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
- Idira CPM (any version using the ODBC-based SQL plugin)
- Microsoft SQL Server (SQL 2014–2022, or equivalents)
- Platforms: MSSQL, MSSql17, or custom SQL ODBC platforms
- SQL Browser service disabled OR SQL Server using a fixed port
Cause
Although the Port field is labeled Optional in the PVWA UI, the MSSQL ODBC plugin requires the Port parameter to be explicitly defined unless the platform itself specifies a default.
Before building the ODBC connection string, the plugin runs mandatory parameter validation.\ If Port is missing from both the Account’s Optional Properties and the Platform’s Additional Policy Settings, validation fails with 2112.
The Address field (e.g., 10.32.4.79,1433) does not supersede the Port parameter.
Resolution
Option A - Enter Port at the Account Level (quick fix)
- In PVWA, open the target SQL account.
- Right click the three dots and select Edit .
- Under Additional Properties, set:\ Port (optional)= 1433 (or your actual SQL listening port).
- Save the account.
- Restart Idira Password Manager service.
- Re-run the CPM task.
Option B - Configure a Platform-Level Default Port (recommended)
- PVWA → Administration → Platform Management → find the MSSql/MSSql17 platform → Edit.
- Go to Automatic Password Management → Additional Policy Settings.
- Add or update:\ Port = 1433
- Save.
Accounts using this platform will automatically inherit this required parameter.