
cpf.documentSetError( doc as String, error as Node? ) as null
Set the document's error trace to the given value.
| Parameters | |
|---|---|
| doc | The URI of the document. |
| error | The error causing processing failure, or empty to erase the existing trace. |
const cpf = require('/MarkLogic/cpf/cpf');
cpf.documentSetError('/myDocs/example.xml', null);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.