The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.
If the Inventory Adapter Studio is used to open and save the file inventory import reader file C:\ProgramData\Flexera Software\Compliance\ImportProcedures\Inventory\Reader\ManageSoft\Computer.xml, subsequent executions of the inventory import process may fail at the ProcessCSPMetadataJsonBlob step with the following error:
ProcessCSPMetadataJsonBlob (Execute on FNMP) Completed with error in 0 seconds. Released application lock Reader_b64a1b04-703b-4dbe-9e3d-36c5089e4911_Computer_ALL ERROR: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: path2 at System.IO.Path.Combine(String path1, String path2) at ManageSoft.Compliance.Importer.Procedures.ManageSoft.CloudServiceInstanceData.Process(String fileName, IExecutionContext context) [...]
This error occurs because the Inventory Adapter Studio is unable to correctly open and save details contained within the Reader\ManageSoft\Computer.xml reader file.
In particular, the following XML structure in this file is not preserved:
<Reader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ExecuteOnTarget" Name="ProcessCSPMetadataJsonBlob" Order="980" Assembly="ManageSoft.Compliance.Importer.Procedures.ManageSoft" Class="ManageSoft.Compliance.Importer.Procedures.ManageSoft.CloudServiceInstanceData" Method="Process"> <Parameter xmlns:q1="http://www.w3.org/2001/XMLSchema" d1p1:type="q1:string" xmlns:d1p1="http://www.w3.org/2001/XMLSchema-instance">CSPJsonParser.xml</Parameter> </Reader>
The Inventory Adapter Studio incorrectly saves this structure as:
<Reader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ExecuteOnTarget" Name="ProcessCSPMetadataJsonBlob" Order="980" Assembly="ManageSoft.Compliance.Importer.Procedures.ManageSoft" Class="ManageSoft.Compliance.Importer.Procedures.ManageSoft.CloudServiceInstanceData" Method="Process" DeclareVariables="true"><![CDATA[CSPJsonParser.xml]]></Reader>
Avoid using the Inventory Adapter Studio to edit the Reader\ManageSoft\Computer.xml file. Instead, edit the file directly using a text editor.
Alternatively, after saving the file using the Inventory Adapter Studio, edit the file using a text editor and re-instate the original XML structure detailed above.
There are no plans to address this issue.
Affected components: Inventory Adapter Studio
Master issue ID: IOJ-2163899
Also known as: FNMS-69875
Dec 28, 2021 01:26 PM - edited Nov 20, 2023 01:33 PM
@mfranz - the problem is known to affect the FlexNet Manager Suite 2019 R1 release. It is likely to affect all other current versions of the Inventory Adapter Studio too, but as far as I know that hasn't been explicitly verified.
I can verify that it is still an issue in 2020 R2