info:ticket-errors( $ticket-id as xs:string, [$start as xs:unsignedInt?], [$page-length as xs:unsignedInt?], [$sort-ascending as xs:boolean?], [$filter as schema-element(cts:query)?] ) as element(info:errors)
[DEPRECATED]
This function returns any errors that may have occurred when loading content.
The load operation must be complete before any errors appear in the ticket.
You can use the
optional parameters, start
and page-length
, to paginate through a
long list of errors.
sort-ascending
parameter to true
to return errors in ascending time, which can be useful when
paginating on an open ticket where new errors are coming in constantly.
The filter
parameter allows you to annotate errors with metadata.
You can create a filter to limit results by anything in the ticket, such as time,
some custom annotation, or error code.
xquery version "1.0-ml"; import module namespace info = "http://marklogic.com/appservices/infostudio" at "/MarkLogic/appservices/infostudio/info.xqy"; info:ticket-errors("/tickets/ticket/8850539794189994434") (: Returns any errors associated with the specified ticket. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.