Guest User

Untitled

a guest
Jan 24th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. 'use strict';
  2. declareUpdate()
  3. var docs = fn.collection("input");
  4. for(var doc of docs) {
  5. var transformed = {};
  6.  
  7. transformed.Metadata = { "Last Used" : ""};
  8. transformed.Updated = { "University" : "UCLA"}
  9. transformed.Source = doc;
  10. xdmp.nodeReplace(doc,transformed)
  11. }
  12.  
  13. Exception in thread "main" com.marklogic.client.FailedRequestException: Local message: failed to apply resource at invoke: Internal Server Error. Server Message: XDMP-EXPNTREECACHEFULL: for(var doc of docs) { -- Expanded tree cache full on host localhost uri file.json-0-968991
  14. at com.marklogic.client.impl.OkHttpServices.checkStatus(OkHttpServices.java:4317)
  15. at com.marklogic.client.impl.OkHttpServices.postIteratedResourceImpl(OkHttpServices.java:3831)
  16. at com.marklogic.client.impl.OkHttpServices.postEvalInvoke(OkHttpServices.java:3768)
  17. at com.marklogic.client.impl.ServerEvaluationCallImpl.eval(ServerEvaluationCallImpl.java:164)
  18. at com.marklogic.client.impl.ServerEvaluationCallImpl.eval(ServerEvaluationCallImpl.java:153)
  19. at com.marklogic.client.impl.ServerEvaluationCallImpl.evalAs(ServerEvaluationCallImpl.java:144)
  20. at bulkimport.Tsm.main(Tsm.java:19)
Add Comment
Please, Sign In to add comment