Qualys Data Importer fails with unexpected DTD declaration
search cancel

Qualys Data Importer fails with unexpected DTD declaration

book

Article ID: 251952

calendar_today

Updated On:

Products

Information Centric Analytics

Issue/Introduction

The Qualys Data Importer fails and logs an error similar to the following:

[1:ERROR] CompliancePostureAction.LogError() Could not retrieve Qualys Compliance Posture Info data 10613821630  (attempt 1 out of 4) saved response file 'C:\ProgramData\BayDynamics\QualysDataImport\QualysGuardDWCompliance\Qualys_Compliance_Posture_Info_data_202209220715_4hwkx3mx.vg3.xml'
[1:ERROR] CompliancePostureAction.LogError() exception: Unexpected DTD declaration. Line 10745267, position 3.
[1:ERROR] CompliancePostureAction.LogError() System.Xml.XmlException: Unexpected DTD declaration. Line 10745267, position 3.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at BayDynamics.Utils.StreamingLinqXmlParser.Read(Stream stream, Func`2 fShouldParseElement, Func`3 fNotify)
   at QualysDataImportLibrary.QualysApi.CompliancePostureResponseParser.Parse(Stream stream, Int32 policyId, DataTable postureSummaryTable, DataTable postureInfoTable, DataTable postureExceptionCommentTable, String& nextRequestIdMin, List`1 duplicateInfoIds)
   at QualysDataImport.CompliancePostureAction.Import(IEnumerable`1 stagingTables, DetailedStatistics detailedStatistics)

Environment

Release : 6.5.4

Cause

This failure is caused by malformed XML in the response files provided by Qualys.

Resolution

If you encounter this error, report the problem to Qualys.