search cancel

Invalid XML when you import a Questionnaire

book

Article ID: 162055

calendar_today

Updated On:

Products

Control Compliance Suite Assessment Manager

Issue/Introduction

When you import a Questionnaire to Symantec Control Compliance Suite (CCS) Assessment Manager (AM) you receive an error regarding the XML format being invalid. The XML that you have selected is invalid.

Cause

There is missing or unexpected data in the Questionnaire XML.

In the CCS AM Server Log there is a Validation Error:
2015-04-07 12:32:44.950,2015-04-07 14:32:44.950,SV196792,Error,Symantec.AM.Business,RAMServer,1148,,28,Validate,,0,0,"Validation error on line number 9, position 32. Error message : The 'http://scap.nist.gov/schema/ocil/2.0:schema_version' element is invalid - The value '2,0000000' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:decimal' - The string '2,0000000' is not a valid Decimal value."

Resolution

In the CCS AM Server Logs, use the find function to look for "Validation error".

This message tells you what is invalid about the XML. Correct the invalid element and import the Questionnaire again.

Possible problems with the fix:

2015-04-07 12:32:44.950,2015-04-07 14:32:44.950,SV196792,Error,Symantec.AM.Business,RAMServer,1148,,28,Validate,,0,0,"Validation error on line number 9, position 32. Error message : The 'http://scap.nist.gov/schema/ocil/2.0:schema_version' element is invalid - The value '2,0000000' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:decimal' - The string '2,0000000' is not a valid Decimal value."
  • Modify the XML and Change the comma in the string specified (2,0000000) with a decimal.
2015-05-21 22:12:52.777,2015-05-21 15:12:52.777,SAM-CCS11-S1,Error,Symantec.AM.Business,RAMServer,1328,,96,Validate,,0,0,"Validation error on line number 15, position 6. Error message : The element 'document' in namespace 'http://scap.nist.gov/schema/ocil/2.0' has invalid child element 'description' in namespace 'http://scap.nist.gov/schema/ocil/2.0'. List of possible elements expected: 'notice' in namespace 'http://scap.nist.gov/schema/ocil/2.0'."
  • Swap the Notice and Description fields within the XML.  Notice should be before Description.
    Ensure both opening and closing tags are moved.