Symptoms
FlexNet Operations On-premises reporter transformation jobs fail with the error "The INSERT statement conflicted with the FOREIGN KEY constraint "FK_USR". The conflict occurred in database "flexnetreporting", table "dbo.USER_DIMENSION", column 'ID'."
Diagnosis
This error occurs when a user in FlexNet Operations (FNO) is created without an account. This creates a record in PLT_USER table for the user but with no relation to account (ORG_ID) in PLT_ORGUNIT table of FlexNet Operations database. So when the transformation is run, it fails with the given error trying to insert transformed data into reporter DB and the table "USER_ORG_RELATION" as this table has "not a null" column structure for ORG_ID.
Or in simpler words, the table USER_ORG_RELATION doesn't accept the empty or null values for ORG_ID column and hence the error. Below is the screenshot showing sample logs for the issue:
The above highlighted error means that the transformation failed for the record number 49 from the table USER_DIMENSION which got failed to Insert In to USER_ORG_RELATION table of flexnetreporting database.
Solution
Always make sure that all the users in FlexNet Operations is created with an account linked to it. Now to fix the issue, take the problematic record/user and do one of the following :
- Delete the problematic record/user by following either "a " or "b"
- From FlexNet Operations DB i.e from
PLT_USERtable and from the flexnetreporting DB i.e fromUSER_DIMENSIONtable. (Or) - Use soap webservice call deleteUser.
- From FlexNet Operations DB i.e from
- Fix the user, by linking them to an account by using soap call updateUser.
Related Articles
CreateVDIUserConnections writer step may fail with error: The INSERT statement conflicted with the FOREIGN KEY constraint … 5Number of Views Business adapter creating/updating SAPSystem records with a NULL SAPSystemLandscapeID fails with error: "The INSERT statem… 3Number of Views Import writers step "Syncs the reconcile staging tables to main tables" step may fail with error: 'The INSERT statement co… 10Number of Views License reconciliation failure: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_SoftwareLicenseGroupPo… 5Number of Views FlexNet Operations On-Premises error: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_AO_ORG" 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. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago