<?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 Aspect gone, but properties persist in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308907#M262037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I will describe a situation, and perhaps someone will be able to think of a way out of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a model which turned out to be problematic.&amp;nbsp; The name of the aspect was "sm:documenttype", and its property of interest was "sm:documentType".&amp;nbsp; The closeness of these names caused some confusion for Alfresco, I think, to the point where it was throwing SQL exceptions in the logs.&amp;nbsp; (I don't yet know that that was the reason, but it's my working hypothesis.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I got rid of that model.&amp;nbsp; I ran a script which removed it from every node in the repository, well over a million now.&amp;nbsp; And then I made the model inactive, so there is no more model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I changed the model and then tried to make it active, Alfresco wouldn't let me.&amp;nbsp; Eventually I figured out why:&amp;nbsp; the property persists.&amp;nbsp; When I do a search like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+@sm\:documentType:"eStatement"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;nodes are returned, and when I look at the node properties I see that one of them is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{sm.model}documenttype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eStatement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(note that the spelling is precise; I asked for documentType and Alfresco is showing me documenttype)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and there is nothing in the list of aspects to account for this property.&amp;nbsp; It is a property without an aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I have to try to get rid of a whole bunch of these properties, and I have no idea about how to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would welcome suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 13:53:30 GMT</pubDate>
    <dc:creator>srowsell</dc:creator>
    <dc:date>2014-03-10T13:53:30Z</dc:date>
    <item>
      <title>Aspect gone, but properties persist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308907#M262037</link>
      <description>I will describe a situation, and perhaps someone will be able to think of a way out of it.I had a model which turned out to be problematic.&amp;nbsp; The name of the aspect was "sm:documenttype", and its property of interest was "sm:documentType".&amp;nbsp; The closeness of these names caused some confusion for Alfre</description>
      <pubDate>Mon, 10 Mar 2014 13:53:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308907#M262037</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2014-03-10T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aspect gone, but properties persist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308908#M262038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The search index will also have the old property and type values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Had you removed the aspect from the affected nodes then it would have also removed the properties associated with that aspect.&amp;nbsp;&amp;nbsp; Now you have residual properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest you add a very different namespace for your new model and ignore the old junk.&amp;nbsp;&amp;nbsp; If the old junk bothers you then you will need to continue fixing it with database scripts.&amp;nbsp;&amp;nbsp; And then reindex.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 18:31:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308908#M262038</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-03-10T18:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aspect gone, but properties persist</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308909#M262039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My script did remove the aspects, which is why I'm confused about the presence of the properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As it happens, I'm already doing it the way you suggested:&amp;nbsp; I have created a new model which can't have its aspects and properties confused, and I'm in the process of attaching the new aspect now.&amp;nbsp; The old properties would bother someone with OCD, I suppose, but I'll find a way to ignore them.&amp;nbsp; I just can't justify spending any more time on the old model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 20:22:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aspect-gone-but-properties-persist/m-p/308909#M262039</guid>
      <dc:creator>srowsell</dc:creator>
      <dc:date>2014-03-10T20:22:28Z</dc:date>
    </item>
  </channel>
</rss>

