Summary:
Collection Inserts becoming very slow or not inserting at all with error similar to "FAILED to insert Machine <machine name> for catalog..."
Synopsis:
This article explains what can slow down or stop collection inserts and how to resolve.
Discussion:
When it comes to inserting a device into a collection App Portal will happily insert indefinitely if a failure occurs during an insert. When an error occurs during an insert App Portal will change the insert date on the request to an hour in the future and then try it again. It will keep doing this over and over.
The scenarios that usual cause an insert to fail are:
1) The device no longer exists in SCCM. This would usually happen if say you enabled a lease for like two years. In the two year period the device no longer exists. When the lease is up and App Portal tries to reclaim the software this will cause an error. Similarly if an approval is not approved for a very long time and in that time the device does not exist the same thing would happen when approved.
2) The target collection is missing in SCCM. This usually happens when someone inadvertently deletes a collection in SCCM instead of going thru App Portal to archive or delete the catalog which cleans up the collections the expected way.
3) Someone has enabled uninstallation of a catalog but has not added an uninstall deployment to that catalog. Someone would submit the uninstall request, even thought there is no uninstall deployment.
Now when a single insert fails that is not going to cause any harm it is when a large number of failed inserts happen that actually breakage or slowdown can occur.
App Portal will try to insert a set amount of devices, "X", in each insert iteration. "X" is set in the database. If the amount of bad inserts is bigger than "X" then "good" inserts will never get processed because the bad inserts have clogged up the inserts .
By default this size of "X" is set to 100. If all 100 spots are clogged by bad inserts then this number can be increased so that inserts can continue. To update the size of "X" use the query below and change the value to whatever size you need:
Update WD_AppSettings set value = '200' where keyname = 'RequestProcessingBatchSize'
Do not increase the size beyond 200, as IIS will Likely reject the large dataset, or simply time out..
After doing this inserts should continue since there are now more slots for "good" inserts. After you have updated this number we would recommend cleaning up the "bad" inserts. You can do that by canceling the offending requests using a query similar to the one below:
UPDATE WD_PackageRequests SET IsLeased = 0, LeaseExpire = NULL, Deleted = 1, Inserted = 0, InsertDate = NULL, monitor = 0 WHERE requestID in ( 1, 2, 16, etc.)
Related Articles
PVU reconciliation fails or loses consumption after host and LPAR UID reassignment, causing "ReconcileLicenses - Calculate… 17Number of Views BuildFabricatedComputerList step in ManageSoft reader may fail with error: "Violation of PRIMARY KEY constraint 'PK__#Part… 19Number of Views ClassifyMissingImportedInstalledFileEvidenceUsage ManageSoft reader step may fail with error: "Cannot insert the value NUL… 10Number of Views WriteInstalledInstallerAttribute writer may fail with error attempting to insert duplicate final keys after passive-instan… 5Number of Views FlexNet Operations Data Transformation to flexnetreporting Fails With Error: The INSERT Statement Conflicted With the FORE… 8Number 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