Summary
A script and process to diagnose and prevent database constraint violations that might cause a failure to upgrade to FlexNet Manager Suite 2018 R2.Question
Based on experience with previous upgrades for customers using on-premises implementations of FlexNet Manager Suite, where unexpected data violating database constraints had caused errors in license compliance outcomes, the database migration scripts for this release have been made more rigorous. Database migration now halts (failing the product upgrade) if unexpected data is found in tables of the following FlexNet databases:- Compliance database (suggested name FNMSCompliance)
- Inventory database (suggested name FNMSInventory)
- Data warehouse database (suggested name FNMSDataWarehouse).
Note: This process does not make any changes to the data in your databases, because any such changes (if required) need individual inspection and assessment. However, it does reactivate any database constraints that have been disabled. For this reason, it is strongly recommended that you start with a full backup of all your FlexNet databases. You may run this process on either a test or production environment, and it is not necessary to halt other operations.
Answer
To identify issues with database constraint violations:- Log into Microsoft SQL Server Studio using an account mapped to users with (at least) Select permissions on all the above databases.
- Recommended: Make full backups of all your existing FlexNet databases:
- Compliance database (suggested name FNMSCompliance)
- Inventory database (suggested name FNMSInventory)
- Data warehouse database (suggested name FNMSDataWarehouse)
- Select the first database to validate (such as FNMSCompliance), copy the following script (see Additional Information) and paste it into the execution window, then select and run it. This script generates SQL statements to test data in tables that database migration will also check. A query is output for each database constraint that appears as 'untrusted' to Microsoft SQL Server and automatically tested.
- Assess the result:
- If there are no errors printed when you run this script, all database constraints not trusted by SQL Server have clean data, and you may loop back and repeat this step for the remaining databases in turn. If no errors are created for all of the three databases under test, this process is complete.
- If an error occurs like the following statement as an example (of course the table names and column names vary according to each case), please document the error and from which database and continue to the next databases.
- If there are no errors printed when you run this script, all database constraints not trusted by SQL Server have clean data, and you may loop back and repeat this step for the remaining databases in turn. If no errors are created for all of the three databases under test, this process is complete.
- You may choose to check details of the tableName and FK_Name in the FlexNet Manager Suite Schema Reference PDF, available through the title page of online help. However, identifying and cleaning up the problematic data is likely to require specialized insight and expertise, so that the steps below are recommended.
- Loop back and repeat the process for all three databases in turn until all are completed.
- Ask your registered support contact (a designated person within your enterprise who has access rights and login details) to raise a support case at https://flexeracommunity.force.com/customer/SupportSFCaseInsert, including a clear description of the issue. Be sure to attach the document listing affected tables and foreign keys. A useful title might be something like "Pre-upgrade check of DB constraint violations failed".
Related Documents
This process is repeated in the Prerequisites and Preparations section of the FlexNet Manager Suite 2014 Rx (or later) to 2018 R2 Upgrade Guide, a PDF available through the Flexera Customer Community portal (and another reference copy will also be available through the title page of online help after your upgrade).Was this helpful?
Related Articles
FlexNet Manager Suite 2018 R2 7Number of Views FlexNet Manager Suite 2018 R1 6Number of Views Attempting to open the online help from Business Adapter Studio (BAS) results in a 404 error with BAS version 2017 R2 (and… 4Number of Views FlexNet Manager Suite log files and locations 182Number of Views Logs not generating after upgrading to FlexNet Manager Suite On Premises 2022 R2 11Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
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. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago