cancel
Showing results for 
Search instead for 
Did you mean: 

Extending person type.

nowhere
Champ in-the-making
Champ in-the-making
Hi all…
I want to create a custom type extending cmSmiley Tongueerson, but I can't create object of this type: nodeService.createNode(…) doesn't work. It gives me following exception:

org.alfresco.web.scripts.WebScriptException: 05240007 Wrapped Exception (with st
atus template): 05240006 Can not create a home space when the uid is null or emp
ty

My custom type:

<type name="ri:autore">
         <title>Tipo autore del documento</title>
         <parent>cmSmiley Tongueerson</parent>
         <properties>
      <property name="ri:nome">
         <type>d:text</type>
      </property>
      <property name="ri:cognome">
         <type>d:text</type>
      </property>
    </properties>
    <associations> 
            <association name="ri:scrive">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>ri:documento</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association> 
         </associations>

      </type>

Any suggestion would be appreciated! Thanks 🙂
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Are you missing a mandatory property for cmSmiley Tongueerson?

Can you post the list of properties that you are trying to create a new node.

nowhere
Champ in-the-making
Champ in-the-making
I was just updating the post, but you anticipated me: the problem was in mandatory properties I didn't set (homeFolder in particular) because I don't need them.
Thanks for fast answer mrrogers! 🙂