In Flexera scope version 5.1.17 and 5.1.2, ServiceNowToFNMS script includes used Glide Aggregate to get the total record count which uses the chooseWindow() method to get the record counts.
As per the latest ServiceNow Documentation Product Documentation | ServiceNow chooseWindow() method is only supported by Glide records so if we fetch the total record count with Glide Record, we get a correct output but not with Glide Aggregate.
Check for symptoms in your ServiceNow instance.
Issue # 1
Check Export Run properties within the Export History view and notice the Counter is not incrementing and is stuck at 1
Issue # 2
Within the MID server where you have the 'x_fls_flexera_fnms_asset' XML file saved. You will notice the File Size keeps on going (In an endless loop), this can cause the server to lose disk space.
A way to stop this process is to DELETE the process within ServiceNow -> Flexera Integration -> Export History
Look for the Export Run, and DELETE it.
Go to Script Include -> ServiceNowToFNMS
Within the script look for the function name: sendData