marklogic - xdmp:node-delete funny behavior -
when used xdmp:node-delete on not existing node, works on query console in cpf throws xdmp-argtype: (err:xpty0004) xdmp:node-delete(()) -- arg1 not of type node()
following in query console
let $_ := xdmp:node-delete(fn:doc($uri)/enevelope:document-enevelope/enevelope:extractedtext)
the document not have node, on query console not complain, give error when used in cpf?
often times when works in query console
doesn't work when i'm running in module permissions problem.
as justin said it, error shows have empty sequence. happening because of xpath
said or being happening because user running query cant see document. i'd check make sure document coming back. debugging cpf
pain, check i'd xdmp:log
it.
you eval user in query console.
Comments
Post a Comment