<?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 Problem with chain scripts is spaces in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-chain-scripts-is-spaces/m-p/161392#M115323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I have two scripts, that when run independently work fine.&amp;nbsp; But when one triggers the other, i get an error.&amp;nbsp; Here is what is happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Space layout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Company Home/DropBox&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Company Home/Client/Client Files&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Company Home/Client/Changed Files.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Company Home/Client/Changed Files.html&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first script run whenever a file is loaded into the client files space.&amp;nbsp; It opens the xml file, added some information about the file that was just added, and saves it.&amp;nbsp; Then it a it applies a freemarker template to the xml file and creates and saves the html file.&amp;nbsp; This script works fine when i just drop a file into Client files space, the every thing gets updated fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second script is a routing script.&amp;nbsp; Based on the file name of the file dropped into the DropBox, the file gets routed to the right client files space.&amp;nbsp; This script works fine, and moves the files around, as long as script 1 is deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problems happens when both scripts are enabled.&amp;nbsp; The second script runs fine and moves the files to the clients files space, and then the first script get executed.&amp;nbsp; But it fails with the following error this time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;freemarker.core.InvalidReferenceException: Error on line 8, column 17 in string://fixed&lt;BR /&gt;document.xmlNodeModel is undefined.&lt;BR /&gt;It cannot be assigned to dom&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at freemarker.core.Assignment.accept(Assignment.java:111)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at freemarker.core.Environment.visit(Environment.java:196)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at freemarker.core.MixedContent.accept(MixedContent.java:92)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at freemarker.core.Environment.visit(Environment.java:196)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at freemarker.core.Environment.visit(Environment.java:196)&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;are there any known problems with chaining scripts like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 15:36:36 GMT</pubDate>
    <dc:creator>lblancher</dc:creator>
    <dc:date>2008-02-22T15:36:36Z</dc:date>
    <item>
      <title>Problem with chain scripts is spaces</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-chain-scripts-is-spaces/m-p/161392#M115323</link>
      <description>Hello,&amp;nbsp; I have two scripts, that when run independently work fine.&amp;nbsp; But when one triggers the other, i get an error.&amp;nbsp; Here is what is happening.Space layout./Company Home/DropBox/Company Home/Client/Client Files/Company Home/Client/Changed Files.xml/Company Home/Client/Changed Files.htmlThe first sc</description>
      <pubDate>Fri, 22 Feb 2008 15:36:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-chain-scripts-is-spaces/m-p/161392#M115323</guid>
      <dc:creator>lblancher</dc:creator>
      <dc:date>2008-02-22T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with chain scripts is spaces</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-chain-scripts-is-spaces/m-p/161393#M115324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I found my problem, it was due to an xml encoding problem.&amp;nbsp; The file i was dropping into to the dropbox had an &amp;amp; in the file name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 18:56:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-chain-scripts-is-spaces/m-p/161393#M115324</guid>
      <dc:creator>lblancher</dc:creator>
      <dc:date>2008-02-22T18:56:51Z</dc:date>
    </item>
  </channel>
</rss>

