Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- declareUpdate()
- var docs = fn.collection("input");
- for(var doc of docs) {
- var transformed = {};
- transformed.Metadata = { "Last Used" : ""};
- transformed.Updated = { "University" : "UCLA"}
- transformed.Source = doc;
- xdmp.nodeReplace(doc,transformed)
- }
- 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
- at com.marklogic.client.impl.OkHttpServices.checkStatus(OkHttpServices.java:4317)
- at com.marklogic.client.impl.OkHttpServices.postIteratedResourceImpl(OkHttpServices.java:3831)
- at com.marklogic.client.impl.OkHttpServices.postEvalInvoke(OkHttpServices.java:3768)
- at com.marklogic.client.impl.ServerEvaluationCallImpl.eval(ServerEvaluationCallImpl.java:164)
- at com.marklogic.client.impl.ServerEvaluationCallImpl.eval(ServerEvaluationCallImpl.java:153)
- at com.marklogic.client.impl.ServerEvaluationCallImpl.evalAs(ServerEvaluationCallImpl.java:144)
- at bulkimport.Tsm.main(Tsm.java:19)
Add Comment
Please, Sign In to add comment