cancel
Showing results for 
Search instead for 
Did you mean: 

something wrong with PropertyIds.DESCRIPTION

just1n
Champ in-the-making
Champ in-the-making
Hi everybody ,
I have some trouble with creating the document .
the create code may like :
 
Map<String,Object> props = new HashMap<String,Object>();
props.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");
props.put(PropertyIds.NAME, newDocName);
props.put(PropertyIds.DESCRIPTION,"flowid");
…………

I got the exception:

Property 'cmis:description' is not valid for this type or one of the secondary types!


When I comment the 4th line,everything is ok.
What's wrong with the PropertyIds.DESCRIPTION ?
2 REPLIES 2

abarisone
Star Contributor
Star Contributor
Hi,
similarly as reported in this topic https://forums.alfresco.com/comment/81819#comment-81819 you should write
properties.put("cm:description", "flowid");


Regards,
Andrea

just1n
Champ in-the-making
Champ in-the-making
It seems that there's still the same error
Property 'cm:description' is not valid for this type or one of the secondary types!

when I write
<java>properties.put("cm:description", "flowid");</java>