Symptoms
The inventory import process may fail with error details like the following appearing in logging:
2022-04-14 09:02:44,748 [INFO ] Create license allocations from ImportedSoftwareLicenseAllocations 2022-04-14 09:02:49,172 [INFO ] Failed to execute Writer 'Create license allocations from ImportedSoftwareLicenseAllocations' from file C:\ProgramData\Flexera Software\Compliance\ImportProcedures\Inventory\Writer\LicenseCreateUpdate.xml, at step line 28 Error: Violation of UNIQUE KEY constraint 'UQ_SoftwareLicenseAllocation'. Cannot insert duplicate key in object 'dbo.SoftwareLicenseAllocation_MT'. The duplicate key value is (1167, <NULL>, <NULL>, <NULL>, <NULL>, <NULL>, <NULL>). The statement has been terminated. Added 0 new user allocation(s) from the source database connections. 2022-04-14 09:02:49,172 [INFO ] All retries have been attempted for Writer 'Create license allocations from ImportedSoftwareLicenseAllocations' 2022-04-14 09:02:49,172 [ERROR] System.Data.SqlClient.SqlException (0x80131904): Violation of UNIQUE KEY constraint 'UQ_SoftwareLicenseAllocation'. Cannot insert duplicate key in object 'dbo.SoftwareLicenseAllocation_MT'. The duplicate key value is (1167, <NULL>, <NULL>, <NULL>, <NULL>, <NULL>, <NULL>). The statement has been terminated. Added 0 new user allocation(s) from the source database connections.
Mitigation
A possible cause of this issue is encountering a situation where user or inventory device details are updated by a user or other process while an inventory import process is running. If this occurs it is likely that the same problem will not occur on subsequent inventory import processes, so attempting to run the inventory import process again may result in a success.
Fix status
This issue has been fixed in the following FlexNet Manager Suite releases: 2022 R2 (On Premises), 2022 R2 / Nov 2022 (Cloud)
Other information
Affected components: Inventory import (read/write/export), Software license management
Master issue ID: IOK-931590
Also known as: FNML-76974
Related Articles
Known Issue: “Create license allocations from ImportedSoftwareLicenseAllocations” import step may fail with “Violation of … 6Number of Views "Create license allocations from ImportedSoftwareLicenseAllocations" import step may fail with error: Violation of UNIQUE … 6Number of Views Known Issue: “WriteFileEvidence - Insert unmatched evidence” import writer step may fail with error due to NewFileEvidence… 65Number of Views Import step "WriteComputers - Insert new computers" may fail with error "Violation of UNIQUE KEY constraint 'UQ_MemberEx'"… 4Number of Views Import writer phase may fail with error on WriteContainerData step: "Violation of UNIQUE KEY constraint 'IX_ContainerInsta… 4Number 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