The Flexera Community is currently in maintenance mode to prepare for the upcoming launch of the new community. Click here for more information.
The writers phase of the inventory import process intermittently fails with an error like the following when the FlexNet Manager Suite compliance database is hosted on a SQL Server 2016 instance:
Failed to execute Writer 'EvidenceAlerts' from file C:\ProgramData\Flexera Software\Compliance\ImportProcedures\Inventory\Writer\InstalledSoftware.xml, at step line 39 Error: INSERT EXEC failed because the stored procedure altered the schema of the target table.
Details similar to the following appear in the import log when this issue occurs:
2019-01-16 02:02:07,598 [INFO ] Failed to execute Writer 'EvidenceAlerts' from file C:\ProgramData\Flexera Software\Compliance\ImportProcedures\Inventory\Writer\InstalledSoftware.xml, at step line 39 Error: INSERT EXEC failed because the stored procedure altered the schema of the target table. 2019-01-16 02:02:07,598 [INFO ] All retries have been attempted for Writer 'EvidenceAlerts' 2019-01-16 02:02:07,692 [ERROR] System.Data.SqlClient.SqlException (0x80131904): INSERT EXEC failed because the stored procedure altered the schema of the target table. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) [...]
This failure is caused by the issue described in the following Microsoft article: INSERT EXEC fails because the stored procedure altered the schema of the target table error in SQL Server 2016.
This issue is fixed in SQL Server 2016 Service Pack 3, so the issue can be avoided by upgrading to that service pack or a newer version of SQL Server.
An alternate mitigation strategy is to make the following configuration change to SQL Server as described in the Microsoft article:
Increase the size of the Query Data Store. This will reduce the frequency or likelihood of the Query Data Store clearing out the plan and entering READ_ONLY operating mode.
The queries used in the FlexNet Manager Suite import process have been updated to minimize the frequency with which the issue occurs. However these changes do not guarantee that failures will not continue to intermittently occur. Upgrade SQL Server as described above to be confident that future imports will not continue to be affected by this issue.
This issue has been fixed in the following FlexNet Manager Suite release: 2021 R1 (On Premises)
Affected components: Inventory import (read/write/export)
Master issue ID: IOJ-2101652
Also known as: FNML-69715
Feb 03, 2022 01:26 PM - edited Jun 12, 2022 03:49 AM