<?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: Duplicate name exists when using transformDocument() function in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24012#M10452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your support Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still see the following SAME error when I try to create another pdf document of the same txt file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caused by: org.springframework.dao.DuplicateKeyException:&lt;BR /&gt;### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegr&lt;BR /&gt;ityConstraintViolationException: Duplicate entry '4186-33-2255312862-self manage&lt;BR /&gt;ment.pdf' for key 'parent_node_id'&lt;BR /&gt;### The error may involve alfresco.node.update_ChildAssocUniqueName-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: update alf_child_assoc set child_node_name_crc = ?,&lt;BR /&gt; child_node_name = ? where id = ?&lt;BR /&gt;### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationExce&lt;BR /&gt;ption: Duplicate entry '4186-33-2255312862-self management.pdf' for key 'parent_&lt;BR /&gt;node_id'&lt;BR /&gt;; SQL []; Duplicate entry '4186-33-2255312862-self management.pdf' for key 'pare&lt;BR /&gt;nt_node_id'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityC&lt;BR /&gt;onstraintViolationException: Duplicate entry '4186-33-2255312862-self management&lt;BR /&gt;.pdf' for key 'parent_node_id'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the these lines are not executed properly before the transformDocument function&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt; pdfNode&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;node&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;parent&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;childByNamePath&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;pdfName&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;pdfNode &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;!==&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;null&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt; pdfNode&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;remove&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt; &lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;//if pdf is existing, delete it&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or it might be due to the custom associations I use in the original text file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 May 2017 21:23:29 GMT</pubDate>
    <dc:creator>mrmjlee</dc:creator>
    <dc:date>2017-05-29T21:23:29Z</dc:date>
    <item>
      <title>Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24008#M10448</link>
      <description>Hi all,I am trying to use the transformDocument function to convert a text file into a pdf file.I have a custom content type (text file) with a custom action - this action calls the custom web script to convert to pdf.For one time transformation , it works fine. However, if I modify content in the s</description>
      <pubDate>Fri, 26 May 2017 04:58:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24008#M10448</guid>
      <dc:creator>mrmjlee</dc:creator>
      <dc:date>2017-05-26T04:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24009#M10449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get this error because there is already a pdf with the same name. It won't be replaced automatically - so you have to remove the pdf version of your document before creating a new one.&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; node &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; utils&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getNodeFromString&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;args&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"nodeRef"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pdfName&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;replace&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="regex token"&gt;/\.+?$/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".pdf"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//Replace the extenison of node.name with ".pdf"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pdfNode&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;parent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;childByNamePath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pdfName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pdfNode &lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; pdfNode&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;remove&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//if pdf is existing, delete it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; newPdf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;transformDocument&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"application/pdf"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;model&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pdfNodeRef &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newPdf&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not tested - hope it works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 06:29:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24009#M10449</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-05-26T06:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24010#M10450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Martin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried your code and it came up with two errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was an error "Ambiguous calling to String.replace function" so i used (node.name+ "") instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue I am having trouble is that now the code cannot find the node info. The log shows 'Node does not exist' even for the first conversion of pdf documnet. I think the 'node.parent.childByNamePath' is the one which causes this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could give me an advice please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 22:27:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24010#M10450</guid>
      <dc:creator>mrmjlee</dc:creator>
      <dc:date>2017-05-28T22:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24011#M10451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(node.name+"") is right, and the second problem is just because the line to build the pdf name seems not to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pdfName&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;replace&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="regex token"&gt;/\.+?$/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".pdf"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace it with&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pdfName&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;substr&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;lastIndexOf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;".pdf"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 06:02:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24011#M10451</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-05-29T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24012#M10452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your support Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still see the following SAME error when I try to create another pdf document of the same txt file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caused by: org.springframework.dao.DuplicateKeyException:&lt;BR /&gt;### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegr&lt;BR /&gt;ityConstraintViolationException: Duplicate entry '4186-33-2255312862-self manage&lt;BR /&gt;ment.pdf' for key 'parent_node_id'&lt;BR /&gt;### The error may involve alfresco.node.update_ChildAssocUniqueName-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: update alf_child_assoc set child_node_name_crc = ?,&lt;BR /&gt; child_node_name = ? where id = ?&lt;BR /&gt;### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationExce&lt;BR /&gt;ption: Duplicate entry '4186-33-2255312862-self management.pdf' for key 'parent_&lt;BR /&gt;node_id'&lt;BR /&gt;; SQL []; Duplicate entry '4186-33-2255312862-self management.pdf' for key 'pare&lt;BR /&gt;nt_node_id'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityC&lt;BR /&gt;onstraintViolationException: Duplicate entry '4186-33-2255312862-self management&lt;BR /&gt;.pdf' for key 'parent_node_id'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the these lines are not executed properly before the transformDocument function&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt; pdfNode&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;node&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;parent&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;childByNamePath&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;pdfName&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;pdfNode &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;!==&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;null&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt; pdfNode&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit; font-size: 14px;"&gt;remove&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt; &lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;//if pdf is existing, delete it&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or it might be due to the custom associations I use in the original text file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 21:23:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24012#M10452</guid>
      <dc:creator>mrmjlee</dc:creator>
      <dc:date>2017-05-29T21:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24013#M10453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I...yes, this is not a simple "duplicate name" errror. The error is caused by some property value or logic in the context of an (your) association. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 05:11:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24013#M10453</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-05-30T05:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate name exists when using transformDocument() function</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24014#M10454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Martin,&lt;/P&gt;&lt;P&gt;I am using two custom content types. I call them 'A' and 'B' here.&lt;/P&gt;&lt;P&gt;The content type 'A' is the text type that has the action to convert to the pdf file.&lt;/P&gt;&lt;P&gt;The content type 'B' is also the text type.&lt;/P&gt;&lt;P&gt;The 'A' has child association to content type 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might remove the child association &amp;nbsp;in 'A' and give a try. Thank you&lt;/P&gt;&lt;P&gt;- MJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 06:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicate-name-exists-when-using-transformdocument-function/m-p/24014#M10454</guid>
      <dc:creator>mrmjlee</dc:creator>
      <dc:date>2017-06-02T06:20:46Z</dc:date>
    </item>
  </channel>
</rss>

