cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot activate model anymore

chapeaurouge
Champ in-the-making
Champ in-the-making
Hello

I am trying to activate a model. It's  been active before, and there are no document using it in any stores. At some point of time, I enabled versioning if that makes a difference. Then deleted it. Then adding again and the error appeared.

When enabling I get the following error:

Unable to find the repository item referenced by Id: 6d7c4067-ec15-4cbb-bd59-d29a7e973b71 - the record has probably been deleted from the database.

Using the node browser I can see it. I also see in the mysql DB in the alf_node table.

Any pointers appreciated.

Thank you.
fred
4 REPLIES 4

chapeaurouge
Champ in-the-making
Champ in-the-making
Enabling DAO debug, the namespace of this model get registered ok.

11:12:27,066 User:admin DEBUG [repo.dictionary.DictionaryDAO] Registered model biarch:archiveModel
11:12:27,066 User:admin DEBUG [repo.dictionary.DictionaryDAO] Registered namespace 'http://intranet/model/content/archives/1.0' (prefix 'biarch')

There is a weird issue. The node ID I get from the web explorer (which exists in both node browser and DB) is different from the one I get when I issue a (in the repo admin console)

activate model archiveModel.xml

That ID I get there indeed doesn't refer to any node. And I get a justified "Node doesn't exist" error.

Also, a "show models" tell me there is a parse error, with not much details. I checked the XML, it is ok. Actually, I loaded that same exact file onto another instance of Alfresco, and it works fine. All other custom models work as expected.

I can also precise that the environment in which the problem occurs in clustered.

I am at a loss… some pointers would really be appreciated.
Thanks.
fred

mrogers
Star Contributor
Star Contributor
Please post details of your model.   We can't spot errors without it.

chapeaurouge
Champ in-the-making
Champ in-the-making
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="biarch:archiveModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <description>Archives model</description>
   <author>Fred Blaise</author>
   <version>0.1</version>

   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
                <!– Import BI for parent ref –>
                <import uri="http://intranet/model/content/1.0" prefix="bi"/>
   </imports>

   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="http://intranet/model/content/archives/1.0" prefix="biarch" />
   </namespaces>

   <types>
      <type name="biarch:backoffice_archive">
         <title>BackOffice document</title>
         <parent>bi:bank_doc</parent>
         <properties>
            <property name="biarch:client_last_name_2">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
            <property name="biarch:client_first_name_2">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
         </properties>
      </type>

      <type name="biarch:corp_trust_archive">
         <title>Corporate Services documents</title>
         <parent>bi:bank_doc</parent>
         <properties>
            <property name="biarch:corp_code">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
         </properties>
      </type>
   </types>

   <aspects>
      <aspect name="biarch:archive_doc">
         <title>Archived document</title>
         <properties>
            <property name="biarch:doc_start_date">
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
            <property name="biarch:doc_end_date">
               <type>d:date</type>
               <mandatory>false</mandatory>
            </property>
            <property name="biarch:account_num">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="biarch:client_last_name">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="biarch:client_first_name">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
            <property name="biarch:archive_box_ref">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
         </properties>
      </aspect>
   </aspects>
</model>

chapeaurouge
Champ in-the-making
Champ in-the-making
However, I don't think the problem is related to the model itself, as it loads well into another instance. More something like of a repository weirdness..