Powered by Zoomin Software. For more details please contactZoomin

Messages and Codes Reference Guide

SER Messages

  • Last Updated: September 10, 2026
  • 4 minute read
    • MarkLogic Server
    • Version 12.0
    • Documentation

SER-BADCHAR

Message Text

Character cannot be represented in desired output encoding: variable1

Cause

A character that cannot be represented in the desired output encoding appears in a context where character references are not allowed (for example, the character occurs in the name of an element), or a character cannot be serialized because it is not a legal UTF-8 or UTF-16 character.

Response

Determine the bad character and, if possible, replace it with a valid one (or just delete it). Or avoid serialization of the bad character in the current context.

SER-BADHTMLCHAR

Message Text

Invalid HTML character between #x7F and #x9F: variable1

Cause

The document being serialized as HTML contains an invalid HTML character between #x7F and #x9F.

Response

Avoid serialization of the invalid character as HTML. The document may be serializable as XML.

SER-BADHTMLPI

Message Text

Cannot use HTML output method when > appears in a PI

Cause

The character > appears in a processing instruction that is being serialized as HTML.

Response

Either try XML serialization, because it does not impose this restriction or remove the > character from the processing instruction.

SER-BOM

Message Text

Invalid value for serialization parameter: byte order mark = variable1

Cause

An attempt was made to assign a value other than yes or no to the byte-order-mark (byteOrderMark in JavaScript) output option.

Response

Assign only yes or no values to the byte-order-mark (byteOrderMark in JavaScript) output option.

SER-CHARMAP

Message Text

Character map not found: {variable1}variable2

Cause

Serialization specifies a character map that does not exist.

Response

The output option specifying the character map should be removed, or the output option should instead specify one of the standard character maps normal, math, or pub, or supply the missing map, for example with the use-character-maps output option.

SER-CHARMAPBAD

Message Text

Character map not found

SER-DEFATTRS

Message Text

Invalid value for serialization parameter default attributes.: variable1

Cause

An attempt was made to assign a value other than yes or no to the default-attributes (defaultAttributes in JavaScript) output option.

Response

Assign a yes or no value to the default-attributes (defaultAttributes in JavaScript) output option.

SER-DOCTYPESYSMULTIELEMROOT

Message Text

Cannot specify the options parameter doctype system with multiple element roots.

Cause

You are trying to specify a doctype-system (doctypeSystem in JavaScript) parameter with multiple element roots.

Response

Specify only a single element root for the doctype-system (doctypeSystem in JavaScript) parameter.

SER-DOCTYPESYSTEM

Message Text

The doctype system parameter may not be specified with version!=1.0 and omit-xml-declaration=yes

SER-DOCTYPESYSTOPLEVTXT

Message Text

Cannot specify the options parameter doctype system with top level text nodes.

SER-ENCODING

Message Text

Unsupported or invalid encoding: variable1

SER-ESCURIATTR

Message Text

Invalid value for serialization parameter: escape uri attributes: variable1

Cause

You have entered an invalid option for the escape-uri-attributes (escapeUriAttributes in JavaScript) serialization parameter.

Response

Please enter either yes or no for the escape-uri-attributes (escapeUriAttributes in JavaScript) parameter.

SER-INCCONTYPE

Message Text

Invalid value for serialization parameter:include content-type.: variable1

SER-INDENT

Message Text

Invalid value for serialization parameter indent: variable1

Cause

You have entered an invalid value for the indent parameter.

Response

Enter either yes or no (all lower case) for the indent serialization parameter.

SER-INDENTUNYUPED

Message Text

Invalid value for serialization parameter: indent untyped: variable1

SER-MEDIATYPE

Message Text

Invalid value for serialization parameter of a mime type representing the media type: variable1

SER-METHOD

Message Text

Invalid value for serialization parameter method: variable1

Cause

You have entered an invalid value for the serialization method.

Response

Please enter any one of the following for the method serialization parameter: xml,html,xhtml,text (all lower case).

SER-METHODNS

Message Text

Invalid namespace for serialization parameter method: variable1

SER-NORMFORM

Message Text

Unsupported normalization form: variable1

SER-OMITXMLDEC

Message Text

Invalid value for serialization parameter omit-xml-declaration: variable1

Cause

You have provided an invalid option for the serialization parameter omit-xml-declaration (omitXmlDeclaration in JavaScript).

Response

Please enter either yes or no for the serialization parameter omit-xml-declaration (omitXmlDeclaration in JavaScript).

SER-STANDALONE

Message Text

Invalid value for serialization parameter standalone: variable1

Cause

You have entered an invalid option for the serialization parameter standalone.

Response

Please enter either yes or no only for the standalone parameter.

SER-STANDALONEMULTIELEMROOT

Message Text

Cannot specify a standalone parameter with multiple element roots

SER-STANDALONEOMITXMLDEC

Message Text

The standalone parameter has a value other than 'omit' and variable1 = yes

Cause

You have entered an unacceptable value for the standalone serialization parameter, when the parameter omit-xml-declaration (omitXmlDeclaration in JavaScript) has the value yes.

Response

Only omit is an allowed value for the standalone parameter when omit-xml-declaration (omitXmlDeclaration in JavaScript) is set to yes.

SER-STANDALONETOPLEVTXT

Message Text

Cannot specify a standalone parameter with top level text nodes

SER-UNDECPREF

Message Text

Invalid value for serialization parameter: undeclare prefixes: variable1

SER-UNDECPREF2

Message Text

Cannot undeclare prefixes with XML 1.0

SER-VERSION

Message Text

Unsupported or invalid XML or HTML version: variable1

Alert