<?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 Re: Upload to folder fails - Cannot call createNode of Null in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232611#M185741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what worked for me "Inbox/."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Mar 2010 19:27:10 GMT</pubDate>
    <dc:creator>shikarishambu</dc:creator>
    <dc:date>2010-03-26T19:27:10Z</dc:date>
    <item>
      <title>Upload to folder fails - Cannot call createNode of Null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232607#M185737</link>
      <description>I am trying to upload a file into a folder that is below the company home folder. How do I upload a file to a folder that is one or two levels below the company_home?upload = companyhome.childByNamePath("/Inbox/").createNode("upload" + "_" + filename,"mymodel:doc", props) ;upload.properties.content.</description>
      <pubDate>Fri, 26 Mar 2010 02:51:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232607#M185737</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2010-03-26T02:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Upload to folder fails - Cannot call createNode of Null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232608#M185738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Probably Mozilla Rhino can't get the instance of that parent node reference because you have wrong the path value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have a subspace named Inbox in the Company Home try to use this path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Inbox&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;In this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;upload = companyhome.childByNamePath("Inbox").createNode("upload" + "_" + filename,"mymodel:doc", props) ;&lt;BR /&gt;upload.properties.content.write(content);&lt;BR /&gt;upload.properties.encoding = "UTF-8";&lt;BR /&gt;upload.save();&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 12:23:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232608#M185738</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-03-26T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upload to folder fails - Cannot call createNode of Null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232609#M185739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, it does not work. Please do not try to guess the solution. If you have tried and it works then post it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 15:50:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232609#M185739</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2010-03-26T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upload to folder fails - Cannot call createNode of Null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232610#M185740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, it does not work. Please do not try to guess the solution. If you have tried and it works then post it.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I have done uploads like this. Openpj's response is not a guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) It might be best if you used the Javascript debugger to find out what is happening with the code that you wrote, rather than trying to read your mind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 17:17:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232610#M185740</guid>
      <dc:creator>invictus9</dc:creator>
      <dc:date>2010-03-26T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Upload to folder fails - Cannot call createNode of Null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232611#M185741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is what worked for me "Inbox/."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 19:27:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/upload-to-folder-fails-cannot-call-createnode-of-null/m-p/232611#M185741</guid>
      <dc:creator>shikarishambu</dc:creator>
      <dc:date>2010-03-26T19:27:10Z</dc:date>
    </item>
  </channel>
</rss>

