AnsweredAssumed Answered

Error when saving document of custom type

Question asked by horia on Jul 1, 2013
Latest reply on Jul 2, 2013 by horia
I got this exception when trying to save a new document of custom type:
org.alfresco.service.cmr.repository.MalformedNodeRefException: 06010026 Invalid node ref - does not contain forward slash: {node.nodeRef}

Here is how the definition of the custom type looks like:

<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="ht:channelmodel" xmlns="">
<!– Imports are required to allow references to definitions in other models
<!– Import Alfresco Dictionary Definitions –>
<import uri="" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="" prefix="cm" />
<!– Introduction of new namespaces defined by this model –>
<namespace uri="" prefix="ht" />

<!– Here comes my type –>
   <type name="ht:doc">
      <title>Custom Document</title>

   <aspect name="ht:channel">
      <title>Content Channel</title>
         <property name="ht:isWeb">

and here is how I set the forms for displaying the creation of a new document of my custom type (inside

   <config evaluator="string-compare" condition="DocumentLibrary">
         <content id="plain-text" mimetype="text/plain" label="Prompt" itemid="ht:doc" />
            <aspect name="ht:channel" />
         <type name="cm:content">
            <subtype name="ht:doc" />
    <config evaluator="model-type" condition="ht:doc">
               <show id="cm:title" force="true" />
            <show id="ht:isWeb" force="true" />
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />

Is is something wrong with the formatting or am I missing some fields in the type definition?