Thank you.  Good to know its not my fault :)

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kelly
Stirman
Sent: Tuesday, December 01, 2009 8:15 AM
To: [email protected]
Subject: [MarkLogic Dev General] RE: Library services cannot manage text

Hi David,

The issues you have seen with binary and text documents for document
library services are known and should be addressed in our next
maintenance release, 4.1-4. No specific date has been established for
that release, but I believe it will be relatively soon.

Thanks,
Kelly

Message: 6
Date: Tue, 1 Dec 2009 04:45:47 -0800
From: "Lee, David" <[email protected]>
Subject: [MarkLogic Dev General] Library services cannot manage text
        documents !! (: 
To: <[email protected]>
Message-ID: <dd37f70d78609d4e9587d473fc61e0a714401...@postoffice>
Content-Type: text/plain; charset="us-ascii"

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 &quot;1.0-ml&quot;;&#13;&#10;&#13;&#10;
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
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to