Loading TOC...

MarkLogic Server 11.0 Product Documentation
dls.latestValidationResults

dls.latestValidationResults() as element(dls.validationResults)?

Summary

Returns a report describing the status of an upgrade from a pre-MarkLogic 8 DLS repository.

Required Privileges

The dls-admin role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-admin

Example

const dls = require('/MarkLogic/dls');

dls.latestValidationResults();

/* When the upgrade is complete, the results should look like this:
 
<dls:validation-results xmlns:dls="http://marklogic.com/xdmp/dls">
  <dls:validation-status>no-dls</dls:validation-status>
  <dls:validation-date>2017-12-05T18:29:44.872394-08:00</dls:validation-date>
  <dls:database-documents>3</dls:database-documents>
  <dls:managed-documents>0</dls:managed-documents>
  <dls:managed-versions>0</dls:managed-versions>
  <dls:latest-property>0</dls:latest-property>
  <dls:latest-collection>0</dls:latest-collection>
  <dls:latest-or-collection>0</dls:latest-or-collection>
  <dls:latest-and-collection>0</dls:latest-and-collection>
  <dls:not-upgraded>0</dls:not-upgraded>
  <dls:bare-versions>0</dls:bare-versions>
  <dls:invalid-collection>0</dls:invalid-collection>
</dls:validation-results>
*/
   

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