<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is locked? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-locked/m-p/175347#M128477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When running the javascript below I get the an error saying the a file is locked. If I remove the checkout-line it works perfectly. It doesn't matter where I try to put the working copy. I rather start to think that it is the orginal that is locked somehow. What could be the cause of the problem? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var sourcePath = "myDocuments/Kallelse.dot";&lt;BR /&gt;&lt;BR /&gt;// Attemt to get the node for the sourceDocument&lt;BR /&gt;var sourceNode = userhome.childByNamePath(sourcePath);&lt;BR /&gt;&lt;BR /&gt;// Copy the node to the current directory and rename it. &lt;BR /&gt;var destinationNode = sourceNode.copy(space);&lt;BR /&gt;destinationNode.name = destinationNode.id + ".doc";&lt;BR /&gt;&lt;BR /&gt;// Checkout the document to the currentUsers homespace.&lt;BR /&gt;destinationNode.checkout(userhome); &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 13:15:32 GMT</pubDate>
    <dc:creator>buurd</dc:creator>
    <dc:date>2008-08-27T13:15:32Z</dc:date>
    <item>
      <title>Is locked?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-locked/m-p/175347#M128477</link>
      <description>Hi!When running the javascript below I get the an error saying the a file is locked. If I remove the checkout-line it works perfectly. It doesn't matter where I try to put the working copy. I rather start to think that it is the orginal that is locked somehow. What could be the cause of the problem?</description>
      <pubDate>Wed, 27 Aug 2008 13:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-locked/m-p/175347#M128477</guid>
      <dc:creator>buurd</dc:creator>
      <dc:date>2008-08-27T13:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is locked?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-locked/m-p/175348#M128478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As it turned out I had a rule in the space I was testing in. It was not my script that throwed the error but the rule that could not fire because the file was checked out.&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 11:20:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-locked/m-p/175348#M128478</guid>
      <dc:creator>buurd</dc:creator>
      <dc:date>2008-09-23T11:20:22Z</dc:date>
    </item>
  </channel>
</rss>

