After upgrading to Information Centric Analytics (ICA) version 6.5.4, QualysGuard import jobs fail and return the following errors:
[1:ERROR] VulnerabilityKnowledgeBase.Stage() Encountered error. Aborting Qualys data import...
[1:ERROR] VulnerabilityKnowledgeBase.Stage() Issue encountered inserting Qualys Vulnerability data into staging table...
System.InvalidOperationException: The given value of type String from the data source cannot be converted to type nvarchar of the specified target column. ---> System. InvalidOperationException: String or binary data would be truncated.
at System.Data.SqlClient.SqlBulkCopy.ConvertValue( Object value, _SqlMetaData metadata, Boolean isNull, Boolean& isSqlType, Boolean& coercedToDataFeed)
--- End of inner exception stack trace ---
Release : 6.5.4
Component : Qualys Importer
Querying the Title field in the Qualys Vulnerability Knowledgebase returns a value with a string length greater than 255 characters. The corresponding fields in the stg_Vulnerabilities and Vulnerabilities tables in the QualysGuardDW and RiskFabric databases are each defined as 255 characters, resulting in a string length mismatch.
The datatype and string length definitions of the Title field in both the stg_Vulnerabilities and Vulnerabilities tables in the QualysGuradeDW database must be updated to nvarchar(512). The stored procedure spUpdateStg_Qualys must also be updated to select a substring of the Title field.
To make these changes, follow this procedure:
ALTER TABLE stg_Vulnerabilities ALTER COLUMN [Title] NVARCHAR(512) NULL;
ALTER TABLE Vulnerabilities ALTER COLUMN [Title] NVARCHAR(512) NULL;