Thanks, Danny. That was it. 

I set locking to Strict wherever I could find a setting, which was in the three 
Top-songs entries in Configure / Databases in the Admin console.

Ardal

On Jan 31, 2015, at 9:02 PM, Danny Sokolsky wrote:

> Hi Ardal,
> 
> Remove the <forests> element from your options node and that error will go 
> away.
> 
> Since we introduced the latest forest placement algorithms in MarkLogic 7, 
> most of the time it is a bad idea to choose your own forest.
> 
> I thought setting locking to strict for that database would make this work, 
> however, so I am not too sure why that did not work.  Are you sure you set 
> that for the database where you are loading this document?
> 
> At any rate, you probably do not need the forest placement key in there, so I 
> would just remove it.
> 
> -Danny
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Ardal Powell
> Sent: Saturday, January 31, 2015 4:56 PM
> To: MarkLogic Developer Discussion
> Subject: [MarkLogic Dev General] XDMP-PLACEKEYSLOCKING: …Fast locking cannot 
> be used with place keys.
> 
> Hi all,
> 
> I'm getting the above error on running an xdmp:document-load in one of the 
> modules in the MarkLogic Dev II course. All the other modules run OK. 
> 
> The error persists after locking on the databases, top-sopngs-dev, 
> ...modules, and ...triggers is set to Strict.
> 
> The offending lines are:
> 
>       for $d in 
> xdmp:filesystem-directory("/home/ardal/mls-developer-2/top-songs-dev/content/songs/")//dir:entry
> 
>       return xdmp:document-load($d//dir:pathname,
>               <options xmlns="xdmp:document-load">
>                       <uri>/songs/{fn:string($d//dir:filename)}</uri>
>                       <collections>...</collections>
>                       <forests>
>                                
> <forest>{xdmp:forest("top-songs-dev-01")}</forest>
>                               </forests>
>               </options>
> 
> Any help appreciated.
> 
> Thanks,
> Ardal
> _______________________
> Ardal Powell
> [email protected]
> 518.779.6188
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to