Loading TOC...

cpf:document-get-error

cpf:document-get-error(
   $doc as xs:string
) as node()?

Summary

Fetch a trace of the error that caused the document's processing to fail, if any.

Parameters
$doc The URI of the document.

Example

  xquery version "1.0-ml";
  import module namespace cpf = "http://marklogic.com/cpf" 
		  at "/MarkLogic/cpf/cpf.xqy";

  cpf:document-get-error( "/myDocs/example.xml" )
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.