I'm testing out the library services, in hopes we could use them to do a kind of "check in" "check out" app .
Not all our docs are XML, some are binary or text. So I tried it on a text doc. XML docs work great but text docs fail: I'm using this code: xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy"; dls:document-manage("/Docs/IDToDo.txt", fn:false(), "IDis now a managed document") The error log on the server shows nothing unusual but this comes out of CQ Any suggestions on how to get library services to manage text or binary documents ? ----------------------- Error query evaluated in Test at file::Test as 1.0-ml (cq v4.0-4) [1.0-ml] XDMP-DOCNOTFOUND: xdmp:document-set-property("/Docs/IDToDo_txt_versions/1-IDToDo.txt", <dls:update-permissions xmlns:dls="http://marklogic.com/xdmp/dls"/>) -- Document not found Stack trace: in /MarkLogic/dls.xqy line 1417: dls-document-change-properties("/Docs/IDToDo_txt_versions/1-IDToDo.txt", (<dls:update-permissions xmlns:dls="http://marklogic.com/xdmp/dls"/>, <dls:version xmlns:dls="http://marklogic.com/xdmp/dls"><dls:version-id>1</dls:version -id><dls:document-uri>/Docs/IDToDo...</dls:version>), 2) $uri := "/Docs/IDToDo_txt_versions/1-IDToDo.txt" $properties := (<dls:update-permissions xmlns:dls="http://marklogic.com/xdmp/dls"/>, <dls:version xmlns:dls="http://marklogic.com/xdmp/dls"><dls:version-id>1</dls:version -id><dls:document-uri>/Docs/IDToDo...</dls:version>) $function-type := xs:unsignedInt("2") $prop := <dls:update-permissions xmlns:dls="http://marklogic.com/xdmp/dls"/> in /MarkLogic/dls.xqy line 1155: document-insert-version("/Docs/IDToDo.txt", fn:doc("/Docs/IDToDo.txt"), "IDis now a managed document", (), (), 0, xs:unsignedLong("16146774601010836646"), fn:true()) $uri := "/Docs/IDToDo.txt" $doc := fn:doc("/Docs/IDToDo.txt") $annotation := "IDis now a managed document" $permissions := () $collections := () $quality := 0 $forest-ids := xs:unsignedLong("16146774601010836646") $keep-old-uri := fn:true() $latest := xs:unsignedInt("0") $old-uri := "/Docs/IDToDo_txt_versions/0-IDToDo.txt" $old-prop := () $new-uri := "/Docs/IDToDo_txt_versions/1-IDToDo.txt" $doc := () $update-perms := () $other-perms := () in /MarkLogic/dls.xqy line 1293: _document-manage("/Docs/IDToDo.txt", fn:false(), "IDis now a managed document", fn:false(), ()) $uri := "/Docs/IDToDo.txt" $deep := fn:false() $annotation := "IDis now a managed document" $is-new-uri := fn:false() $permissions := () $permissions := () in /MarkLogic/dls.xqy line 146: dls:document-manage("/Docs/IDToDo.txt", fn:false(), "IDis now a managed document") $uri := "/Docs/IDToDo.txt" $deep := fn:false() $annotation := "IDis now a managed document" line 6: 4: at "/MarkLogic/dls.xqy"; 5: 6: dls:document-manage("/Docs/IDToDo.txt", 7: fn:false(), 8: "IDis now a managed document") xdmp:eval(" xquery version "1.0-ml"; import...", (), <options xmlns="xdmp:eval"><database>7265206710328029639</database><modules>0</mo dules><def...</options>) in /cq/eval.xqy line 95: ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected] <mailto:[email protected]> 812-482-5224
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
