Summary
In FlexNet Manager Suite versions 2022 R2 to 2023 R2, a problem can occur that produces an error similar to the following in the Webui.log when attempting to view the Consumption tab of a license record in the web UI:
[ERROR 2023-08-18 10:39:10,647 39157783ms b.Core.UnhandledErrors] An unexpected error occurred (36e7a994-a336-4218-96aa-39a9c702e8b4) System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_#BC531FF_3214EC2776DBAAEC'. Cannot insert duplicate key in object 'dbo.@InstallsAllocations'. The duplicate key value is (xxxxxx).
An issue in the SQL database function dbo.Grid_LicenseComputerConsumptionListModelByLicense causes this error. It occurs due to an unexpected duplication of ComplianceComputerID field values within the dbo.ReconcileVirtualMachineLayer table.
Remediation
Follow the steps below to run the resolve the issue.
- Take a backup of the dbo.Grid_LicenseComputerConsumptionListModelByLicense function in your compliance database. This function can be found in SQL Server Management Studio under <Compliance database> > Programmability > Functions > Table-Valued Functions.
- Run the appropriate scripts for your affected version of FlexNet Manager Suite, attached to this article:
- ModifiedScript_2022R2.sql for FlexNet Manager Suite 2022 R2
- ModifiedScript_2023R1.sql for FlexNet Manager Suite 2023 R1
- ModifiedScript_2023R2.sql for FlexNet Manager Suite 2023 R2
Related Articles
"Sync License Reconcile Results" reconcile step may generate invalid license assignments and fail: "Violation of PRIMARY … 6Number of Views Software license Consumption tab may fail to load with red bar error, and error in webui.log: "Violation of PRIMARY KEY co… 4Number of Views Importing FlexNet inventory agent inventory may fail at LoadSoftwareFileNames step with error: "Violation of PRIMARY KEY c… 4Number of Views Processing entitlement transactions may fail with red error message in UI and error in webui.log: "Violation of UNIQUE KEY… 4Number of Views Extraction of data to export to ServiceNow may fail with error: Violation of PRIMARY KEY constraint 'PK__#Virtual__[...]'.… 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago