<?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 Renaming a namespace in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255751#M208881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're refactoring some custom content models, standardising on naming conventions, etc. As part of this we'd like to rename a custom namespace. Unfortunately we're getting errors on attempting to apply an aspect that references the renamed namespace to the effect that the aspect doesn't exist. In the log the error references the aspect using its original namespace. I had a look in the database and noted that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - Table alf_namespace contains entries for the original and renamed namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Table alf_qname contains QNames for the aspects that reference the original and renamed namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm guessing that renaming namespaces isn't just a matter of renaming the URI in the content model definition XML. Does anyone know how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 00:54:03 GMT</pubDate>
    <dc:creator>ukdavo</dc:creator>
    <dc:date>2012-09-04T00:54:03Z</dc:date>
    <item>
      <title>Renaming a namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255751#M208881</link>
      <description>Hi thereWe're refactoring some custom content models, standardising on naming conventions, etc. As part of this we'd like to rename a custom namespace. Unfortunately we're getting errors on attempting to apply an aspect that references the renamed namespace to the effect that the aspect doesn't exis</description>
      <pubDate>Tue, 04 Sep 2012 00:54:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255751#M208881</guid>
      <dc:creator>ukdavo</dc:creator>
      <dc:date>2012-09-04T00:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255752#M208882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course it is something which should not be changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should not changes the namespace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try once with full reindexing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in you alfresco-global.properties file&amp;nbsp; add this &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;index.recovery.mode=FULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; and restart the server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 06:40:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255752#M208882</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-09-04T06:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255753#M208883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried that but I get the same error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;"callstack" : &lt;BR /&gt;&amp;nbsp; [ &lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ""&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.alfresco.service.cmr.dictionary.InvalidAspectException: 08040064 The aspect is invalid: {http:\/\/&lt;A href="http://www.mycompany.co.uk\/model\/content\/1.0}myaspect" rel="nofollow noopener noreferrer"&gt;www.mycompany.co.uk\/model\/content\/1.0}myaspect&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.alfresco.repo.node.db.DbNodeServiceImpl.addAspect(DbNodeServiceImpl.java:783)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"sun.reflect.GeneratedMethodAccessor523.invoke(Unknown Source)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)"&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that '&lt;/SPAN&gt;&lt;A href="http://www.mycompany.co.uk/model/content/1.0}myaspect" rel="nofollow noopener noreferrer"&gt;http://www.mycompany.co.uk/model/content/1.0}myaspect&lt;/A&gt;&lt;SPAN&gt;' is the old QName.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 09:33:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255753#M208883</guid>
      <dc:creator>ukdavo</dc:creator>
      <dc:date>2012-09-04T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255754#M208884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using the same prefix for both of your old and new namespace uri?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That could create problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF no then only option I see is remove the old aspect from all your nodes via script and add the new aspect via script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 10:54:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255754#M208884</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-09-04T10:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming a namespace</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255755#M208885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes - I'm using the same prefix. I had already removed all nodes that used the aspect in question (incl. clearing out the recycle bin). I ended up starting from a fresh DB. Not ideal but we're not in production yet. Thanks for the suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 09:54:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/renaming-a-namespace/m-p/255755#M208885</guid>
      <dc:creator>ukdavo</dc:creator>
      <dc:date>2012-09-05T09:54:43Z</dc:date>
    </item>
  </channel>
</rss>

