Skip to content

Error Codes

Achim Berndzen edited this page Mar 2, 2019 · 116 revisions

This page summarizes the error codes used in the XProc specifications. If you add a new error code, add it to the appropriate list first.

Step errors

Error code Message
C0002 It is a dynamic error if the value starts with the string “--”.
C0003 It is a dynamic error if a username or password is specified without specifying an auth-method, if the requested auth-method isn't supported, or the authentication challenge contains an authentication method that isn't supported.
C0004 It is a dynamic error if the status-only attribute has the value true and the detailed attribute does not have the value true.
C0005 It is a dynamic error if the request contains a c:body or c:multipart but the method does not allow for an entity body being sent with the request.
C0006 It is a dynamic error if the method is not specified on a c:request.
C0010 It is a dynamic error if an encoding of base64 is specified and the character set is not specified or if the specified character set is not supported by the implementation.
C0012 It is a dynamic error if the contents of the directory path are not available to the step due to access restrictions in the environment in which the pipeline is run.
C0013 It is a dynamic error if the pattern matches a processing instruction and the new name has a non-null namespace.
C0014 It is a dynamic error if the XML namespace (http://www.w3.org/XML/1998/namespace) or the XMLNS namespace (http://www.w3.org/2000/xmlns/) is the value of either the from option or the to option.
C0017 It is a dynamic error if the absolute path does not identify a directory.
C0019 It is a dynamic error if the documents are not equal, and the value of the fail-if-not-equal option is true.
C0020 It is a dynamic error if the the user specifies a value or values that are inconsistent with each other or with the requirements of the step or protocol.
C0022 it is a dynamic error if the content of the c:body element does not consist of exactly one element, optionally preceded and/or followed by any number of processing instructions, comments or whitespace characters
C0023 It is a dynamic error if a select expression or match pattern returns a node type that is not allowed by the step.
It is a dynamic error if that expression matches anything other than element nodes.
It is a dynamic error if that pattern matches anything other than element nodes.
It is a dynamic error if that pattern matches anything other than element, text, processing-instruction, or comment nodes.
It is a dynamic error if the match pattern matches a node which is not an element.
It is a dynamic error if the pattern matches anything other than document, element, text, processing instruction, and comment nodes.
It is a dynamic error if the pattern matches anything other than element or attribute nodes.
It is a dynamic error if the pattern matches anything other than element, attribute or processing instruction nodes.
C0025 It is a dynamic error if the match pattern matches anything other than an element node and the value of the position option is “first-child” or “last-child”.
C0026 It is a dynamic error if any XPath expression makes reference to the context node, size, or position when the context item is undefined.
C0027
C0028 it is a dynamic error if the content of the c:body element does not consist entirely of characters
C0029 It is a dynamic error if an XInclude error occurs during processing.
C0030 It is a dynamic error if the override-content-type value cannot be used (e.g. text/plain to override image/png).
C0033 It is a dynamic error if the command cannot be run.
C0034 It is a dynamic error if the current working directory cannot be changed to the value of the cwd option.
C0035 It is a dynamic error to specify both result-is-xml and wrap-result-lines.
C0036 It is a dynamic error if the requested hash algorithm is not one that the processor understands or if the value or parameters are not appropriate for that algorithm.
C0037 It is a dynamic error if the value provided is not a properly x-www-form-urlencoded value.
C0038 It is a dynamic error if the specified version is not available.
C0039 It is a dynamic error if a sequence of documents (including an empty sequence) is provided to an XSLT 1.0 step.
C0040 It is a dynamic error if the document element of the document that arrives on the source port is not c:request.
C0050 It is a dynamic error if the URI scheme is not supported or the step cannot store to the specified location.
C0051 It is a dynamic error if the content-type specified is not supported by the implementation.
C0052 It is a dynamic error if the encoding specified is not supported by the implementation.
C0053 It is a dynamic error if the assert-valid option is true and the input document is not valid.
C0054 It is a dynamic error if the assert-valid option is true and any Schematron assertions fail.
C0055 It is a dynamic error if the implementation does not support the specified mode.
C0056 It is a dynamic error if the specified initial mode or named template cannot be applied to the specified stylesheet.
C0057 It is a dynamic error if the sequence that results from evaluating the XQuery contains items other than documents and elements.
C0058 It is a dynamic error if the all and relative options are both true.
C0059 It is a dynamic error if the QName value in the attribute-name option uses the prefix “xmlns” or any other prefix that resolves to the namespace name http://www.w3.org/2000/xmlns/.
C0060 It is a dynamic error if the processor does not support the specified version of the UUID algorithm.
C0061 It is a dynamic error if the name of any encoded parameter name is not a valid xs:NCName.
C0062 It is a dynamic error if the match option matches a namespace node.
C0063 It is a dynamic error if the path-separator option is specified and is not exactly one character long.
C0064 It is a dynamic error if the exit code from the command is greater than the specified failure-threshold value.
C0066 It is a dynamic error if the arg-separator option is specified and is not exactly one character long.
C0067 It is a dynamic error if the parser reaches the end of the unit of content and it is not in regular-mode.
It is a dynamic error to encounter a single closing curly brace “}” that is not immediately followed by another closing curly brace.
It is a dynamic error to encounter an opening curly brace “{”.
C0068 It is a dynamic error if more than one document appears on the source port.
C0069 It is a dynamic error if the properties map contains a key equal to the string “content-type”.
C0070 It is a dynamic error if the supplied content-type is not a valid media type of the form “type/subtype+ext”.
C0071 It is a dynamic error if the p:cast-content-type step cannot perform the requested cast.
C0072 It is a dynamic error if the c:data contains content is not a valid base64 string.
C0073 It is a dynamic error if the c:data element does not have a content-type attribute.
C0074 It is a dynamic error if the content-type is supplied and is not the same as the content-type specified on the c:data element.
C0075 In all cases except when the input document is a c:data element, it is a dynamic error if the content-type is not supplied.
C0076 It is a dynamic error if the comparison method specified in p:compare is not supported by the implementation
C0077 It is a dynamic error if the media types of the documents supplied are incompatible with the specified comparison method
C0078 It is a dynamic error if fail-on-timeout is specified as true and a value is given for timeout and the http-request is not finished in the time specified by timeout.
C0079 It is a dynamic error if the parameters map on p:cast-content-type contains an entry whose key is defined by the implementation and whose value is not valid for that key.
C0080 It is a dynamic error if the pipeline input to the p:run step is not a valid pipeline.
C0081 It is a dynamic error if the pipeline has inputs that are not specified on the p:run step.
C0082 It is a dynamic error if the pipeline has required options that are not specified on the p:run step.
C0083 It is a dynamic error if the namespace attribute is specified, the name contains a colon, and the specified namespace is not the same as the in-scope namespace binding for the specified prefix..
C0084 It is a dynamic error if the parameter list contains any elements other than c:param.
C0085 It is a dynamic error for any unqualified attribute names other than “name”, “namespace”, or “value” to appear on a c:param element.
C0086 It is a dynamic error for any unqualified attribute names to appear on a c:param-set element.
C0087 It is a dynamic error if the namespace attribute is not specified, the name contains a colon, and the specified prefix is not in the in-scope namespace bindings.
C0088 It is a dynamic error if the c:param element has a value attribute and is not empty.
C0089 It is a static error if the sequence type is not syntactically valid.

Dynamic errors

Error code Message
D0005 If the collection attribute is not specified, or if its value is false, it is a dynamic error if more than one document appears on the connection for the p:if test expression.
If the collection attribute is not specified, or if its value is false, it is a dynamic error if more than one document appears on the connection for the p:when test expression.
It is a dynamic error if more than one document appears on the connection for this input port.
D0006 If sequence is not specified, or has the value false, then it is a dynamic error unless exactly one document appears on the declared port.
D0007 If sequence is not specified on p:output, or has the value false, then it is a dynamic error if the step does not produce exactly one document on the declared port.
D0008 It is a dynamic error if a document sequence appears where a document to be used as the context node is expected.
It is a dynamic error if a sequence of more than one document appears on the connection for a p:variable.
It is a dynamic error if a sequence of more than one document appears on the connection for a p:with-option.
D0009 It is a dynamic error if the element attribute on p:namespaces is specified and it does not identify a single element node.
D0010 It is a dynamic error if the match expression on p:viewport does not match an element or document.
D0011 It is a dynamic error if the resource referenced by a p:document element does not exist.
D0012 It is a dynamic error if any attempt is made to dereference a URI where the scheme of the URI reference is not supported.
D0013 It is a dynamic error if the specified namespace bindings are inconsistent; that is, if the same prefix is bound to two different namespace names.
D0014 It is a dynamic error for any unqualified attribute names other than “name”, “namespace”, or “value” to appear on a c:param element.
D0015 It is a dynamic error if a QName is specified and it cannot be resolved with the in-scope namespace declarations.
D0016 It is a dynamic error if the select expression on a p:input or p:with-input returns attribute nodes or function items.
D0017 It is a dynamic error if the running pipeline attempts to invoke a step which the processor does not know how to perform.
D0018 It is a dynamic error if the c:parameter-set parameter list contains any elements other than c:param.
D0019 It is a dynamic error if any option value does not satisfy the type required for that option.
D0020 It is a dynamic error if the combination of serialization options specified or defaulted is not allowed.
D0021 It is a dynamic error for a pipeline to attempt to access a resource for which it has insufficient privileges or perform a step which is forbidden.
D0022 It is a dynamic error if a processor that does not support PSVI annotations attempts to invoke a step which asserts that they are required.
D0023 It is a dynamic error if a DTD validation is performed and the document is not valid.
D0025 It is a dynamic error if the namespace attribute is specified on c:param, the name contains a colon, and the specified namespace is not the same as the in-scope namespace binding for the specified prefix.
D0026 It is a dynamic error if the select expression makes reference to the context node, size, or position when the context item is undefined.
It is a dynamic error if the select expression makes reference to the context node, size, or position.
D0028 It is a dynamic error if any attribute value does not satisfy the type required for that attribute.
D0030 It is a dynamic error if a step is unable or incapable of performing its function.
D0033 It is a dynamic error if the name specified is not the name of an in-scope option or variable.
D0034 On steps which allow independent specification of a namespace and a name, it is a dynamic error to specify a new namespace or prefix if the lexical value of the specified name contains a colon.
D0035 It is a dynamic error if the element (or document element) passed to p:make-map is not a c:param-set element.
D0036 It is a dynamic error if the supplied value of a variable or option cannot be converted to the required type.
D0037
D0038 It is a dynamic error if an input document arrives on a port and it does not match the allowed media types.
D0039 It is a dynamic error if the encoding attribute is present and content type value specifies a character set that is not supported by the implementation.
D0040 It is a dynamic error if the body is not correctly encoded per the value of the encoding attribute.
D0041 It is a dynamic error if the map contains any property name not recognized as a serialization parameter.
D0042 It is a dynamic error if a document arrives on an output port whose content type is not accepted by the output port specification.
D0043 It is a dynamic error if dtd-validate is true and the processor does not support DTD validation.
D0044 It is a dynamic error if the first argument to the p:document-property function is not a string or QName .
D0045 It is a dynamic error if the key in a document properties map is not a QName.
D0046 It is a dynamic error if the key in a serialization options map is not a QName.
D0047 It is a dynamic error if the value in a serialization options map is not an atomic value.
D0048 It is a dynamic error if the value of the serialization option is not a map.
D0049 It is a dynamic error if the loaded content is not a well-formed XML document
D0050 It is a dynamic error if the XPath expression in an AVT or TVT can not be evaluated.
D0051 It is a dynamic error if the XPath expression in an AVT or TVT evaluates to something to other than a sequence containing atomic values or nodes.
D0052 It is a dynamic error if the XPath expression in a TVT evaluates to an attribute and either the parent is not an element or the attribute has a preceding sibling, that it not an attribute.
D0053 It is a dynamic error if a step runs for longer than its p:timeout limit
D0054 It is a dynamic error if an encoding is specified and the content type is an XML media type.
D0055 It is a dynamic error if the content type value specifies a character set and the encoding attribute is absent.
D0056 It is a dynamic error if an encoding is specified and the content of the p:inline contains any XML markup.
D0057 It is a dynamic error if the loaded content does not conform to the JSON grammar, unless the parameter liberal is true and the processor chooses to accept the deviation.
D0058 It is a dynamic error if the parameter duplicates is reject and the value of loaded content contains a JSON object with duplicate keys.
D0059 It is a dynamic error if the parameter map contains an entry whose key is defined in the specification of fn:parse-json and whose value is not valid for that key, or if it contains an entry with the key fallback when the parameter escape with true() is also present.
D0060 It is a dynamic error if the content-type specifies an encoding, which is not supported by the processor.
D0061  It is a dynamic error if a string key cannot be converted into a QName.
D0062 It is a dynamic error if the document-properties map contains a content-type key and that key has a value that differs from the statically determined content type.
D0063 It is a dynamic error if the p:inline contains any XML markup and has a content type that is not an XML media type.
D0064 It is a dynamic error if the value of the href attribute on a p:document is not a valid xs:anyURI
D0065 It is a dynamic error if the context item for a value template is a sequence of more than one item.
D0066 It is a dynamic error if an instance of xs:QName is provided and the value of the prefix supplying option and the namespace supplying option are not both empty sequences.
D0067 It is a dynamic error to specify a namespace using the namespace supplying option if the Q{} syntax is used.
D0068 It is a dynamic error if the supplied value is neither an instance of xs:QName nor an instance of xs:string.
D0069 It is a dynamic error if the lexical value of the specified name contains a colon and the prefix is not bound to a namespace URI.
D0070 It is a dynamic error if a prefix suggestion is supplied, but no namespace URI is provided.

Static errors

Error code Message
S0001 It is a static error if there are any loops in the connections between steps: no step can be connected to itself nor can there be any sequence of connections through other steps that leads back to itself.
S0002 All steps in the same scope must have unique names: it is a static error if two steps with the same name appear in the same scope.
S0003 It is a static error if any declared input is not connected.
S0004 It is a static error to declare two or more options on the same step with the same name.
S0005 It is a static error if the primary output port of any step is not connected.
S0006 It is a static error if the primary output port has no explicit connection and the last step in the subpipeline does not have a primary output port.
It is a static error if the primary output port is unconnected and the last step in the subpipeline does not have a primary output port.
S0007 It is a static error if two subpipelines in a p:choose declare different outputs.
S0008 It is a static error if any element in the XProc namespace has attributes not defined by this specification unless they are extension attributes.
S0009 It is a static error if the p:group and p:catch subpipelines declare different outputs.
S0010 It is a static error if a pipeline contains a step whose specified inputs, outputs, and options do not match the signature for steps of that type.
S0011 It is a static error to identify two ports with the same name on the same step.
S0014 It is a static error to identify more than one output port as primary.
S0015 It is a static error if a compound step has no contained steps.
S0017 It is a static error to specify that an option is both required and has a default value.
S0018 If an option is required, it is a static error to invoke the step without specifying a value for that option.
S0020 It is a static error if the binding attribute on p:namespaces is specified and its value is not the name of an in-scope binding.
S0022 In all cases except when the p:pipe is within an p:output of a compound step, it is a static error if the port identified by the p:pipe is not in the readable ports of the step that contains the p:pipe.
S0024 It is a static error if the content of the p:inline element does not consist of exactly one element, optionally preceded and/or followed by any number of processing instructions, comments or whitespace characters.
S0025 It is a static error if the expanded-QName value of the type attribute is in no namespace or in the XProc namespace.
S0027 It is a static error if an option is specified with both the shortcut form and the long form.
S0028 It is a static error to declare an option or variable in the XProc namespace.
S0029 It is a static error to specify a connection for a p:output inside a p:declare-step for an atomic step.
S0030 It is a static error to specify that more than one input port is the primary.
S0031 It is a static error to use an option name in p:with-option if the step type being invoked has not declared an option with that name.
It is a static error to use an option on an atomic step that is not declared on steps of that type.
S0032 It is a static error if no connection is provided and the default readable port is undefined.
S0036 All the step types in a pipeline or library must have unique names: it is a static error if any step type name is built-in and/or declared or defined more than once in the same scope.
it is a static error if the bag-merger of the step type exports of its parent with the step type exports of its children, against the background of a copy of the Visited set of its parent as the initial Visited set, contains any duplicates.
it is a static error if the bag-merger of the step type exports of the document element of the retrieved representation with the step type exports of its children, against the background of a singleton set containing DU as the initial Visited set, contains any duplicates.
it is a static error if the step type exports of the document element of the retrieved representation, against the background of a singleton set containing DU as the initial Visited set, contains any duplicates.
S0037 It is a static error if any step directly contains text nodes that do not consist entirely of whitespace.
S0038 It is a static error if any required attribute is not provided.
S0041 It is a static error to specify both binding and element on the same p:namespaces element.
S0042 It is a static error to attempt to provide a connection for an input port on the declaration of an atomic step.
S0044 It is a static error if any element in the XProc namespace or any step has element children other than those specified for it by this specification. In particular, the presence of atomic steps for which there is no visible declaration may raise this error.
S0048 It is a static error to use a declared step as a compound step.
S0051 It is a static error if the except-prefixes attribute on p:namespaces does not contain a list of tokens or if any of those tokens is not a prefix bound to a namespace in the in-scope namespaces of the p:namespaces element.
S0052 It is a static error if the URI of a p:import cannot be retrieved or if, once retrieved, it does not point to a p:library, p:declare-step, or p:pipeline.
S0053 It is a static error to import a single pipeline if that pipeline does not have a type.
S0057 It is a static error if the exclude-inline-prefixes attribute does not contain a list of tokens or if any of those tokens (except #all or #default) is not a prefix bound to a namespace in the in-scope namespaces of the element on which it occurs.
S0058 It is a static error if the value #default is used within the exclude-inline-prefixes attribute and there is no default namespace in scope.
S0059 It is a static error if the pipeline element is not p:pipeline, p:declare-step, or p:library.
S0060 It is a static error if the processor encounters an explicit request for a previous version of the language and it is unable to process the pipeline using those semantics.
S0061 It is a static error if a use-when expression refers to the context or attempts to refer to any documents or collections.
S0062 It is a static error if a required version attribute is not present.
S0063 It is a static error if the value of the version attribute is not a xs:decimal.
S0064 It is a static error if the code attribute is missing from any but the last p:catch, if the last p:catch has a code, or if any error code is repeated.
S0065 It is a static error if there is no primary input port.
S0066 It is a static error if an expression does not have a closing right curly bracket or if an unescaped right curly bracket occurs outside of an expression.
S0067 It is a static error if the step attribute is not specified, and there is no default readable port. It is a static error if the port attribute is not specified, and the step identified has no primary output port.
S0068 It is a static error if the port attribute is not specified, and the step identified has no primary output port.
S0069 It is a static error if the encoding specified is not supported by the implementation.
S0070 It is a static error if the URI is not a valid xs:anyURI
S0071
S0072 It is a static error if the name of any output port on p:finally is the same as the name of any other output port in the p:try
S0073 It is a static error if any specified name is not the name of an in-scope step.
S0074 It is a static error if a p:choose has neither a p:when nor a p:otherwise.
S0075 It is a static error if a p:try does not have exactly one p:group and at least one p:catch or exactly one p:finally.
S0076 It is a static error if there are any loops in the connections between steps and variables: no step can refer to a variable if there is any sequence of connections from that step that leads back to the input that provides the context node for the expression that defines the value of the variable.
S0077 It is a static error if the value on an attribute of an XProc element does not satisfy the type required for that attribute.
S0078 When the p:pipe is within an p:output of a compound step, it is a static error if the port identified by the p:pipe is not in the readable ports of the compound step and is not a readable port of a contained step.
S0079 It is a static error if comments or processing instructions occur as siblings of an element node that would be treated as an implicit inline.
S0080 It is a static error to include more than one p:with-option with the same option name as part of the same step invocation.
S0081 If @href is specified, it is a static error if p:document, p:pipe, or p:inline appear among the children of this element
S0082 If @pipe is specified, it is a static error if p:document, p:pipe, or p:inline appear among the children of this element
S0083 It is a static error if the value of the code attribute is not a whitespace separated list of EQNames.
S0084
S0085 It is a static error if a p:with-input has @href and @pipe.
S0086 It is a static error to provide more than one p:with-input for the same port.
S0087 It is a static error if the name attribute on p:option or p:variable has a prefix which is not bound to a namespace.
S0088 It is a static error if a variable or option declaration shadows a preceding static variable or option.
S0089 It is a static error if a p:empty binding appears as a sibling of any other binding.
S0090 It is a static error if the value of the pipe attribute is syntactically invalid.
S0091 It is a static error if a variable or option that occurs before the subpipeline is not declared static.
S0092 It is a static error if a p:with-option refers to an option that is declared static.
S0093 It is a static error if visibility is specified on a p:option that is not a child of p:library.
S0094 It is a static error if a p:variable does not have a select attribute.
S0095 It is a static error if a p:option is declared as required and static.
S0096 It is a static error if the sequence type is not syntactically valid.
S0097 It is a static error if an attribute in the XProc namespace appears on an element in the XProc namespace.
S0098 It is a static error if a variable is declared as static and the p:variable has pipe attribute or p:pipe children.
S0099 It is a static error @step or @port are not valid instances of NCName.
S0100 It is a static error if the pipeline document does not conform to the grammar for pipeline documents
S0101 It is a static error if the values list is not an XPath sequence of atomic values
S0102 It is a static error if alternative subpipelines have different primary output ports
S0103 It is a static error if the URI of a p:import-functions element cannot be retrieved or if, once retrieved, it points to a library that the processor cannot import.
S0104 It is a static error if the processor cannot load the function library.
S0105 It is a static error if a function imported from a library matches a function already known to the processor
S0106 It is a static error if the processor detects an error in the imported library.
S0107 It is a static error if any static XPath error is encountered during the static analysis of an expression, e.g. because the expression is not syntactically valid, contains reference to unknown variables, or makes use of undeclared functions.
S0108 It is a static error if the p:if step does not specify a primary output port.
S0109 It is a static error if options and variables that are the direct children of p:library are not declared static.
S0110 It is a static error if @xpath-version < 3.1.
You can’t perform that action at this time.