HI Danny,

            I tried the same in 4.2 version and even though there was no
property document for the directory, the directory gets deleted succesfully
but in 4.1 it throws a xdmp:doc-not -found. Am I right? is this the root
cause or am I missing something? Please help me out

P.S: Sorry I'd given the version wrong in my previous mail, please ignore it

Thanks in advance
Raghu




On Tue, Oct 25, 2011 at 6:34 PM, Raghu <raghupathy.visweswa...@gmail.com>wrote:

> HI Danny,
>
>             I tried the same in 4.1 version and even though there was no
> property document for the directory, the directory gets deleted succesfully
> but in 4.0 it throws a xdmp:doc-not -found. Am I right? is this the root
> cause or am I missing something? Please help me out
>
> Thanks in advance
> Raghu
>
>   On Mon, Oct 24, 2011 at 10:25 PM, Danny Sokolsky <
> danny.sokol...@marklogic.com> wrote:
>
>>    Hi Raghu,****
>>
>> ** **
>>
>> I can think of 2 things to look at:****
>>
>> ** **
>>
>> ** **
>>
>> **1)      **Make sure the directory exists.  A directory is a properties
>> document with the special directory element.  Try running the following,
>> substituting the dir URI for $uri: ****
>>
>> ** **
>>
>> xdmp:document-properties($uri)****
>>
>> ** **
>>
>> this should return a properties document with a directory element.  If it
>> does not, then the directory does not exist.****
>>
>> ** **
>>
>> **2)      **Make sure the user who is running the directory-delete has
>> permissions to see the directory.   You can check that by looking at the
>> permissions on the directory: ****
>>
>> ** **
>>
>> xdmp:document-get-permissions($uri)****
>>
>> ** **
>>
>> Also, what version of marklogic are you running (xdmp:version() )?****
>>
>> ** **
>>
>> -Danny****
>>
>> ** **
>>
>> ** **
>>
>> *From:* general-boun...@developer.marklogic.com [mailto:
>> general-boun...@developer.marklogic.com] *On Behalf Of *Raghu
>> *Sent:* Monday, October 24, 2011 6:20 AM
>> *To:* General MarkLogic Developer Discussion
>> *Subject:* [MarkLogic Dev General] Directory exists but
>> xdmp:directory-delete return xdmp:doc-not-found****
>>
>> ** **
>>
>> Hi All,****
>>
>>      ****
>>
>>        I'm  trying to delete a directory usind xdmp:directory-delete; it
>> returns a   xdmp:doc-not-found but when I do a xdmp:directory of the same
>> uri I'm able to see the documents inside the folder. These directories are
>> created from a trigger. does it have anything to do with it? Should I set
>> any document proerty? Please help me out.****
>>
>>  ****
>>
>>  ****
>>
>>  ****
>>
>> Thanks in advance****
>>
>> Raghu****
>>
>>  ****
>>
>> _______________________________________________
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to